mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
Enhance example scripts with additional functionality
- Added online invocation of Invoke-GPOZaurr for GPOBroken and GPOBrokenLink - Included return statements for clarity in Example-29 and Example-51
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
||||||
|
|
||||||
|
|
||||||
|
#$O = Invoke-GPOZaurrContent -GPOName "Test-RestrictedGroups" -Verbose
|
||||||
|
#$O
|
||||||
|
|
||||||
|
Invoke-GPOZaurr -Online -Type GPOBroken, GPOBrokenLink -Verbose -SplitReports
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
#$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPODefender'
|
#$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPODefender'
|
||||||
$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -Type WindowsHelloForBusiness
|
$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -Type WindowsHelloForBusiness
|
||||||
$Output | Format-Table
|
$Output | Format-Table
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
$OUs = Get-GPOZaurrOrganizationalUnit
|
$OUs = Get-GPOZaurrOrganizationalUnit
|
||||||
$Ous | Format-Table
|
$Ous | Format-Table
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink -Exclusions @(
|
Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink -Exclusions @(
|
||||||
'OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl'
|
'OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl'
|
||||||
) | Format-Table
|
) | Format-Table
|
||||||
|
|||||||
Reference in New Issue
Block a user