+ Post New Thread
Results 1 to 3 of 3
Windows 7 Thread, User profiles and folder attributes in Technical; Got one that's doing my head in and I'm hoping somebody can give me nudge in the right direction. I'm ...
  1. #1
    stevehp's Avatar
    Join Date
    Jul 2008
    Location
    Ohio
    Posts
    101
    Thank Post
    13
    Thanked 18 Times in 15 Posts
    Rep Power
    15

    User profiles and folder attributes

    Got one that's doing my head in and I'm hoping somebody can give me nudge in the right direction.

    I'm trying to rid my local profiles of the extra folders inside of them such as Saved Games, Downloads, Links, etc.. Basically I have a GPP setup that will either hide a folder, or delete it. It works, but... just not on a fresh profile (which is local FYI). On my test accounts I have to logout and login a second time for the folder attributes and deletions to take effect.

    I unfortunately didn't have luxury of setting up a test environment to work out this little niggles before flipping the switch. I basically was told new machines will have Windows 7 on them and from that point (mid-late March) until now I've been tryin to work out the libraries, the desktop.ini issues, and this annoyance as well. So I'm trying to get this sorted as soon as possible.

    We currently run 2003R2 Enterprise boxes with large majority of our clients being XP. I have a station setup with all of the 7/2008R2 group policy management bits installed and the sysvol has been populated with the policydefinitions folder. Looking to upgrade to 2008R2 this summer, but that all depends on funding.

    Any help will be greatly appreciated.

  2. #2
    TheMan100's Avatar
    Join Date
    Dec 2010
    Posts
    156
    Thank Post
    8
    Thanked 15 Times in 15 Posts
    Rep Power
    9
    How about creating a batch file, then add it as a logon script.

    rmdir /s /q "C:\Users\%USERNAME%\Downloads"
    rmdir /s /q "C:\Users\%USERNAME%\Links"
    rmdir /s /q "C:\Users\%USERNAME%\Saved Games"
    rmdir /s /q "C:\Users\%USERNAME%\Desktop"
    rmdir /s /q "C:\Users\%USERNAME%\Contacts"

    and so on...

  3. Thanks to TheMan100 from:

    stevehp (13th May 2011)

  4. #3
    stevehp's Avatar
    Join Date
    Jul 2008
    Location
    Ohio
    Posts
    101
    Thank Post
    13
    Thanked 18 Times in 15 Posts
    Rep Power
    15
    Yeah I had tried a script after thinking that my GPP wasn't applying for some reason, but it looks I'll have to resort to a script for this one particular instance.

    What ended up being the issue is explorer.exe . A simple restart of that process and I was in business.

    I cobbled together a script that will kill explorer.exe, run the rmdir and attrib commands then restart the explorer.exe process. I had to place that in the registry(HKCU) using GPP as it was the only way to make sure explorer.exe had started before it would run the script. Now I just need to add my servers to the trusted sites zone as I'm getting that gd file security popup.

SHARE:
+ Post New Thread

Similar Threads

  1. Folder Redirection / Roaming User Profiles
    By Psymon in forum Windows 7
    Replies: 13
    Last Post: 24th April 2010, 05:34 PM
  2. Replies: 6
    Last Post: 29th February 2008, 12:03 AM
  3. User container attributes - Some help pls
    By contink in forum Scripts
    Replies: 5
    Last Post: 13th June 2007, 09:33 PM
  4. Clear User accounts password attributes on mass.
    By tosca925 in forum How do you do....it?
    Replies: 2
    Last Post: 8th June 2007, 03:15 PM
  5. Replies: 5
    Last Post: 9th May 2007, 05:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •