Files
GPOZaurr/Examples/Example-20-RemoveOrphanedFoldersSysvol.ps1
T
Przemyslaw Klys 4acf509e2b Update
2020-05-26 19:16:32 +02:00

7 lines
328 B
PowerShell

Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
# this allows you to process X amount of orphaned folders/files (good for testing)
Remove-GPOZaurrOrphanedSysvolFolders -Verbose -WhatIf -LimitProcessing 2
# this runs for whole SYSVOL and checks things against GPOS
Remove-GPOZaurrOrphanedSysvolFolders -Verbose -WhatIf