mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-20 15:12:24 +00:00
24 lines
788 B
PowerShell
24 lines
788 B
PowerShell
function Reset-GPOZaurrStatus {
|
|
param(
|
|
|
|
)
|
|
#if (-not $Script:GPOConfigurationClean) {
|
|
# $Script:GPOConfigurationClean = Copy-Dictionary -Dictionary $Script:GPOConfiguration
|
|
#} else {
|
|
# $Script:GPOConfiguration = Copy-Dictionary -Dictionary $Script:GPOConfigurationClean
|
|
#}
|
|
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
|
|
}
|
|
}
|
|
} |