mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
14 lines
677 B
PowerShell
14 lines
677 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
# Remove GPOS, but don't touch 2 defined exclusions
|
|
$ExcludeGroupPolicies = {
|
|
'TEST | Drive Mapping 1',
|
|
'TEST | Drive Mapping 2'
|
|
}
|
|
Remove-GPOZaurr -Type Empty -BackupPath "$Env:UserProfile\Desktop\GPO" -BackupDated -LimitProcessing 3 -Verbose -WhatIf -ExcludeGroupPolicies $ExcludeGroupPolicies
|
|
|
|
# Remove GPOS, but don't touch 2 defined exclusions
|
|
Remove-GPOZaurr -Type Empty, Unlinked -BackupPath "$Env:UserProfile\Desktop\GPO" -BackupDated -LimitProcessing 2 -Verbose -WhatIf {
|
|
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
|
|
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2' -DomaiName 'ad.evotec.pl'
|
|
} |