diff --git a/Examples/Example-56-AnalyseGPOs.ps1 b/Examples/Example-56-AnalyseGPOs.ps1 new file mode 100644 index 0000000..e8e8ccf --- /dev/null +++ b/Examples/Example-56-AnalyseGPOs.ps1 @@ -0,0 +1,14 @@ +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 + +#> \ No newline at end of file diff --git a/Examples/Example-57-FindGPOWithMissingFiles.ps1 b/Examples/Example-57-FindGPOWithMissingFiles.ps1 new file mode 100644 index 0000000..c09bd10 --- /dev/null +++ b/Examples/Example-57-FindGPOWithMissingFiles.ps1 @@ -0,0 +1,10 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +# search by guid or name for specific GPOs +#Get-GPOZaurrMissingFiles -GPOGUID '{2F326111-C21B-4892-B7BC-9BDCB201FFCC}' | Format-Table + +# search for all GPOs with missing files +#Get-GPOZaurrMissingFiles -BrokenOnly | Format-Table + +# search for all GPOs with missing files for everythin +Invoke-GPOZaurr -Type GPOBrokenPartially #, GPOBroken, GPOBrokenLink \ No newline at end of file