Link to home
Start Free TrialLog in
Avatar of Pete
PeteFlag for United Kingdom of Great Britain and Northern Ireland

asked on

delete a folder using GPP

I am trying to delete a start menu folder using GPP in a computer Group Policy:
"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows PowerShell"

It does not delete, there is not even an error in event viewer.

deleting single files using GPP from the same policy works fine.......please ideas?


the .xml looks like this:
<Folder clsid="{07DA02F5-F9CD-4397-A550-4AE21B6B4BD3}" name="Windows PowerShell&quot;" status="Windows PowerShell&quot;" image="3" changed="2013-02-01 09:19:02" uid="{9B06B709-8527-40BA-A1E3-D04FFBE6EF6D}" desc="Delete &quot;All Users\Accessories\PowerShell&quot; folder" bypassErrors="1"><Properties action="D" path="&quot;C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows PowerShell&quot;" deleteFolder="1" deleteSubFolders="1" deleteFiles="1" deleteReadOnly="1" deleteIgnoreErrors="0" readOnly="0" archive="1" hidden="0"/></Folder>
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

It might be permission issue, try running batch file which deletes the folder and post back
Also u wanna set the log error atttibute in the xml to 1
Let me guess: you are using the GPPs from the user policy section? Take the computer policy section instead in order to have the deletion executed with system rights.
Avatar of Pete

ASKER

strangely it is in a computer GPO already. a file delete GPP to a folder one level up works fine.
Can you export a report of that GPO and upload it here?
ASKER CERTIFIED SOLUTION
Avatar of Pete
Pete
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pete

ASKER

as above