diff --git a/Docs/Get-GPOZaurr.md b/Docs/Get-GPOZaurr.md index b392b9f..0bd735e 100644 --- a/Docs/Get-GPOZaurr.md +++ b/Docs/Get-GPOZaurr.md @@ -14,7 +14,7 @@ schema: 2.0.0 ``` Get-GPOZaurr [[-ExcludeGroupPolicies] ] [[-GPOName] ] [[-GPOGuid] ] - [[-Forest] ] [[-ExcludeDomains] ] [[-IncludeDomains] ] + [[-Type] ] [[-Forest] ] [[-ExcludeDomains] ] [[-IncludeDomains] ] [[-ExtendedForestInformation] ] [[-GPOPath] ] [-PermissionsOnly] [-OwnerOnly] [-Limited] [-ReturnObject] [[-ADAdministrativeGroups] ] [] ``` @@ -42,7 +42,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -57,7 +57,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 4 +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -87,7 +87,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 6 +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -102,7 +102,7 @@ Parameter Sets: (All) Aliases: ForestName Required: False -Position: 3 +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -147,7 +147,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 7 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -162,7 +162,7 @@ Parameter Sets: (All) Aliases: Domain, Domains Required: False -Position: 5 +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -228,6 +228,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Type +{{ Fill Type Description }} + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: +Accepted values: Empty, Unlinked, Disabled, All + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/Docs/Readme.md b/Docs/Readme.md index 769f0f8..ca1444c 100644 --- a/Docs/Readme.md +++ b/Docs/Readme.md @@ -12,154 +12,155 @@ Locale: en-US ## GPOZaurr Cmdlets ### [Add-GPOPermission](Add-GPOPermission.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Add-GPOZaurrPermission](Add-GPOZaurrPermission.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} + +### [Backup-GPOZaurr](Backup-GPOZaurr.md) +{{ Fill in the Description }} ### [Clear-GPOZaurrSysvolDFSR](Clear-GPOZaurrSysvolDFSR.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [ConvertFrom-CSExtension](ConvertFrom-CSExtension.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Find-CSExtension](Find-CSExtension.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurr](Get-GPOZaurr.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrAD](Get-GPOZaurrAD.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrBackupInformation](Get-GPOZaurrBackupInformation.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrBroken](Get-GPOZaurrBroken.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrDictionary](Get-GPOZaurrDictionary.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrDuplicateObject](Get-GPOZaurrDuplicateObject.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrFiles](Get-GPOZaurrFiles.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrFilesPolicyDefinition](Get-GPOZaurrFilesPolicyDefinition.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrFolders](Get-GPOZaurrFolders.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrInheritance](Get-GPOZaurrInheritance.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrLegacyFiles](Get-GPOZaurrLegacyFiles.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrLink](Get-GPOZaurrLink.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrLinkSummary](Get-GPOZaurrLinkSummary.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrNetLogon](Get-GPOZaurrNetLogon.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrOwner](Get-GPOZaurrOwner.md) -Gets owners of GPOs from Active Directory and SYSVOL +{{ Fill in the Description }} ### [Get-GPOZaurrPassword](Get-GPOZaurrPassword.md) -Tries to find CPassword in Group Policies or given path and translate it to readable value +{{ Fill in the Description }} ### [Get-GPOZaurrPermission](Get-GPOZaurrPermission.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrPermissionConsistency](Get-GPOZaurrPermissionConsistency.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrPermissionIssue](Get-GPOZaurrPermissionIssue.md) -Detects Group Policy missing Authenticated Users permission while not having higher permissions. +{{ Fill in the Description }} ### [Get-GPOZaurrPermissionRoot](Get-GPOZaurrPermissionRoot.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrPermissionSummary](Get-GPOZaurrPermissionSummary.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrSysvolDFSR](Get-GPOZaurrSysvolDFSR.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Get-GPOZaurrWMI](Get-GPOZaurrWMI.md) -Get Group Policy WMI filter +{{ Fill in the Description }} ### [Invoke-GPOZaurr](Invoke-GPOZaurr.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Invoke-GPOZaurrContent](Invoke-GPOZaurrContent.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Invoke-GPOZaurrPermission](Invoke-GPOZaurrPermission.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Invoke-GPOZaurrSupport](Invoke-GPOZaurrSupport.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [New-GPOZaurrWMI](New-GPOZaurrWMI.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Optimize-GPOZaurr](Optimize-GPOZaurr.md) -Enables or disables user/computer section of group policy based on it's content. +{{ Fill in the Description }} ### [Remove-GPOPermission](Remove-GPOPermission.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Remove-GPOZaurr](Remove-GPOZaurr.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Remove-GPOZaurrBroken](Remove-GPOZaurrBroken.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Remove-GPOZaurrDuplicateObject](Remove-GPOZaurrDuplicateObject.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Remove-GPOZaurrFolders](Remove-GPOZaurrFolders.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Remove-GPOZaurrLegacyFiles](Remove-GPOZaurrLegacyFiles.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Remove-GPOZaurrPermission](Remove-GPOZaurrPermission.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Remove-GPOZaurrWMI](Remove-GPOZaurrWMI.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Repair-GPOZaurrNetLogonOwner](Repair-GPOZaurrNetLogonOwner.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Repair-GPOZaurrPermissionConsistency](Repair-GPOZaurrPermissionConsistency.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Restore-GPOZaurr](Restore-GPOZaurr.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Save-GPOZaurrFiles](Save-GPOZaurrFiles.md) -{{ Fill in the Synopsis }} +{{ Fill in the Description }} ### [Set-GPOOwner](Set-GPOOwner.md) -Used within Invoke-GPOZaurrPermission only. -Set new group policy owner. +{{ Fill in the Description }} ### [Set-GPOZaurrOwner](Set-GPOZaurrOwner.md) -Sets GPO Owner to Domain Admins or other choosen account +{{ Fill in the Description }} ### [Set-GPOZaurrStatus](Set-GPOZaurrStatus.md) -Enables or disables user/computer section of Group Policy. +{{ Fill in the Description }} ### [Skip-GroupPolicy](Skip-GroupPolicy.md) -Used within ScriptBlocks only. -Allows to exclude Group Policy from being affected by fixes +{{ Fill in the Description }} diff --git a/Examples/Example-01-BackupGPOs.ps1 b/Examples/Example-01-BackupGPOs.ps1 index 2fa0347..ec6cf81 100644 --- a/Examples/Example-01-BackupGPOs.ps1 +++ b/Examples/Example-01-BackupGPOs.ps1 @@ -1,8 +1,12 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force # Backup GPOs -$GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All -IncludeDomains 'ad.evotec.pl' #-BackupDated #-LimitProcessing 1 +$GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type Disabled, Empty -IncludeDomains 'ad.evotec.pl' #-BackupDated #-LimitProcessing 1 $GPOSummary | Format-Table -AutoSize -## Confirm GPOs are backed up properly -Get-GPOZaurrBackupInformation -BackupFolder $GPOSummary[0].BackupDirectory | Format-Table -a \ No newline at end of file +## Confirm GPOs are backed up properly, assuming everything was done +if ($GPOSummary) { + Get-GPOZaurrBackupInformation -BackupFolder $GPOSummary[0].BackupDirectory | Format-Table -a +} else { + Write-Warning "Backup wasn't done, or there was nothing to backup. " +} \ No newline at end of file