Solved

delete a folder using GPP

Posted on 2013-02-01
7
476 Views
Last Modified: 2013-08-10
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
Comment
Question by:Pete
7 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 38843206
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
 
LVL 54

Expert Comment

by:McKnife
ID: 38844788
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
 
LVL 1

Author Comment

by:Pete
ID: 38844890
strangely it is in a computer GPO already. a file delete GPP to a folder one level up works fine.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 22

Expert Comment

by:Joseph Moody
ID: 39341561
Can you export a report of that GPO and upload it here?
0
 
LVL 1

Accepted Solution

by:
Pete earned 0 total points
ID: 39384364
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
 
LVL 1

Author Closing Comment

by:Pete
ID: 39398292
as above
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question