Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 499
  • 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

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