locked
Remove/Hide default folders in new User Profile RRS feed

  • Question

  • We are currently in the process of creating our default Windows 7 Enterprise Images in preperation for a pilot deployment. Following the creating default User profile for Windows 7 works well, however any attempt to Delete or add the Hide attributes the directories results in the folders reappearing during Windows setup

    I have been directed here from the following post I have in the Windows 7 forums

    -http://social.technet.microsoft.com/Forums/en/w7itproui/thread/4f82dcad-d4b9-4935-83fc-96ab170a3785

    We would like to be able to hide or remove the following files from the new style user profile (User Files)

    Contacts, Downloads and Saved Games.

    These directories would have no use and would like to remove them rather than setup new Folder Redirection rules for useless directories.

    Many Thanks

    Thursday, September 30, 2010 9:27 AM

Answers

  • Deleting the folders through the logon script is an easy method to resolve this issue. To make it specific for the first logon you could compare the folders' creation date with today's date.
    • Proposed as answer by Richard MuellerMVP Wednesday, October 13, 2010 5:02 PM
    • Marked as answer by IamMred Thursday, October 14, 2010 5:00 PM
    Monday, October 4, 2010 9:54 AM

All replies

  • Why not just delete them?

    rd  /s  /q  "%UserProfile%\Contacts"
    or
    CreateObject("Scripting.FileSystemObject").DeleteFolder(sFolderspec, true)
    (you would need to resolve sFolderspec)

    Thursday, September 30, 2010 4:00 PM
  • Hello

    Thanks for the reply.

    When we delete the specific folders for the default User profile this folders still appear after Windows setup. As per Thread

    http://social.technet.microsoft.com/Forums/en-US/w7itproui/thread/7f60a0ac-5a71-469d-8efd-8749d44b7edb

    The folder structure is not a Registry controlled area so our Default User settings do not apply to these folders. We may need to look at a login script that runs the first time a user creates a profile.


    Lee Bowman MCITP MCTS
    Monday, October 4, 2010 9:48 AM
  • Deleting the folders through the logon script is an easy method to resolve this issue. To make it specific for the first logon you could compare the folders' creation date with today's date.
    • Proposed as answer by Richard MuellerMVP Wednesday, October 13, 2010 5:02 PM
    • Marked as answer by IamMred Thursday, October 14, 2010 5:00 PM
    Monday, October 4, 2010 9:54 AM