mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-28 03:06:47 +00:00
Update example
This commit is contained in:
@@ -1,16 +1,21 @@
|
|||||||
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
||||||
|
|
||||||
#$Output = Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -PassThru -Type GPOConsistency, GPOList, GPODuplicates, GPOBroken, GPOOwners, NetLogonOwners, GPOPermissionsRead, GPOPermissionsAdministrative,GPOPermissionsUnknown
|
Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurr.html
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
# Shows how to use exclusions (supported only in GPOBlockedInheritance)
|
# Shows how to use exclusions (supported only in GPOBlockedInheritance)
|
||||||
Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOBlockedInheritance -Online -Exclusions @(
|
Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOBlockedInheritance -Online -Exclusions @(
|
||||||
'OU=Test,OU=ITR02,DC=ad,DC=evotec,DC=xyz'
|
'OU=Test,OU=ITR02,DC=ad,DC=evotec,DC=xyz'
|
||||||
)
|
)
|
||||||
|
|
||||||
<#
|
# different approach to query multiple reports or just one
|
||||||
|
Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -PassThru -Type GPOConsistency, GPOList, GPODuplicates, GPOBroken, GPOOwners, NetLogonOwners, GPOPermissionsRead, GPOPermissionsAdministrative,GPOPermissionsUnknown
|
||||||
|
|
||||||
|
Invoke-GPOZaurr -Type GPOOwners -Online -FilePath $PSScriptRoot\Reports\GPOZaurr.html
|
||||||
|
|
||||||
# Shows how to use exclusions for GPOList (different way)
|
# Shows how to use exclusions for GPOList (different way)
|
||||||
Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOList -Online -Exclusions {
|
Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOList -Online -Exclusions {
|
||||||
Skip-GroupPolicy -Name 'de14_usr_std'
|
Skip-GroupPolicy -Name 'de14_usr_std'
|
||||||
Skip-GroupPolicy -Name 'ALL | Enable RDP' -DomaiName 'ad.evotec.xyz'
|
Skip-GroupPolicy -Name 'ALL | Enable RDP' -DomaiName 'ad.evotec.xyz'
|
||||||
}
|
}
|
||||||
#>
|
|
||||||
Reference in New Issue
Block a user