Solved

delete a folder using GPP

Posted on 2013-02-01
7
474 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

823 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