680 questions
Hi Richa,
Based on your query of cleaning up GPOs(count: 2K) from AD, you can consider the following suggested steps:
- Audit & Assess
- Generate a report of all GPOs.
- Using this command
Get-GPO -All | Where-Object {$_.CreationTime -lt (Get-Date).AddYears(-2)}
to identify old GPOs.
- Back Up GPOs
- Before deleting, back up any GPOs using PowerShell
- Backup-GPO -All -Path "C:\GPO_Backup"
- Bulk Cleanup Using PowerShell
- Once you've identified unused GPOs, remove them in bulk.
- Get-GPO -All | Where-Object {$_.DisplayName -like "Deprecated"} | Remove-GPO
- Modify conditions to match your organization's cleanup criteria.
- Third-Party Tools
- SDM Software's GPO Reporting Pack: Offers comprehensive GPO auditing.
- Quest GPOAdmin: Helps manage GPO lifecycle, including cleanup.
Alternatively, you can refer to the following article which purportedly addresses your query in detail.