Would like to have someone develop a powershell script that will list (and optionally delete) all GPOs that are unlinked (and/or) orphaned and last modified is over 3 years ago.
Hi there,
Greeting for the day, Hope you are doing well
I will write PS script for unused GPO cleanup let me know if you more Query
I have 10+ Years of experience as windows server support engineer
Thanks
karun
Hi. For you project we have to get all gpo trough module GroupPolicy like Get-GPO -all | ForEach-Object {... And then check if the GPO is lined to any OU. If not - add it to the list for deletion. Then try to backup it first and then delete