Files
GPOZaurr/Examples/Example-02-RemoveEmptyAndUnlinkedGPOs.ps1
T
Przemyslaw Klys 7f2adbbb13 Update
2020-07-30 12:23:52 +02:00

5 lines
227 B
PowerShell

Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
# Remove GPOS
$BackupPath = "$Env:UserProfile\Desktop\GPO"
Remove-GPOZaurr -Type Empty, Unlinked -BackupPath $BackupPath -BackupDated -LimitProcessing 2 -Verbose -WhatIf