diff --git a/Examples/Example-14-ListingGPOsPerOU1.ps1 b/Examples/Example-14-ListingGPOsPerOU1.ps1 index 0ceeafe..731cea5 100644 --- a/Examples/Example-14-ListingGPOsPerOU1.ps1 +++ b/Examples/Example-14-ListingGPOsPerOU1.ps1 @@ -1,3 +1,3 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -Get-GPOZaurrLink | Format-Table -AutoSize * \ No newline at end of file +Get-GPOZaurrLink -Verbose | Format-Table -AutoSize * \ No newline at end of file diff --git a/Examples/Example-29-FindGPO4.ps1 b/Examples/Example-29-FindGPO4.ps1 index c3b97f8..3b229b3 100644 --- a/Examples/Example-29-FindGPO4.ps1 +++ b/Examples/Example-29-FindGPO4.ps1 @@ -1,4 +1,4 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -$Output = Invoke-GPOZaurrContent -Verbose -OutputType HTML, Object -Open +$Output = Invoke-GPOZaurrContent -Verbose -OutputType HTML, Object -Open -Type LocalGroups $Output | Format-Table \ No newline at end of file diff --git a/Examples/Example-40-ShowGPO01.ps1 b/Examples/Example-40-ShowGPO01.ps1 index 140ae43..8ca6d09 100644 --- a/Examples/Example-40-ShowGPO01.ps1 +++ b/Examples/Example-40-ShowGPO01.ps1 @@ -1,4 +1,4 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force #$Output = Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -PassThru -Type GPOConsistency, GPOList, GPODuplicates, GPOOrphans, GPOOwners, NetLogonOwners, GPOPermissionsRead, GPOPermissionsAdministrative,GPOPermissionsUnknown -Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOPermissions,GPOPermissionsRead \ No newline at end of file +Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOBrokenLink \ No newline at end of file diff --git a/Examples/Example-47-DetectBrokenLinks.ps1 b/Examples/Example-47-DetectBrokenLinks.ps1 new file mode 100644 index 0000000..5fd93ec --- /dev/null +++ b/Examples/Example-47-DetectBrokenLinks.ps1 @@ -0,0 +1,5 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +#Get-GPOZaurrBrokenLink -Verbose | Format-Table -AutoSize * + +Get-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl | Format-Table -AutoSize * \ No newline at end of file diff --git a/Examples/Example-48-RepairBrokenLinks.ps1 b/Examples/Example-48-RepairBrokenLinks.ps1 new file mode 100644 index 0000000..40e02ca --- /dev/null +++ b/Examples/Example-48-RepairBrokenLinks.ps1 @@ -0,0 +1,5 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Repair-GPOZaurrBrokenLink -Verbose -LimitProcessing 1 -WhatIf + +#Repair-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl -LimitProcessing 30 #-WhatIf \ No newline at end of file