diff --git a/Examples/Example-04-GPOInformation02.ps1 b/Examples/Example-04-GPOInformation02.ps1 index 6cf4421..8fe2d82 100644 --- a/Examples/Example-04-GPOInformation02.ps1 +++ b/Examples/Example-04-GPOInformation02.ps1 @@ -1,4 +1,7 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -$GPOS = Get-GPOZaurr -GPOName 'TEST | Office Configuration' +#$GPOS = Get-GPOZaurr -GPOName 'TEST | Office Configuration' +#$GPOS | Format-Table -AutoSize * + +$GPOS = Get-GPOZaurr -GPOName 'New Group Policy Object3' $GPOS | Format-Table -AutoSize * \ No newline at end of file diff --git a/Examples/Example-15-AddPermissionAuthenticatedUser.ps1 b/Examples/Example-15-AddPermissionAuthenticatedUser.ps1 new file mode 100644 index 0000000..a106b4d --- /dev/null +++ b/Examples/Example-15-AddPermissionAuthenticatedUser.ps1 @@ -0,0 +1,4 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Add-GPOZaurrPermission -Type AuthenticatedUsers -PermissionType GpoRead -LimitProcessing 3 -All -WhatIf -Verbose #-IncludeDomains 'ad.evotec.pl' +Add-GPOZaurrPermission -Type Administrative -PermissionType GpoEditDeleteModifySecurity -LimitProcessing 100 -All -WhatIf -Verbose #-IncludeDomains 'ad.evotec.pl' \ No newline at end of file diff --git a/Examples/Example-15-AddPermissionAuthenticatedUser02.ps1 b/Examples/Example-15-AddPermissionAuthenticatedUser02.ps1 new file mode 100644 index 0000000..0b46cd0 --- /dev/null +++ b/Examples/Example-15-AddPermissionAuthenticatedUser02.ps1 @@ -0,0 +1,3 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Add-GPOZaurrPermission -GPOName 'New Group Policy Object' -Type AuthenticatedUsers -PermissionType GpoRead -Verbose -WhatIf \ No newline at end of file diff --git a/Examples/Example-15-GetPermissions.ps1 b/Examples/Example-15-GetPermissions.ps1 new file mode 100644 index 0000000..00ecf52 --- /dev/null +++ b/Examples/Example-15-GetPermissions.ps1 @@ -0,0 +1,3 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Get-GPOZaurrPermission -IncludePermissionType GpoRead -Type AuthenticatedUsers -ReturnSecurityWhenNoData | Format-Table \ No newline at end of file