mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-30 20:29:06 +00:00
19 lines
532 B
PowerShell
19 lines
532 B
PowerShell
function Reset-GPOZaurrStatus {
|
|
param(
|
|
|
|
)
|
|
if (-not $Script:DefaultTypes) {
|
|
$Script:DefaultTypes = foreach ($T in $Script:GPOConfiguration.Keys) {
|
|
if ($Script:GPOConfiguration[$T].Enabled) {
|
|
$T
|
|
}
|
|
}
|
|
} else {
|
|
foreach ($T in $Script:GPOConfiguration.Keys) {
|
|
$Script:GPOConfiguration[$T]['Enabled'] = $false
|
|
}
|
|
foreach ($T in $Script:DefaultTypes) {
|
|
$Script:GPOConfiguration[$T]['Enabled'] = $true
|
|
}
|
|
}
|
|
} |