• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 495
  • Last Modified:

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>
0
Pete
Asked:
Pete
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
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
0
 
McKnifeCommented:
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.
0
 
PeteAuthor Commented:
strangely it is in a computer GPO already. a file delete GPP to a folder one level up works fine.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Joseph MoodyBlogger and wearer of all hats.Commented:
Can you export a report of that GPO and upload it here?
0
 
PeteAuthor Commented:
sorry but this has now been achieved using a script, I can't spend any more time looking at this. I will close the Q.
0
 
PeteAuthor Commented:
as above
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now