mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
14 lines
530 B
PowerShell
14 lines
530 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
$Output = Invoke-GPOZaurrContent -Verbose -GPOName 'Default Domain Policy'
|
|
$Output | Format-Table
|
|
|
|
<#
|
|
# You need PSWriteOffice for that
|
|
foreach ($Key in $Output.Keys) {
|
|
$Output[$Key] | Export-OfficeExcel -FilePath $Env:USERPROFILE\Desktop\GPOAnalysis.xlsx -WorkSheetName $Key
|
|
}
|
|
|
|
Invoke-GPOZaurr -Type GPOAnalysis -GPOName 'ALL | Allow use of biometrics', 'ALL | Enable RDP' -GPOGUID '{31B2F340-016D-11D2-945F-00C04FB984F9}' -IncludeDomains 'ad.evotec.xyz' -Verbose
|
|
|
|
#> |