Jump to content

Recommended Posts

Posted

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.

Posted

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...

  • Thanks 1
Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...