mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-22 07:57:10 +00:00
19 lines
600 B
PowerShell
19 lines
600 B
PowerShell
function Optimize-GPOZaurr {
|
|
[cmdletBinding()]
|
|
param(
|
|
|
|
)
|
|
|
|
$GPOS = Get-GPOZaurr -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
|
foreach ($GPO in $GPOS) {
|
|
if ($GPO.UserSettingsAvailable -eq $false -and $GPO.ComputerSettingsAvailable -eq $false) {
|
|
if ($GPO.Enabled -ne 'All setttings disabled') {
|
|
# $GPO
|
|
}
|
|
} elseif ($GPO.UserSettingsAvailable -eq $false) {
|
|
|
|
} elseif ($GPO.ComputerSettingsAvailable -eq $false) {
|
|
|
|
}
|
|
}
|
|
} |