troubleshooting Question

Deleting Folders By Group Policy Preference

Avatar of DarthRater
DarthRater asked on
Active DirectoryWindows Server 2008Windows 7
8 Comments1 Solution4095 ViewsLast Modified:
I have been charged with locking down an envirnoment and the first steps is to delete all data in a users Desktop and Documents. I have created a GPP that works great with XP,

User Configuration>Preferences>Windows Settings>Folders

Delete %USERPROFILE%\Desktop\ and %USERPROFILE%/My Documents. The GPP correctly nukes all folders.

MY issue is with Win 7. The Desktop Variable works fine, but the %USERPROFILE%\Documents fails with an event log error.

The user 'Win7 Documents' preference item in the 'Restriction: Delete Contents of Desk/Docs {8EF922B8-1AF0-44BB-9305-E375F0485DD8}' Group Policy object did not apply because it failed with error code '0x80070091 The directory is not empty.'

I have all the options checked so it shouldn't matter if the destination is empty. On XP it kills everything in the target folder.
ASKER CERTIFIED SOLUTION
motnahp00

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros