docs: ✏️ Update documentation for GPOZaurr module

- Revised `Set-GPOZaurrOwner.md` to enhance clarity and detail for parameters and examples.
- Updated `Set-GPOZaurrStatus.md` with a new online version link and improved structure.
- Refined `Skip-GroupPolicy.md` to clarify usage within script blocks and added examples.
- Adjusted `GPOZaurr.psd1` for version updates and improved module dependencies.
- Enhanced `GPOZaurr.psm1` for better error handling during function imports.
- Modified `Invoke-GPOZaurrSupport.ps1` examples to use `Join-Path` for path construction.
This commit is contained in:
Przemysław Kłys
2026-05-19 18:47:50 +02:00
parent b672783a3f
commit f7bdaca724
66 changed files with 9573 additions and 11029 deletions
@@ -1,41 +1,4 @@
[CmdletBinding()]
param(
[switch]$SkipPublish
)
try {
Clear-Host
} catch {
Write-Verbose "Skipping Clear-Host because the current host is non-interactive."
}
function Import-LocalPSPublishModule {
$candidateRoots = @()
if ($env:POWERFORGE_ROOT) {
$candidateRoots += $env:POWERFORGE_ROOT
}
$candidateRoots += [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..\..\PSPublishModule'))
foreach ($root in $candidateRoots | Select-Object -Unique) {
if ([string]::IsNullOrWhiteSpace($root)) {
continue
}
$manifestPath = Join-Path $root 'Module\PSPublishModule.psd1'
if (Test-Path -LiteralPath $manifestPath -PathType Leaf) {
Import-Module $manifestPath -Force -ErrorAction Stop
return
}
}
Import-Module PSPublishModule -Force -ErrorAction Stop
}
Import-LocalPSPublishModule
Invoke-ModuleBuild -ModuleName 'GPOZaurr' {
Build-Module -ModuleName 'GPOZaurr' {
# Usual defaults as per standard module
$Manifest = @{
# Version number of this module.
@@ -63,17 +26,9 @@ Invoke-ModuleBuild -ModuleName 'GPOZaurr' {
New-ConfigurationManifest @Manifest
New-ConfigurationModule -Type RequiredModule -Name 'PSWriteColor', 'PSSharedGoods', 'ADEssentials' -Guid Auto -Version Latest
New-ConfigurationModule -Type RequiredModule -Name "PSWriteHTML" -Guid Auto -Version "1.27.0"
New-ConfigurationModule -Type RequiredModule -Name "PSWriteHTML" -Guid Auto -Version Latest
#New-ConfigurationModule -Type ExternalModule -Name 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management','Microsoft.PowerShell.Security'
New-ConfigurationModule -Type ApprovedModule -Name 'PSSharedGoods', 'PSWriteColor', 'Connectimo', 'PSUnifi', 'PSWebToolbox', 'PSMyPassword', 'ADEssentials'
New-ConfigurationModule -Type ExternalModule -Name @(
"CimCmdlets"
'Microsoft.PowerShell.Management'
'Microsoft.PowerShell.Utility'
'Microsoft.PowerShell.Security'
)
New-ConfigurationModuleSkip -IgnoreModuleName @(
# this are builtin into PowerShell, so not critical
'powershellget'
@@ -256,7 +211,7 @@ Invoke-ModuleBuild -ModuleName 'GPOZaurr' {
# options for publishing to github/psgallery
if (-not $SkipPublish) {
New-ConfigurationPublish -Type PowerShellGallery -FilePath 'C:\Support\Important\PowerShellGalleryAPI.txt' -Enabled:$true
New-ConfigurationPublish -Type GitHub -FilePath 'C:\Support\Important\GitHubAPI.txt' -UserName 'EvotecIT' -Enabled:$true
#New-ConfigurationPublish -Type PowerShellGallery -FilePath 'C:\Support\Important\PowerShellGalleryAPI.txt' -Enabled:$true
# New-ConfigurationPublish -Type GitHub -FilePath 'C:\Support\Important\GitHubAPI.txt' -UserName 'EvotecIT' -Enabled:$true -GenerateReleaseNotes
}
} -ExitCode
+10 -92
View File
@@ -1,20 +1,16 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Add-GPOPermission
## SYNOPSIS
{{ Fill in the Synopsis }}
## SYNTAX
```
Add-GPOPermission [[-Type] <String>] [[-IncludePermissionType] <GPPermissionType>] [[-Principal] <String>]
[[-PrincipalType] <String>] [[-PermitType] <String>] [<CommonParameters>]
```powershell
Add-GPOPermission
```
## DESCRIPTION
@@ -22,104 +18,26 @@ Add-GPOPermission [[-Type] <String>] [[-IncludePermissionType] <GPPermissionType
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
Add-GPOPermission
```
{{ Add example description here }}
## PARAMETERS
### -IncludePermissionType
{{ Fill IncludePermissionType Description }}
```yaml
Type: GPPermissionType
Parameter Sets: (All)
Aliases:
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PermitType
{{ Fill PermitType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Allow, Deny
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Principal
{{ Fill Principal Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: Trustee
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PrincipalType
{{ Fill PrincipalType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: TrusteeType
Accepted values: DistinguishedName, Name, Sid
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
{{ Fill Type Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: WellKnownAdministrative, Administrative, AuthenticatedUsers, Default
Required: False
Position: 0
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).
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+10 -315
View File
@@ -1,47 +1,16 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Add-GPOZaurrPermission
## SYNOPSIS
{{ Fill in the Synopsis }}
## SYNTAX
### GPOName (Default)
```
Add-GPOZaurrPermission -GPOName <String> [-Type <String>] [-Principal <String>] [-PrincipalType <String>]
-PermissionType <GPPermissionType> [-Inheritable] [-PermitType <String>] [-Forest <String>]
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### GPOGUID
```
Add-GPOZaurrPermission -GPOGuid <String> [-Type <String>] [-Principal <String>] [-PrincipalType <String>]
-PermissionType <GPPermissionType> [-Inheritable] [-PermitType <String>] [-Forest <String>]
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### All
```
Add-GPOZaurrPermission [-All] [-Type <String>] [-Principal <String>] [-PrincipalType <String>]
-PermissionType <GPPermissionType> [-Inheritable] [-PermitType <String>] [-Forest <String>]
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### ADObject
```
Add-GPOZaurrPermission -ADObject <ADObject[]> [-Type <String>] [-Principal <String>] [-PrincipalType <String>]
-PermissionType <GPPermissionType> [-Inheritable] [-PermitType <String>] [-Forest <String>]
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
```powershell
Add-GPOZaurrPermission
```
## DESCRIPTION
@@ -49,300 +18,26 @@ Add-GPOZaurrPermission -ADObject <ADObject[]> [-Type <String>] [-Principal <Stri
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
Add-GPOZaurrPermission
```
{{ Add example description here }}
## PARAMETERS
### -ADAdministrativeGroups
{{ Fill ADAdministrativeGroups Description }}
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ADObject
{{ Fill ADObject Description }}
```yaml
Type: ADObject[]
Parameter Sets: ADObject
Aliases: OrganizationalUnit, DistinguishedName
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -All
{{ Fill All Description }}
```yaml
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
{{ Fill Forest Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGuid
{{ Fill GPOGuid Description }}
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOName
{{ Fill GPOName Description }}
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Inheritable
{{ Fill Inheritable Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PermissionType
{{ Fill PermissionType Description }}
```yaml
Type: GPPermissionType
Parameter Sets: (All)
Aliases: IncludePermissionType
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PermitType
{{ Fill PermitType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Allow, Deny, All
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Principal
{{ Fill Principal Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: Trustee
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PrincipalType
{{ Fill PrincipalType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: TrusteeType
Accepted values: DistinguishedName, Name, Sid
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
{{ Fill Type Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: WellKnownAdministrative, Administrative, AuthenticatedUsers, Default
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
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).
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+107 -132
View File
@@ -1,21 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Backup-GPOZaurr
## SYNOPSIS
Provides Backup functionality to Group Policies
## SYNTAX
```
Backup-GPOZaurr [[-LimitProcessing] <Int32>] [[-Type] <String[]>] [[-Forest] <String>]
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
[[-BackupPath] <String>] [-BackupDated] [-WhatIf] [-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
Backup-GPOZaurr [[-LimitProcessing] <int>] [[-Type] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-BackupPath] <string>] [-BackupDated] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
@@ -24,110 +20,35 @@ Provides Backup functionality to Group Policies
## EXAMPLES
### EXAMPLE 1
```
$GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All
```powershell
PS > $GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All
$GPOSummary | Format-Table # only if you want to display output of backup
```
$GPOSummary | Format-Table # only if you want to display output of backup
### EXAMPLE 2
```
$GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All -BackupDated
```powershell
PS > $GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All -BackupDated
$GPOSummary | Format-Table # only if you want to display output of backup
```
$GPOSummary | Format-Table # only if you want to display output of backup
## PARAMETERS
### -LimitProcessing
Limits amount of GPOs that are backed up
### -BackupDated
Whether cmdlet should created Dated folders for executed backup or not. Keep in mind it's not nessecary and two backups made to same folder have their dates properly tagged
```yaml
Type: Int32
Parameter Sets: (All)
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: 0
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
Provides a way to backup only Empty or Unlinked GPOs.
The default is All.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -BackupPath
@@ -135,61 +56,111 @@ Path where to keep the backup
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 7
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -BackupDated
Whether cmdlet should created Dated folders for executed backup or not.
Keep in mind it's not nessecary and two backups made to same folder have their dates properly tagged
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Type: IDictionary
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -LimitProcessing
Limits amount of GPOs that are backed up
```yaml
Type: Int32
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: 0
Accept pipeline input: False
Accept wildcard characters: True
```
### -Type
Provides a way to backup only Empty or Unlinked GPOs. The default is All.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values: Empty, Unlinked, Disabled, All
Required: False
Position: 1
Default value: All
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -197,9 +168,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+56 -75
View File
@@ -1,187 +1,166 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Clear-GPOZaurrSysvolDFSR
## SYNOPSIS
{{ Fill in the Synopsis }}
Clears the ConflictAndDeleted folder in DFSR for specified GPOs.
## SYNTAX
```
Clear-GPOZaurrSysvolDFSR [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-ExcludeDomainControllers] <String[]>] [[-IncludeDomains] <String[]>]
[[-IncludeDomainControllers] <String[]>] [-SkipRODC] [[-ExtendedForestInformation] <IDictionary>]
[[-LimitProcessing] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
Clear-GPOZaurrSysvolDFSR [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-ExcludeDomainControllers] <string[]>] [[-IncludeDomains] <string[]>] [[-IncludeDomainControllers] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <int>] [-SkipRODC] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function clears the ConflictAndDeleted folder in DFSR for specified Group Policy Objects (GPOs) within a given forest. It allows excluding specific domains and domain controllers if needed.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Clear-GPOZaurrSysvolDFSR -Forest "contoso.com" -IncludeDomains "child.contoso.com" -ExcludeDomainControllers "dc1.contoso.com" -SkipRODC
Clears the ConflictAndDeleted folder in DFSR for GPOs in the "contoso.com" forest, including only the "child.contoso.com" domain and excluding the "dc1.contoso.com" domain controller.
```
### EXAMPLE 2
```powershell
PS > Clear-GPOZaurrSysvolDFSR -Forest "contoso.com" -IncludeDomains "child.contoso.com" -LimitProcessing 5
Clears the ConflictAndDeleted folder in DFSR for GPOs in the "contoso.com" forest, including only the "child.contoso.com" domain, and processes a maximum of 5 GPOs.
```
{{ Add example description here }}
## PARAMETERS
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomainControllers
{{ Fill ExcludeDomainControllers Description }}
Specifies an array of domain controllers to exclude from the cleanup process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the cleanup process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional forest information if needed.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name where the GPOs are located.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomainControllers
{{ Fill IncludeDomainControllers Description }}
Specifies an array of domain controllers to include in the cleanup process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: DomainControllers
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the cleanup process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
Specifies the maximum number of GPOs to process.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 6
Default value: None
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipRODC
{{ Fill SkipRODC Description }}
Indicates whether Read-Only Domain Controllers (RODCs) should be skipped during cleanup.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -189,11 +168,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+31 -22
View File
@@ -1,63 +1,70 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# ConvertFrom-CSExtension
## SYNOPSIS
{{ Fill in the Synopsis }}
Converts Client-side Extension (CSE) GUIDs to their corresponding names.
## SYNTAX
```
ConvertFrom-CSExtension [[-CSE] <String[]>] [-Limited] [<CommonParameters>]
### __AllParameterSets
```powershell
ConvertFrom-CSExtension [[-CSE] <string[]>] [-Limited] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function takes an array of CSE GUIDs and returns their corresponding names. It can be used to easily identify the purpose of each CSE GUID.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > ConvertFrom-CSExtension -CSE '{35378EAC-683F-11D2-A89A-00C04FBBCFA2}', '{0F6B957E-509E-11D1-A7CC-0000F87571E3}' -Limited
Converts the specified CSE GUIDs to their corresponding names, limited to a predefined set.
```
### EXAMPLE 2
```powershell
PS > ConvertFrom-CSExtension -CSE '{D02B1F73-3407-48AE-BA88-E8213C6761F1}', '{0ACDD40C-75AC-47ab-BAA0-BF6DE7E7FE63}'
Converts the specified CSE GUIDs to their corresponding names without any limitations.
```
{{ Add example description here }}
## PARAMETERS
### -CSE
{{ Fill CSE Description }}
Specifies an array of Client-side Extension (CSE) GUIDs to be converted to names.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Limited
{{ Fill Limited Description }}
Indicates whether the conversion should be limited to a predefined set of CSE GUIDs.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -65,11 +72,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+26 -22
View File
@@ -1,63 +1,63 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Export-GPOZaurrContent
## SYNOPSIS
Saves GPOs to XML or HTML files.
Exports Group Policy Objects (GPOs) to XML or HTML files.
## SYNTAX
```
Export-GPOZaurrContent [-FolderOutput] <String> [[-ReportType] <String>] [<CommonParameters>]
### __AllParameterSets
```powershell
Export-GPOZaurrContent [-FolderOutput] <string> [[-ReportType] <string>] [<CommonParameters>]
```
## DESCRIPTION
Saves GPOs to XML or HTML files.
This function exports GPOs to either XML or HTML files based on the specified parameters.
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Export-GPOZaurrContent -FolderOutput "C:\ExportedGPOs" -ReportType HTML
Exports all GPOs to HTML format and saves them in the "C:\ExportedGPOs" folder.
```
An example
```
## PARAMETERS
### -FolderOutput
The folder where the GPOs will be saved.
Specifies the folder path where the exported GPO files will be saved.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Path
Possible values:
Required: True
Position: 1
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ReportType
The type of report to generate.
Valid values are XML or HTML.
Default is XML.
Specifies the type of report to generate. Valid values are XML or HTML. The default value is XML.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values: XML, HTML
Required: False
Position: 2
Position: 1
Default value: XML
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -65,9 +65,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+41 -32
View File
@@ -1,63 +1,70 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Find-CSExtension
## SYNOPSIS
{{ Fill in the Synopsis }}
This function retrieves Group Policy Client Side Extensions (CSEs) from a specified Windows computer.
## SYNTAX
```
Find-CSExtension [[-CSE] <String[]>] [[-ComputerName] <String>] [<CommonParameters>]
### __AllParameterSets
```powershell
Find-CSExtension [[-CSE] <string[]>] [[-ComputerName] <string>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
The Find-CSExtension function lists Group Policy Client Side Extensions (CSEs) configured on a Windows computer. It queries the Windows Registry to retrieve information about the CSEs.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Find-CSExtension -ComputerName "Computer01"
Retrieves all CSEs configured on the computer named "Computer01".
```
### EXAMPLE 2
```powershell
PS > Find-CSExtension -CSE "CSE1", "CSE2" -ComputerName "Computer02"
Retrieves information about CSEs named "CSE1" and "CSE2" on the computer named "Computer02".
```
{{ Add example description here }}
## PARAMETERS
### -CSE
{{ Fill CSE Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ComputerName
{{ Fill ComputerName Description }}
Specifies the name of the computer from which to retrieve the CSE information.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -CSE
Specifies an array of CSE names to filter the results. If not provided, all CSEs will be listed.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -65,11 +72,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+149 -141
View File
@@ -1,50 +1,41 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurr
## SYNOPSIS
Gets information about all Group Policies.
Similar to what Get-GPO provides by default.
Gets information about all Group Policies. Similar to what Get-GPO provides by default.
## SYNTAX
```
Get-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] [[-GPOName] <String>] [[-GPOGuid] <String>]
[[-Type] <String[]>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <String[]>] [-PermissionsOnly] [-OwnerOnly]
[-Limited] [[-ADAdministrativeGroups] <IDictionary>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurr [[-ExcludeGroupPolicies] <scriptblock>] [[-GPOName] <string>] [[-GPOGuid] <string>] [[-Type] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <string[]>] [[-ADAdministrativeGroups] <IDictionary>] [-PermissionsOnly] [-OwnerOnly] [-Limited] [<CommonParameters>]
```
## DESCRIPTION
Gets information about all Group Policies.
Similar to what Get-GPO provides by default.
Gets information about all Group Policies. Similar to what Get-GPO provides by default.
## EXAMPLES
### EXAMPLE 1
```
$GPOs = Get-GPOZaurr
```powershell
PS > $GPOs = Get-GPOZaurr
$GPOs | Format-Table DisplayName, Owner, OwnerSID, OwnerType
```
$GPOs | Format-Table DisplayName, Owner, OwnerSID, OwnerType
### EXAMPLE 2
```
$GPO = Get-GPOZaurr -GPOName 'ALL | Allow use of biometrics'
```powershell
PS > $GPO = Get-GPOZaurr -GPOName 'ALL | Allow use of biometrics'
$GPO | Format-List *
```
$GPO | Format-List *
### EXAMPLE 3
```
$GPOS = Get-GPOZaurr -ExcludeGroupPolicies {
```
```powershell
PS > $GPOS = Get-GPOZaurr -ExcludeGroupPolicies {
Skip-GroupPolicy -Name 'de14_usr_std'
Skip-GroupPolicy -Name 'de14_usr_std' -DomaiName 'ad.evotec.xyz'
Skip-GroupPolicy -Name 'All | Trusted Websites' #-DomaiName 'ad.evotec.xyz'
@@ -52,84 +43,25 @@ Skip-GroupPolicy -Name 'de14_usr_std'
'COMPUTERS | Enable Sets'
}
$GPOS | Format-Table -AutoSize *
```
## PARAMETERS
### -ExcludeGroupPolicies
Marks the GPO as excluded from the list.
### -ADAdministrativeGroups
Ability to provide ADAdministrativeGroups from different function to speed up processing
```yaml
Type: ScriptBlock
Parameter Sets: (All)
Type: IDictionary
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Position: 9
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOName
Provide a GPOName to get information about a specific GPO.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGuid
Provide a GPOGuid to get information about a specific GPO.
```yaml
Type: String
Parameter Sets: (All)
Aliases: GUID, GPOID
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
Choose a specific type of GPO.
Options are: 'Empty', 'Unlinked', 'Disabled', 'NoApplyPermission', 'All'.
Default is All.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
@@ -137,29 +69,31 @@ Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 6
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
### -ExcludeGroupPolicies
Marks the GPO as excluded from the list.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Type: ScriptBlock
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 7
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -167,14 +101,63 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 8
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOGuid
Provide a GPOGuid to get information about a specific GPO.
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: GUID, GPOID
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOName
Provide a GPOName to get information about a specific GPO.
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOPath
@@ -182,44 +165,31 @@ Define GPOPath where the XML files are located to be analyzed instead of asking
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 9
Position: 8
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -PermissionsOnly
Only show permissions, by default all information is shown
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Default value: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -OwnerOnly
only show owner information, by default all information is shown
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Limited
@@ -227,29 +197,63 @@ Provide limited output without analyzing XML data
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ADAdministrativeGroups
Ability to provide ADAdministrativeGroups from different function to speed up processing
### -OwnerOnly
only show owner information, by default all information is shown
```yaml
Type: IDictionary
Parameter Sets: (All)
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 10
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -PermissionsOnly
Only show permissions, by default all information is shown
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -Type
Choose a specific type of GPO. Options are: 'Empty', 'Unlinked', 'Disabled', 'NoApplyPermission', 'All'. Default is All.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values: Empty, Unlinked, Disabled, NoApplyPermission, All
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -257,9 +261,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+83 -65
View File
@@ -1,202 +1,218 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrAD
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves Group Policy Objects (GPOs) information from Active Directory.
## SYNTAX
### Default (Default)
```
Get-GPOZaurrAD [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-DateFrom <DateTime>] [-DateTo <DateTime>] [-DateRange <String>] [-DateProperty <String[]>]
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```powershell
Get-GPOZaurrAD [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
### GPOName
```
Get-GPOZaurrAD [-GPOName <String>] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-DateFrom <DateTime>] [-DateTo <DateTime>] [-DateRange <String>] [-DateProperty <String[]>]
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```powershell
Get-GPOZaurrAD [-GPOName <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
### GPOGUID
```
Get-GPOZaurrAD [-GPOGuid <String>] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-DateFrom <DateTime>] [-DateTo <DateTime>] [-DateRange <String>] [-DateProperty <String[]>]
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```powershell
Get-GPOZaurrAD [-GPOGuid <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves information about Group Policy Objects (GPOs) from Active Directory based on specified criteria such as GPO name, GPO GUID, date range, and forest details.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrAD -GPOName "ExampleGPO"
```
{{ Add example description here }}
Description:
Retrieves information about a GPO with the name "ExampleGPO".
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrAD -GPOGuid "{12345678-1234-1234-1234-123456789012}"
```
Description:
Retrieves information about a GPO with the specified GUID.
### EXAMPLE 3
```powershell
PS > Get-GPOZaurrAD -Forest "example.com" -IncludeDomains "domain1", "domain2" -DateRange "Last30Days"
```
Description:
Retrieves GPO information from the forest "example.com" for domains "domain1" and "domain2" created or modified in the last 30 days.
## PARAMETERS
### -DateFrom
{{ Fill DateFrom Description }}
Specifies the start date for filtering GPOs based on creation or modification date.
```yaml
Type: DateTime
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DateProperty
{{ Fill DateProperty Description }}
Specifies the property (WhenCreated or WhenChanged) to use for filtering GPOs based on date.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Accepted values: WhenCreated, WhenChanged
Possible values: WhenCreated, WhenChanged
Required: False
Position: Named
Default value: None
Position: named
Default value: WhenCreated
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DateRange
{{ Fill DateRange Description }}
Specifies a predefined date range for filtering GPOs based on creation or modification date.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Accepted values: PastHour, CurrentHour, PastDay, CurrentDay, PastMonth, CurrentMonth, PastQuarter, CurrentQuarter, Last14Days, Last21Days, Last30Days, Last7Days, Last3Days, Last1Days
Possible values: PastHour, CurrentHour, PastDay, CurrentDay, PastMonth, CurrentMonth, PastQuarter, CurrentQuarter, Last14Days, Last21Days, Last30Days, Last7Days, Last3Days, Last1Days
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DateTo
{{ Fill DateTo Description }}
Specifies the end date for filtering GPOs based on creation or modification date.
```yaml
Type: DateTime
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional forest information to include in the output.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name to search for GPOs.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases: ForestName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOGuid
{{ Fill GPOGuid Description }}
Specifies the GUID of the GPO to retrieve.
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOName
{{ Fill GPOName Description }}
Specifies the name of the GPO to retrieve.
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -204,11 +220,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+27 -17
View File
@@ -1,48 +1,56 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrBackupInformation
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves backup information from GPOZaurr manifest files.
## SYNTAX
```
Get-GPOZaurrBackupInformation [[-BackupFolder] <String[]>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrBackupInformation [[-BackupFolder] <string[]>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves backup information from GPOZaurr manifest files located in the specified BackupFolder(s).
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrBackupInformation -BackupFolder "C:\Backups"
```
{{ Add example description here }}
Description:
Retrieves backup information from GPOZaurr manifest files located in the "C:\Backups" folder.
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrBackupInformation -BackupFolder "C:\Backups", "D:\Archives"
```
Description:
Retrieves backup information from GPOZaurr manifest files located in both "C:\Backups" and "D:\Archives" folders.
## PARAMETERS
### -BackupFolder
{{ Fill BackupFolder Description }}
Specifies the path(s) to the folder containing GPOZaurr manifest files.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -50,11 +58,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+97 -91
View File
@@ -1,21 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrBroken
## SYNOPSIS
Detects broken or otherwise damaged Group Policies
## SYNTAX
```
Get-GPOZaurrBroken [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-ExcludeDomainControllers] <String[]>]
[[-IncludeDomains] <String[]>] [[-IncludeDomainControllers] <String[]>] [-SkipRODC]
[[-ExtendedForestInformation] <IDictionary>] [-VerifyDomainControllers] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrBroken [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-ExcludeDomainControllers] <string[]>] [[-IncludeDomains] <string[]>] [[-IncludeDomainControllers] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-SkipRODC] [-VerifyDomainControllers] [<CommonParameters>]
```
## DESCRIPTION
@@ -30,25 +26,27 @@ It provides few statuses:
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Get-GPOZaurrBroken -Verbose | Format-Table
```
Get-GPOZaurrBroken -Verbose | Format-Table
```
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
### -ExcludeDomainControllers
Exclude specific domain controllers, by default there are no exclusions, as long as VerifyDomainControllers switch is enabled. Otherwise this parameter is ignored.
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
@@ -56,77 +54,15 @@ Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomainControllers
Exclude specific domain controllers, by default there are no exclusions, as long as VerifyDomainControllers switch is enabled.
Otherwise this parameter is ignored.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomainControllers
Include only specific domain controllers, by default all domain controllers are included, as long as VerifyDomainControllers switch is enabled.
Otherwise this parameter is ignored.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: DomainControllers
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipRODC
Skip Read-Only Domain Controllers.
By default all domain controllers are included.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -134,14 +70,79 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 6
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomainControllers
Include only specific domain controllers, by default all domain controllers are included, as long as VerifyDomainControllers switch is enabled. Otherwise this parameter is ignored.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: DomainControllers
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -SkipRODC
Skip Read-Only Domain Controllers. By default all domain controllers are included.
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -VerifyDomainControllers
@@ -149,14 +150,15 @@ Forces cmdlet to check GPO Existance on Domain Controllers rather then per domai
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -164,9 +166,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+56 -49
View File
@@ -1,20 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrBrokenLink
## SYNOPSIS
Finds any GPO link that doesn't have a matching GPO (already removed GPO).
## SYNTAX
```
Get-GPOZaurrBrokenLink [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrBrokenLink [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
```
## DESCRIPTION
@@ -23,60 +20,33 @@ Finds any GPO link that doesn't have a matching GPO (already removed GPO).
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Get-GPOZaurrBrokenLink -Verbose | Format-Table -AutoSize *
```
Get-GPOZaurrBrokenLink -Verbose | Format-Table -AutoSize *
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl | Format-Table -AutoSize *
```
Get-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl | Format-Table -AutoSize *
```
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -84,14 +54,47 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -99,9 +102,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+26 -18
View File
@@ -1,48 +1,54 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrDictionary
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves a dictionary of Group Policy Objects (GPOs) with their associated types and paths.
## SYNTAX
```
Get-GPOZaurrDictionary [[-Splitter] <String>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrDictionary [[-Splitter] <string>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves a dictionary of Group Policy Objects (GPOs) along with their associated types and paths. It iterates through the GPOs stored in the $Script:GPODitionary variable and constructs a custom object for each GPO containing its name, types, and path.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrDictionary
Retrieves the dictionary of GPOs with their types and paths using the default newline delimiter.
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrDictionary -Splitter ","
Retrieves the dictionary of GPOs with their types and paths using a comma as the delimiter.
```
{{ Add example description here }}
## PARAMETERS
### -Splitter
{{ Fill Splitter Description }}
Specifies the delimiter used to separate multiple types or paths. Default value is [System.Environment]::NewLine.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Default value: [System.Environment]::NewLine
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -50,11 +56,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+32 -27
View File
@@ -1,94 +1,97 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrDuplicateObject
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves duplicate Group Policy Objects (GPOs) within a specified forest.
## SYNTAX
```
Get-GPOZaurrDuplicateObject [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrDuplicateObject [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves duplicate Group Policy Objects (GPOs) within a specified forest by comparing GPOs based on partial distinguished name matching.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrDuplicateObject -Forest "contoso.com" -IncludeDomains "child1.contoso.com", "child2.contoso.com" -ExcludeDomains "child3.contoso.com" -ExtendedForestInformation $additionalInfo
```
{{ Add example description here }}
Description
-----------
Retrieves duplicate GPOs within the "contoso.com" forest, including domains "child1.contoso.com" and "child2.contoso.com" while excluding "child3.contoso.com". Additional forest information is provided for the search.
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domain names to exclude from the search for duplicate GPOs.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest to aid in the search for duplicate GPOs.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the name of the forest to search for duplicate GPOs.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domain names to include in the search for duplicate GPOs.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -96,11 +99,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+70 -57
View File
@@ -1,187 +1,198 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrFiles
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves information about Group Policy Objects (GPOs) stored in SYSVOL and NETLOGON folders.
## SYNTAX
```
Get-GPOZaurrFiles [[-Type] <String[]>] [[-HashAlgorithm] <String>] [-Signature] [-AsHashTable] [-Extended]
[-ExtendedMetaData] [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrFiles [[-Type] <string[]>] [[-HashAlgorithm] <string>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-Signature] [-AsHashTable] [-Extended] [-ExtendedMetaData] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves information about GPOs stored in SYSVOL and NETLOGON folders of specified domains. It can filter by type of files and hash algorithms used for verification.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrFiles -Type 'All' -HashAlgorithm 'SHA256' -Signature
Retrieves all files from SYSVOL and NETLOGON folders with SHA256 hash algorithm and includes file signatures.
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrFiles -Type 'Sysvol' -HashAlgorithm 'MD5' -AsHashTable
Retrieves only SYSVOL files with MD5 hash algorithm and returns the results as a hashtable.
```
{{ Add example description here }}
## PARAMETERS
### -AsHashTable
{{ Fill AsHashTable Description }}
Indicates whether to return the results as a hashtable.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Extended
{{ Fill Extended Description }}
Indicates whether to include extended information about the forest.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional forest information to include.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedMetaData
{{ Fill ExtendedMetaData Description }}
Indicates whether to include extended metadata information.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name to retrieve GPO information from.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -HashAlgorithm
{{ Fill HashAlgorithm Description }}
Specifies the hash algorithm to use for file verification. Valid values are 'None', 'MACTripleDES', 'MD5', 'RIPEMD160', 'SHA1', 'SHA256', 'SHA384', 'SHA512'.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: None, MACTripleDES, MD5, RIPEMD160, SHA1, SHA256, SHA384, SHA512
Possible values: None, MACTripleDES, MD5, RIPEMD160, SHA1, SHA256, SHA384, SHA512
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Signature
{{ Fill Signature Description }}
Indicates whether to include file signatures for verification.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
{{ Fill Type Description }}
Specifies the type of files to retrieve. Valid values are 'All', 'Netlogon', and 'Sysvol'.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: All, Netlogon, Sysvol
Possible values: All, Netlogon, Sysvol
Required: False
Position: 0
Default value: None
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -189,11 +200,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+36 -32
View File
@@ -1,109 +1,111 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrFilesPolicyDefinition
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves policy definitions for Group Policy Objects (GPOs) within specified domains.
## SYNTAX
```
Get-GPOZaurrFilesPolicyDefinition [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-Signature] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrFilesPolicyDefinition [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-Signature] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves policy definitions for GPOs within specified domains. It collects information about policy files, including their attributes and digital signatures.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrFilesPolicyDefinition -Forest "contoso.com" -IncludeDomains "domain1", "domain2" -ExcludeDomains "domain3" -Signature
Retrieves policy definitions for GPOs within the "contoso.com" forest, including domains "domain1" and "domain2" while excluding "domain3". Digital signature information is also retrieved.
```
{{ Add example description here }}
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional forest information to include in the output.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name to retrieve GPO policy definitions from.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Signature
{{ Fill Signature Description }}
Indicates whether to retrieve digital signature information for policy files.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -111,11 +113,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+53 -43
View File
@@ -1,142 +1,150 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrFolders
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves information about GPO folders within specified domains.
## SYNTAX
```
Get-GPOZaurrFolders [[-Type] <String[]>] [[-FolderType] <String>] [[-Forest] <String>]
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
[-AsHashTable] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrFolders [[-Type] <string[]>] [[-FolderType] <string>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-AsHashTable] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves information about various GPO folders within specified domains, such as PolicyDefinitions, Policies, Scripts, GPO Starters, NETLOGON Scripts, DfsrPrivate, and SYSVOL Root.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrFolders -Type All -FolderType All -Forest 'example.com' -IncludeDomains 'domain1', 'domain2' -ExcludeDomains 'domain3' -ExtendedForestInformation $info -AsHashTable
Retrieves information about all types of GPO folders within the specified domains in the forest 'example.com', excluding 'domain3', and including 'domain1' and 'domain2', with extended forest information.
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrFolders -Type Sysvol -FolderType NTFRS -Forest 'example.com' -IncludeDomains 'domain1' -AsHashTable
Retrieves information about Sysvol folders using NTFRS type within the specified domain 'domain1' in the forest 'example.com' and returns the output as a hashtable.
```
{{ Add example description here }}
## PARAMETERS
### -AsHashTable
{{ Fill AsHashTable Description }}
Indicates whether to return the output as a hashtable.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies domains to exclude from the retrieval.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -FolderType
{{ Fill FolderType Description }}
Specifies the type of folders to retrieve. Valid values are 'All', 'NTFRS', 'Empty'.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: All, NTFRS, Empty
Possible values: All, NTFRS, Empty
Required: False
Position: 1
Default value: None
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name to retrieve information for.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies domains to include in the retrieval.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
{{ Fill Type Description }}
Specifies the type of folders to retrieve. Valid values are 'All', 'Netlogon', 'Sysvol'.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: All, Netlogon, Sysvol
Possible values: All, Netlogon, Sysvol
Required: False
Position: 0
Default value: None
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -144,11 +152,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+121 -116
View File
@@ -1,174 +1,175 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrInheritance
## SYNOPSIS
Short description
Retrieves inheritance information for Group Policy Objects (GPOs) within specified Organizational Units (OUs).
## SYNTAX
```
Get-GPOZaurrInheritance [-IncludeBlockedObjects] [-OnlyBlockedInheritance] [-IncludeExcludedObjects]
[-IncludeGroupPoliciesForBlockedObjects] [[-Exclusions] <String[]>] [[-Forest] <String>]
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
[<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrInheritance [[-Exclusions] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-IncludeBlockedObjects] [-OnlyBlockedInheritance] [-IncludeExcludedObjects] [-IncludeGroupPoliciesForBlockedObjects] [<CommonParameters>]
```
## DESCRIPTION
Long description
This function retrieves and displays inheritance information for GPOs within specified OUs. It provides details on blocked inheritance, excluded objects, and group policies associated with blocked objects.
## EXAMPLES
### EXAMPLE 1
```
$Objects = Get-GPOZaurrInheritance -IncludeBlockedObjects -IncludeExcludedObjects -OnlyBlockedInheritance -Exclusions $ExcludedOU
```powershell
PS > $Objects = Get-GPOZaurrInheritance -IncludeBlockedObjects -IncludeExcludedObjects -OnlyBlockedInheritance -Exclusions $ExcludedOU
$Objects | Format-Table
```
$Objects | Format-Table
## PARAMETERS
### -IncludeBlockedObjects
Include OU's with blocked inheritance.
Default disabled
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -OnlyBlockedInheritance
Show only OU's with blocked inheritance
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeExcludedObjects
Show excluded objets.
Default disabled
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeGroupPoliciesForBlockedObjects
{{ Fill IncludeGroupPoliciesForBlockedObjects Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -Exclusions
Provide exclusions for OU's approved by IT.
You can provide OU by canonical name or distinguishedName
### -ExcludeDomains
Specifies the domain to exclude from the search. By default, the entire forest is scanned.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
### -Exclusions
Specifies the OUs approved by IT to be excluded. You can provide OUs by canonical name or distinguishedName.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
### -ExtendedForestInformation
Allows providing Forest Information from another command to speed up processing.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Type: IDictionary
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
### -Forest
Specifies the target forest. By default, the current forest is used.
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 5
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeBlockedObjects
Specifies whether to include OUs with blocked inheritance. By default, this is disabled.
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Specifies specific domains to include. By default, the entire forest is scanned.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeExcludedObjects
Specifies whether to show excluded objects. By default, this is disabled.
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeGroupPoliciesForBlockedObjects
Specifies whether to include Group Policies for blocked objects. By default, this is disabled.
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -OnlyBlockedInheritance
Specifies whether to show only OUs with blocked inheritance.
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -176,9 +177,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+30 -27
View File
@@ -1,94 +1,95 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrLegacyFiles
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves legacy Group Policy Object (GPO) files from the SYSVOL directory of specified domains within a forest.
## SYNTAX
```
Get-GPOZaurrLegacyFiles [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrLegacyFiles [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
The Get-GPOZaurrLegacyFiles function retrieves legacy GPO files, such as '*.adm' and 'admfiles.ini', from the SYSVOL directory of specified domains within a forest. It provides detailed information about these files including their name, full path, creation time, last write time, attributes, associated domain name, and directory name.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrLegacyFiles -Forest "contoso.com" -IncludeDomains "domain1", "domain2" -ExcludeDomains "domain3" -ExtendedForestInformation $additionalInfo
```
{{ Add example description here }}
Retrieves legacy GPO files from the "contoso.com" forest for "domain1" and "domain2" domains while excluding "domain3", using additional forest information.
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domain names to exclude from the search for legacy GPO files.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest to enhance the retrieval process.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the name of the forest from which to retrieve legacy GPO files.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domain names to include in the search for legacy GPO files.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -96,11 +97,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+99 -85
View File
@@ -1,73 +1,73 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrLink
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves Group Policy Object (GPO) links based on specified criteria.
## SYNTAX
### Linked (Default)
```
Get-GPOZaurrLink [-Linked <String[]>] [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <String>]
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-AsHashTable] [-Summary] [<CommonParameters>]
```powershell
Get-GPOZaurrLink [-Linked <string[]>] [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
```
### ADObject
```
Get-GPOZaurrLink -ADObject <ADObject[]> [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>]
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
```powershell
Get-GPOZaurrLink -ADObject <ADObject[]> [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
```
### Filter
```
Get-GPOZaurrLink [-Filter <String>] [-SearchBase <String>] [-SearchScope <ADSearchScope>] [-Limited]
[-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary]
[<CommonParameters>]
```powershell
Get-GPOZaurrLink [-Filter <string>] [-SearchBase <string>] [-SearchScope <ADSearchScope>] [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
```
### Site
```
Get-GPOZaurrLink [-Site <String[]>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary]
[<CommonParameters>]
```powershell
Get-GPOZaurrLink [-Site <string[]>] [-GPOCache <IDictionary>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves GPO links based on various parameters such as ADObject, Filter, Linked, Site, etc. It provides flexibility in searching for GPO links within Active Directory.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrLink -ADObject $ADObject -Linked 'All'
```
{{ Add example description here }}
Description
-----------
Retrieves all linked GPOZaurr links for the specified Active Directory object(s).
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrLink -Filter "(objectClass -eq 'organizationalUnit')" -SearchBase 'CN=Configuration,DC=ad,DC=evotec,DC=xyz'
```
Description
-----------
Retrieves GPOZaurr links based on the specified filter and search base.
## PARAMETERS
### -ADObject
{{ Fill ADObject Description }}
Specifies the Active Directory object(s) to search for GPO links.
```yaml
Type: ADObject[]
Parameter Sets: ADObject
Aliases:
Possible values:
Required: True
Position: Named
Position: named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: True
```
### -AsHashTable
@@ -75,29 +75,31 @@ Accept wildcard characters: False
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Linked, ADObject, Filter, Site
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies the domains to exclude from the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Linked, ADObject, Filter, Site
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -105,166 +107,175 @@ Accept wildcard characters: False
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: Linked, ADObject, Filter, Site
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Filter
{{ Fill Filter Description }}
Specifies the filter criteria to search for GPO links.
```yaml
Type: String
Parameter Sets: Filter
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name for filtering GPO links.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: Linked, ADObject, Filter, Site
Aliases: ForestName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOCache
{{ Fill GPOCache Description }}
Specifies a cache for storing GPO information.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: Linked, ADObject, Filter, Site
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies the domains to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Linked, ADObject, Filter, Site
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Limited
{{ Fill Limited Description }}
Indicates whether to limit the search results.
```yaml
Type: SwitchParameter
Parameter Sets: Linked, ADObject, Filter
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Linked
{{ Fill Linked Description }}
Specifies the type of linked GPOs to retrieve. Valid values are 'All', 'Root', 'DomainControllers', 'Site', and 'OrganizationalUnit'.
```yaml
Type: String[]
Parameter Sets: Linked
Aliases:
Accepted values: All, Root, DomainControllers, Site, OrganizationalUnit
Possible values: All, Root, DomainControllers, Site, OrganizationalUnit
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SearchBase
{{ Fill SearchBase Description }}
Specifies the search base for filtering GPO links.
```yaml
Type: String
Parameter Sets: Filter
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SearchScope
{{ Fill SearchScope Description }}
Specifies the search scope for filtering GPO links.
```yaml
Type: ADSearchScope
Parameter Sets: Filter
Aliases:
Accepted values: Base, OneLevel, Subtree
Possible values: Base, OneLevel, Subtree
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Site
{{ Fill Site Description }}
Specifies the site(s) to search for GPO links.
```yaml
Type: String[]
Parameter Sets: Site
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipDuplicates
{{ Fill SkipDuplicates Description }}
Indicates whether to skip duplicate search results.
```yaml
Type: SwitchParameter
Parameter Sets: Linked, ADObject, Filter
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Summary
@@ -272,14 +283,15 @@ Accept wildcard characters: False
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Linked, ADObject, Filter, Site
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -287,11 +299,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### Microsoft.ActiveDirectory.Management.ADObject[]
- `ADObject[]`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+48 -38
View File
@@ -1,126 +1,134 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrLinkSummary
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves a summary of GPO links based on specified criteria.
## SYNTAX
```
Get-GPOZaurrLinkSummary [[-Report] <String[]>] [-UnlimitedProperties] [[-Forest] <String>]
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
[<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrLinkSummary [[-Report] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-UnlimitedProperties] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves a summary of GPO links based on the provided parameters. It categorizes the links into different types and provides detailed information about each link.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrLinkSummary -Forest "Contoso" -IncludeDomains "Domain1", "Domain2" -Report "MultipleLinks"
Retrieves a summary of GPO links for the specified forest and included domains, focusing on multiple links.
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrLinkSummary -Forest "Fabrikam" -ExcludeDomains "Domain3" -Report "OneLink"
Retrieves a summary of GPO links for the specified forest excluding Domain3, focusing on a single link.
```
{{ Add example description here }}
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the report.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name to retrieve GPO links from.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the report.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Report
{{ Fill Report Description }}
Specifies the type of report to generate. Valid values are 'All', 'MultipleLinks', 'OneLink', and 'LinksSummary'. Default is 'All'.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: All, MultipleLinks, OneLink, LinksSummary
Possible values: All, MultipleLinks, OneLink, LinksSummary
Required: False
Position: 0
Default value: None
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -UnlimitedProperties
{{ Fill UnlimitedProperties Description }}
Indicates whether to include unlimited properties in the report.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -128,11 +136,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+164
View File
@@ -0,0 +1,164 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrMissingFiles
## SYNOPSIS
Retrieves information about missing files in Group Policy Objects (GPOs) within a specified forest.
## SYNTAX
### __AllParameterSets
```powershell
Get-GPOZaurrMissingFiles [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-GPOName] <string[]>] [[-GPOGUID] <string[]>] [-BrokenOnly] [<CommonParameters>]
```
## DESCRIPTION
This function queries Active Directory for GPOs and checks for missing files within them. It provides detailed information about any errors found.
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Get-GPOZaurrMissingFiles -Forest "example.com" -IncludeDomains "domain1", "domain2" -ExcludeDomains "domain3" -GPOName "GPO1"
```
Retrieves information about missing files in the GPO named "GPO1" within the "example.com" forest, including only domains "domain1" and "domain2" while excluding "domain3".
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrMissingFiles -Forest "example.com" -IncludeDomains "domain1", "domain2" -GPOGUID "12345678-1234-1234-1234-1234567890AB" -BrokenOnly
```
Retrieves information about GPOs with missing files in the "example.com" forest, including only domains "domain1" and "domain2" for the GPO with the specified GUID, displaying only GPOs with missing files.
## PARAMETERS
### -BrokenOnly
Indicates whether to only display GPOs with missing files.
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -ExcludeDomains
Specifies an array of domains to exclude from the query.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -Forest
Specifies the name of the forest to query for GPO information.
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOGUID
Specifies the GUID of the GPO to retrieve information for.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOName
Specifies the name of the GPO to retrieve information for.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Name
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Specifies an array of domains to include in the query.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### 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).
## INPUTS
- `None`
## OUTPUTS
- `None`
## RELATED LINKS
- None
+61 -45
View File
@@ -1,137 +1,151 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrNetLogon
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves information about Group Policy Objects (GPO) stored in the Netlogon and SYSVOL directories.
## SYNTAX
### Default (Default)
```
Get-GPOZaurrNetLogon [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```powershell
Get-GPOZaurrNetLogon [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
### OwnerOnly
```
Get-GPOZaurrNetLogon [-OwnerOnly] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```powershell
Get-GPOZaurrNetLogon [-OwnerOnly] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
### SkipOwner
```
Get-GPOZaurrNetLogon [-SkipOwner] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```powershell
Get-GPOZaurrNetLogon [-SkipOwner] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
The Get-GPOZaurrNetLogon function retrieves details about GPOs stored in the Netlogon and SYSVOL directories of specified domains within a forest. It provides information about file ownership, status, domain, extension, creation time, and more.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrNetLogon -Forest "contoso.com" -IncludeDomains "domain1", "domain2"
Retrieves GPO information for the specified forest and domains.
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrNetLogon -OwnerOnly
Retrieves GPO information only for GPOs with identified owners.
```
### EXAMPLE 3
```powershell
PS > Get-GPOZaurrNetLogon -SkipOwner
Retrieves GPO information while skipping the owner check.
```
{{ Add example description here }}
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from GPO retrieval.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Default, OwnerOnly, SkipOwner
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional forest information to include in the output.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: Default, OwnerOnly, SkipOwner
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name to retrieve GPO information from.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: Default, OwnerOnly, SkipOwner
Aliases: ForestName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in GPO retrieval.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Default, OwnerOnly, SkipOwner
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -OwnerOnly
{{ Fill OwnerOnly Description }}
Specifies whether to include only GPOs with identified owners.
```yaml
Type: SwitchParameter
Parameter Sets: OwnerOnly
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipOwner
{{ Fill SkipOwner Description }}
Specifies whether to skip checking the owner of GPOs.
```yaml
Type: SwitchParameter
Parameter Sets: SkipOwner
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -139,11 +153,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+38 -35
View File
@@ -1,126 +1,127 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrOrganizationalUnit
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves information about Group Policy Objects (GPOs) linked to Organizational Units (OUs) within a specified forest.
## SYNTAX
```
Get-GPOZaurrOrganizationalUnit [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Option] <String[]>]
[[-ExcludeOrganizationalUnit] <String[]>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrOrganizationalUnit [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Option] <string[]>] [[-ExcludeOrganizationalUnit] <string[]>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves detailed information about the GPOs linked to OUs within a specified forest. It provides information on linked GPOs, objects within OUs, and counts of objects at different levels.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrOrganizationalUnit -Forest "contoso.com" -IncludeDomains "child.contoso.com" -ExcludeDomains "test.contoso.com" -ExtendedForestInformation $ExtendedInfo -Option "OK" -ExcludeOrganizationalUnit "OU=Test,DC=contoso,DC=com"
Retrieves information about GPOs linked to OUs in the "contoso.com" forest, including the "child.contoso.com" domain, excluding the "test.contoso.com" domain, with additional forest information, performing the 'OK' action, and excluding the "OU=Test,DC=contoso,DC=com" OU.
```
{{ Add example description here }}
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeOrganizationalUnit
{{ Fill ExcludeOrganizationalUnit Description }}
Specifies an array of OUs to exclude from processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ExcludeOU, Exclusions
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the name of the forest to retrieve information from.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include for processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Option
{{ Fill Option Description }}
Specifies the action to perform on the retrieved data. Valid values are 'OK', 'Unlink', or 'Delete'.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: OK, Unlink, Delete
Possible values: OK, Unlink, Delete
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -128,11 +129,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+155 -150
View File
@@ -1,36 +1,27 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrOwner
## SYNOPSIS
Gets owners of GPOs from Active Directory and SYSVOL
## SYNTAX
### Default (Default)
```
Get-GPOZaurrOwner [-IncludeSysvol] [-SkipBroken] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <String[]>] [<CommonParameters>]
```powershell
Get-GPOZaurrOwner [-IncludeSysvol] [-SkipBroken] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <string[]>] [<CommonParameters>]
```
### GPOName
```
Get-GPOZaurrOwner [-GPOName <String>] [-IncludeSysvol] [-SkipBroken] [-Forest <String>]
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <String[]>] [<CommonParameters>]
```powershell
Get-GPOZaurrOwner [-GPOName <string>] [-IncludeSysvol] [-SkipBroken] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <string[]>] [<CommonParameters>]
```
### GPOGUID
```
Get-GPOZaurrOwner [-GPOGuid <String>] [-IncludeSysvol] [-SkipBroken] [-Forest <String>]
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <String[]>] [<CommonParameters>]
```powershell
Get-GPOZaurrOwner [-GPOGuid <string>] [-IncludeSysvol] [-SkipBroken] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <string[]>] [<CommonParameters>]
```
## DESCRIPTION
@@ -39,152 +30,33 @@ Gets owners of GPOs from Active Directory and SYSVOL
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Get-GPOZaurrOwner -Verbose -IncludeSysvol
```
Get-GPOZaurrOwner -Verbose -IncludeSysvol
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrOwner -Verbose -IncludeSysvol -SkipBroken
```
Get-GPOZaurrOwner -Verbose -IncludeSysvol -SkipBroken
```
## PARAMETERS
### -GPOName
Name of GPO.
By default all GPOs are returned
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGuid
GUID of GPO.
By default all GPOs are returned
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeSysvol
Includes Owner from SYSVOL as well
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipBroken
Doesn't display GPOs that have no SYSVOL content (orphaned GPOs)
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ADAdministrativeGroups
Ability to provide AD Administrative Groups from another command to speed up processing
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ApprovedOwner
@@ -192,14 +64,143 @@ Ability to provide different owner (non administrative that still is approved fo
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases: Exclusion, Exclusions
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
```yaml
Type: IDictionary
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: Default, GPOName, GPOGUID
Aliases: ForestName
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOGuid
GUID of GPO. By default all GPOs are returned
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOName
Name of GPO. By default all GPOs are returned
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: Default, GPOName, GPOGUID
Aliases: Domain, Domains
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeSysvol
Includes Owner from SYSVOL as well
```yaml
Type: SwitchParameter
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -SkipBroken
Doesn't display GPOs that have no SYSVOL content (orphaned GPOs)
```yaml
Type: SwitchParameter
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -207,9 +208,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+60 -52
View File
@@ -1,20 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrPassword
## SYNOPSIS
Tries to find CPassword in Group Policies or given path and translate it to readable value
## SYNTAX
```
Get-GPOZaurrPassword [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <String[]>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrPassword [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <string[]>] [<CommonParameters>]
```
## DESCRIPTION
@@ -23,60 +20,33 @@ Tries to find CPassword in Group Policies or given path and translate it to read
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Get-GPOZaurrPassword -GPOPath 'C:\Users\przemyslaw.klys\Desktop\GPOExport_2020.10.12'
```
Get-GPOZaurrPassword -GPOPath 'C:\Users\przemyslaw.klys\Desktop\GPOExport_2020.10.12'
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrPassword
```
Get-GPOZaurrPassword
```
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -84,14 +54,31 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOPath
@@ -99,14 +86,31 @@ Path where Group Policy content is located or where backup is located
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -114,9 +118,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+10 -359
View File
@@ -1,45 +1,16 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrPermission
## SYNOPSIS
{{ Fill in the Synopsis }}
## SYNTAX
### GPO (Default)
```
Get-GPOZaurrPermission [-Principal <String[]>] [-PrincipalType <String>] [-Type <String[]>] [-SkipWellKnown]
[-SkipAdministrative] [-IncludeOwner] [-IncludePermissionType <GPPermissionType[]>]
[-ExcludePermissionType <GPPermissionType[]>] [-PermitType <String>] [-ExcludePrincipal <String[]>]
[-ExcludePrincipalType <String>] [-IncludeGPOObject] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-ReturnSecurityWhenNoData] [-ReturnSingleObject] [<CommonParameters>]
```
### GPOName
```
Get-GPOZaurrPermission [-GPOName <String>] [-Principal <String[]>] [-PrincipalType <String>] [-Type <String[]>]
[-SkipWellKnown] [-SkipAdministrative] [-IncludeOwner] [-IncludePermissionType <GPPermissionType[]>]
[-ExcludePermissionType <GPPermissionType[]>] [-PermitType <String>] [-ExcludePrincipal <String[]>]
[-ExcludePrincipalType <String>] [-IncludeGPOObject] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-ReturnSecurityWhenNoData] [-ReturnSingleObject] [<CommonParameters>]
```
### GPOGUID
```
Get-GPOZaurrPermission [-GPOGuid <String>] [-Principal <String[]>] [-PrincipalType <String>] [-Type <String[]>]
[-SkipWellKnown] [-SkipAdministrative] [-IncludeOwner] [-IncludePermissionType <GPPermissionType[]>]
[-ExcludePermissionType <GPPermissionType[]>] [-PermitType <String>] [-ExcludePrincipal <String[]>]
[-ExcludePrincipalType <String>] [-IncludeGPOObject] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
[-ADAdministrativeGroups <IDictionary>] [-ReturnSecurityWhenNoData] [-ReturnSingleObject] [<CommonParameters>]
```powershell
Get-GPOZaurrPermission
```
## DESCRIPTION
@@ -47,346 +18,26 @@ Get-GPOZaurrPermission [-GPOGuid <String>] [-Principal <String[]>] [-PrincipalTy
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
Get-GPOZaurrPermission
```
{{ Add example description here }}
## PARAMETERS
### -ADAdministrativeGroups
{{ Fill ADAdministrativeGroups Description }}
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludePermissionType
{{ Fill ExcludePermissionType Description }}
```yaml
Type: GPPermissionType[]
Parameter Sets: (All)
Aliases:
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludePrincipal
{{ Fill ExcludePrincipal Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludePrincipalType
{{ Fill ExcludePrincipalType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: DistinguishedName, Name, Sid
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
{{ Fill Forest Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGuid
{{ Fill GPOGuid Description }}
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOName
{{ Fill GPOName Description }}
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeGPOObject
{{ Fill IncludeGPOObject Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeOwner
{{ Fill IncludeOwner Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludePermissionType
{{ Fill IncludePermissionType Description }}
```yaml
Type: GPPermissionType[]
Parameter Sets: (All)
Aliases:
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PermitType
{{ Fill PermitType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Allow, Deny, All
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Principal
{{ Fill Principal Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PrincipalType
{{ Fill PrincipalType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: DistinguishedName, Name, NetbiosName, Sid
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ReturnSecurityWhenNoData
{{ Fill ReturnSecurityWhenNoData Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ReturnSingleObject
{{ Fill ReturnSingleObject Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipAdministrative
{{ Fill SkipAdministrative Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipWellKnown
{{ Fill SkipWellKnown Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
{{ Fill Type Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: AuthenticatedUsers, DomainComputers, Unknown, WellKnownAdministrative, NotWellKnown, NotWellKnownAdministrative, NotAdministrative, Administrative, All
Required: False
Position: Named
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).
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+30 -27
View File
@@ -1,94 +1,95 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrPermissionAnalysis
## SYNOPSIS
{{ Fill in the Synopsis }}
Analyzes permissions for Group Policy Objects (GPOs) and administrative groups.
## SYNTAX
```
Get-GPOZaurrPermissionAnalysis [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-IncludeDomains] <String[]>] [[-Permissions] <Array>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrPermissionAnalysis [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-Permissions] <array>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function analyzes permissions for Group Policy Objects (GPOs) and identifies administrative groups with specific permissions.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrPermissionAnalysis -Forest "ContosoForest" -IncludeDomains @("Domain1", "Domain2") -ExcludeDomains @("Domain3") -Permissions $PermissionsArray
Analyzes permissions for GPOs in the "ContosoForest" forest, including "Domain1" and "Domain2" while excluding "Domain3", using the specified permissions array.
```
{{ Add example description here }}
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the analysis.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the name of the forest to analyze.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the analysis.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Permissions
{{ Fill Permissions Description }}
Specifies an array of permissions to analyze.
```yaml
Type: Array
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -96,11 +97,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+69 -61
View File
@@ -1,186 +1,192 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrPermissionConsistency
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves information about Group Policy Objects (GPOs) and checks permission consistency across domains.
## SYNTAX
### Type (Default)
```
Get-GPOZaurrPermissionConsistency [-Type <String[]>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject]
[-VerifyInheritance] [<CommonParameters>]
```powershell
Get-GPOZaurrPermissionConsistency [-Type <string[]>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject] [-VerifyInheritance] [<CommonParameters>]
```
### GPOName
```
Get-GPOZaurrPermissionConsistency [-GPOName <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject]
[-VerifyInheritance] [<CommonParameters>]
```powershell
Get-GPOZaurrPermissionConsistency [-GPOName <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject] [-VerifyInheritance] [<CommonParameters>]
```
### GPOGUID
```
Get-GPOZaurrPermissionConsistency [-GPOGuid <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject]
[-VerifyInheritance] [<CommonParameters>]
```powershell
Get-GPOZaurrPermissionConsistency [-GPOGuid <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject] [-VerifyInheritance] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
The Get-GPOZaurrPermissionConsistency function retrieves information about GPOs and checks permission consistency across domains. It can filter by GPO name, GPO GUID, or type of consistency. It also provides options to include/exclude specific domains and verify inheritance.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrPermissionConsistency -GPOName "TestGPO" -Forest "Contoso" -IncludeDomains @("DomainA", "DomainB") -Type "Consistent"
Retrieves permission consistency information for the GPO named "TestGPO" in the forest "Contoso" for domains "DomainA" and "DomainB" with consistent permissions.
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrPermissionConsistency -GPOGuid "12345678-1234-1234-1234-1234567890AB" -Forest "Fabrikam" -Type "Inconsistent" -VerifyInheritance
Retrieves permission consistency information for the GPO with GUID "12345678-1234-1234-1234-1234567890AB" in the forest "Fabrikam" for all domains with inconsistent permissions and verifies inheritance.
```
{{ Add example description here }}
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Type, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: Type, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name to retrieve GPO information from.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: Type, GPOName, GPOGUID
Aliases: ForestName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOGuid
{{ Fill GPOGuid Description }}
Specifies the GUID of the GPO to retrieve.
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOName
{{ Fill GPOName Description }}
Specifies the name of the GPO to retrieve.
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Type, GPOName, GPOGUID
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeGPOObject
{{ Fill IncludeGPOObject Description }}
Indicates whether to include the GPO object in the output.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Type, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
{{ Fill Type Description }}
Specifies the type of consistency to check. Valid values are 'Consistent', 'Inconsistent', or 'All'.
```yaml
Type: String[]
Parameter Sets: Type
Aliases:
Accepted values: Consistent, Inconsistent, All
Possible values: Consistent, Inconsistent, All
Required: False
Position: Named
Default value: None
Position: named
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -VerifyInheritance
{{ Fill VerifyInheritance Description }}
Indicates whether to verify inheritance of permissions.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Type, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -188,11 +194,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+53 -48
View File
@@ -1,20 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrPermissionIssue
## SYNOPSIS
Detects Group Policy missing Authenticated Users permission while not having higher permissions.
## SYNTAX
```
Get-GPOZaurrPermissionIssue [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrPermissionIssue [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
```
## DESCRIPTION
@@ -23,57 +20,28 @@ Detects Group Policy missing Authenticated Users permission while not having hig
## EXAMPLES
### EXAMPLE 1
```
$Issues = Get-GPOZaurrPermissionIssue
```powershell
PS > $Issues = Get-GPOZaurrPermissionIssue
$Issues | Format-Table
```
$Issues | Format-Table
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -81,14 +49,47 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -96,9 +97,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+49 -41
View File
@@ -1,142 +1,148 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrPermissionRoot
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves the root permissions of Group Policy Objects (GPOs) based on specified criteria.
## SYNTAX
```
Get-GPOZaurrPermissionRoot [[-IncludePermissionType] <String[]>] [[-ExcludePermissionType] <String[]>]
[[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [-SkipNames] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrPermissionRoot [[-IncludePermissionType] <string[]>] [[-ExcludePermissionType] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-SkipNames] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
Retrieves the root permissions of GPOs based on the specified criteria, including filtering by permission types, forest, domains, and more.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrPermissionRoot -IncludePermissionType 'GpoRootCreate' -ExcludePermissionType 'GpoRootOwner' -Forest 'ExampleForest' -IncludeDomains 'Domain1', 'Domain2' -ExtendedForestInformation $ForestInfo -SkipNames
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrPermissionRoot -IncludePermissionType 'GpoRootOwner' -ExcludePermissionType 'GpoRootCreate' -Forest 'AnotherForest' -ExcludeDomains 'Domain3' -SkipNames
```
{{ Add example description here }}
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies domains to exclude from the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludePermissionType
{{ Fill ExcludePermissionType Description }}
Specifies the root permission types to exclude from the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: GpoRootCreate, GpoRootOwner
Possible values: GpoRootCreate, GpoRootOwner
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Provides additional forest information to speed up processing.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the target forest. By default, the current forest is used.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies domains to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludePermissionType
{{ Fill IncludePermissionType Description }}
Specifies the root permission types to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: GpoRootCreate, GpoRootOwner
Possible values: GpoRootCreate, GpoRootOwner
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipNames
{{ Fill SkipNames Description }}
Skips processing names during the operation.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -144,11 +150,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+57 -50
View File
@@ -1,175 +1,180 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrPermissionSummary
## SYNOPSIS
{{ Fill in the Synopsis }}
Retrieves a summary of Group Policy Object (GPO) permissions based on specified criteria.
## SYNTAX
```
Get-GPOZaurrPermissionSummary [[-Type] <String[]>] [[-PermitType] <String>]
[[-IncludePermissionType] <String[]>] [[-ExcludePermissionType] <String[]>] [[-Forest] <String>]
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
[[-Separator] <String>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrPermissionSummary [[-Type] <string[]>] [[-PermitType] <string>] [[-IncludePermissionType] <string[]>] [[-ExcludePermissionType] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Separator] <string>] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
Retrieves a summary of GPO permissions based on the specified criteria, including filtering by permission types, permit types, and more.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Get-GPOZaurrPermissionSummary -Type 'All' -PermitType 'Allow' -IncludePermissionType 'GpoApply', 'GpoEdit' -ExcludePermissionType 'GpoOwner' -Forest 'ExampleForest' -IncludeDomains 'Domain1', 'Domain2' -ExtendedForestInformation $ForestInfo -Separator '|'
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrPermissionSummary -Type 'Administrative' -PermitType 'All' -IncludePermissionType 'GpoRead' -ExcludePermissionType 'GpoRootOwner' -Forest 'AnotherForest' -ExcludeDomains 'Domain3' -Separator ','
```
{{ Add example description here }}
## PARAMETERS
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies domains to exclude from the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludePermissionType
{{ Fill ExcludePermissionType Description }}
Specifies the permission types to exclude from the summary.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: GpoApply, GpoEdit, GpoCustom, GpoEditDeleteModifySecurity, GpoRead, GpoOwner, GpoRootCreate, GpoRootOwner
Possible values: GpoApply, GpoEdit, GpoCustom, GpoEditDeleteModifySecurity, GpoRead, GpoOwner, GpoRootCreate, GpoRootOwner
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Provides additional forest information to speed up processing.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the target forest. By default, the current forest is used.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies domains to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludePermissionType
{{ Fill IncludePermissionType Description }}
Specifies the permission types to include in the summary.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: GpoApply, GpoEdit, GpoCustom, GpoEditDeleteModifySecurity, GpoRead, GpoOwner, GpoRootCreate, GpoRootOwner
Possible values: GpoApply, GpoEdit, GpoCustom, GpoEditDeleteModifySecurity, GpoRead, GpoOwner, GpoRootCreate, GpoRootOwner
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -PermitType
{{ Fill PermitType Description }}
Specifies the type of permission to permit. Options include 'Allow', 'Deny', and 'All'.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: Allow, Deny, All
Possible values: Allow, Deny, All
Required: False
Position: 1
Default value: None
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Separator
{{ Fill Separator Description }}
Specifies the separator to use in the output.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 8
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
{{ Fill Type Description }}
Specifies the type of permissions to include. Options include 'AuthenticatedUsers', 'DomainComputers', 'Unknown', 'WellKnownAdministrative', 'NotWellKnown', 'NotWellKnownAdministrative', 'NotAdministrative', 'Administrative', and 'All'.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: AuthenticatedUsers, DomainComputers, Unknown, WellKnownAdministrative, NotWellKnown, NotWellKnownAdministrative, NotAdministrative, Administrative, All
Possible values: AuthenticatedUsers, DomainComputers, Unknown, WellKnownAdministrative, NotWellKnown, NotWellKnownAdministrative, NotAdministrative, Administrative, All
Required: False
Position: 0
Default value: None
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -177,11 +182,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+214
View File
@@ -0,0 +1,214 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrRedirect
## SYNOPSIS
Command to detect if GPOs have correct path in SYSVOL, or someone changed it manually.
## SYNTAX
### Default (Default)
```powershell
Get-GPOZaurrRedirect [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
### GPOName
```powershell
Get-GPOZaurrRedirect [-GPOName <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
### GPOGUID
```powershell
Get-GPOZaurrRedirect [-GPOGuid <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
## DESCRIPTION
Command to detect if GPOs have correct path in SYSVOL, or someone changed it manually.
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Get-GPOZaurrRedirect | Format-Table
```
## PARAMETERS
### -DateFrom
Provide a date from which to start the search, by default the last X days are used
```yaml
Type: DateTime
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -DateProperty
Choose a date property. It can be WhenCreated or WhenChanged or both. By default whenCreated is used for comparison purposes
```yaml
Type: String[]
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values: WhenCreated, WhenChanged
Required: False
Position: named
Default value: WhenCreated
Accept pipeline input: False
Accept wildcard characters: True
```
### -DateRange
Provide a date range to search for, by default the last X days are used
```yaml
Type: String
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values: PastHour, CurrentHour, PastDay, CurrentDay, PastMonth, CurrentMonth, PastQuarter, CurrentQuarter, Last14Days, Last21Days, Last30Days, Last7Days, Last3Days, Last1Days
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -DateTo
Provide a date to which to end the search, by default the last X days are used
```yaml
Type: DateTime
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
```yaml
Type: IDictionary
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: Default, GPOName, GPOGUID
Aliases: ForestName
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOGuid
Provide GPO GUID to search for. By default command returns all GPOs
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOName
Provide GPO name to search for. By default command returns all GPOs
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: Default, GPOName, GPOGUID
Aliases: Domain, Domains
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### 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).
## INPUTS
- `None`
## OUTPUTS
- `None`
## RELATED LINKS
- None
+100 -97
View File
@@ -1,22 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrSysvolDFSR
## SYNOPSIS
Gets DFSR information from the SYSVOL DFSR
## SYNTAX
```
Get-GPOZaurrSysvolDFSR [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-ExcludeDomainControllers] <String[]>] [[-IncludeDomains] <String[]>]
[[-IncludeDomainControllers] <String[]>] [-SkipRODC] [[-ExtendedForestInformation] <IDictionary>]
[[-SearchDFSR] <String>] [<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrSysvolDFSR [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-ExcludeDomainControllers] <string[]>] [[-IncludeDomains] <string[]>] [[-IncludeDomainControllers] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-SearchDFSR] <string>] [-SkipRODC] [<CommonParameters>]
```
## DESCRIPTION
@@ -25,27 +20,28 @@ Gets DFSR information from the SYSVOL DFSR
## EXAMPLES
### EXAMPLE 1
```
$DFSR = Get-GPOZaurrSysvolDFSR
```powershell
PS > $DFSR = Get-GPOZaurrSysvolDFSR
$DFSR | Format-Table *
```
$DFSR | Format-Table *
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
### -ExcludeDomainControllers
Exclude specific domain controllers, by default there are no exclusions, as long as VerifyDomainControllers switch is enabled. Otherwise this parameter is ignored.
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
@@ -53,77 +49,15 @@ Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomainControllers
Exclude specific domain controllers, by default there are no exclusions, as long as VerifyDomainControllers switch is enabled.
Otherwise this parameter is ignored.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomainControllers
Include only specific domain controllers, by default all domain controllers are included, as long as VerifyDomainControllers switch is enabled.
Otherwise this parameter is ignored.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: DomainControllers
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipRODC
Skip Read-Only Domain Controllers.
By default all domain controllers are included.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -131,30 +65,95 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 6
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SearchDFSR
Define DFSR Share.
By default it uses SYSVOL Share
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 7
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomainControllers
Include only specific domain controllers, by default all domain controllers are included, as long as VerifyDomainControllers switch is enabled. Otherwise this parameter is ignored.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: DomainControllers
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -SearchDFSR
Define DFSR Share. By default it uses SYSVOL Share
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 6
Default value: SYSVOL Share
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipRODC
Skip Read-Only Domain Controllers. By default all domain controllers are included.
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -162,9 +161,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+91 -86
View File
@@ -1,28 +1,22 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrUpdates
## SYNOPSIS
Gets the list of GPOs created or updated in the last X number of days.
## SYNTAX
### DateRange (Default)
```
Get-GPOZaurrUpdates [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
-DateRange <String> [-DateProperty <String[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```powershell
Get-GPOZaurrUpdates -DateRange <string> [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
### Dates
```
Get-GPOZaurrUpdates [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
-DateFrom <DateTime> -DateTo <DateTime> [-DateProperty <String[]>] [-ExtendedForestInformation <IDictionary>]
[<CommonParameters>]
```powershell
Get-GPOZaurrUpdates -DateFrom <datetime> -DateTo <datetime> [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
```
## DESCRIPTION
@@ -31,63 +25,19 @@ Gets the list of GPOs created or updated in the last X number of days.
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Get-GPOZaurrUpdates -DateRange Last14Days -DateProperty WhenCreated, WhenChanged -Verbose -IncludeDomains 'ad.evotec.pl' | Format-List
```
Get-GPOZaurrUpdates -DateRange Last14Days -DateProperty WhenCreated, WhenChanged -Verbose -IncludeDomains 'ad.evotec.pl' | Format-List
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrUpdates -DateRange Last14Days -DateProperty WhenCreated -Verbose | Format-Table
```
Get-GPOZaurrUpdates -DateRange Last14Days -DateProperty WhenCreated -Verbose | Format-Table
```
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
ą
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -DateFrom
Provide a date from which to start the search, by default the last X days are used
@@ -95,27 +45,29 @@ Provide a date from which to start the search, by default the last X days are us
Type: DateTime
Parameter Sets: Dates
Aliases:
Possible values:
Required: True
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DateTo
Provide a date to which to end the search, by default the last X days are used
### -DateProperty
Choose a date property. It can be WhenCreated or WhenChanged or both. By default whenCreated is used for comparison purposes
```yaml
Type: DateTime
Parameter Sets: Dates
Type: String[]
Parameter Sets: DateRange, Dates
Aliases:
Possible values: WhenCreated, WhenChanged
Required: True
Position: Named
Default value: None
Required: False
Position: named
Default value: WhenCreated
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DateRange
@@ -125,29 +77,45 @@ Provide a date range to search for, by default the last X days are used
Type: String
Parameter Sets: DateRange
Aliases:
Possible values: PastHour, CurrentHour, PastDay, CurrentDay, PastMonth, CurrentMonth, PastQuarter, CurrentQuarter, Last14Days, Last21Days, Last30Days, Last7Days, Last3Days, Last1Days
Required: True
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DateProperty
Choose a date property.
It can be WhenCreated or WhenChanged or both.
By default whenCreated is used for comparison purposes
### -DateTo
Provide a date to which to end the search, by default the last X days are used
```yaml
Type: DateTime
Parameter Sets: Dates
Aliases:
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: DateRange, Dates
Aliases:
Possible values:
Required: False
Position: Named
Default value: WhenCreated
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -155,14 +123,47 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: DateRange, Dates
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: DateRange, Dates
Aliases: ForestName
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: DateRange, Dates
Aliases: Domain, Domains
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -170,9 +171,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+89 -80
View File
@@ -1,21 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Get-GPOZaurrWMI
## SYNOPSIS
Get Group Policy WMI filter
## SYNTAX
```
Get-GPOZaurrWMI [[-Guid] <Guid[]>] [[-Name] <String[]>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-AsHashtable]
[<CommonParameters>]
### __AllParameterSets
```powershell
Get-GPOZaurrWMI [[-Guid] <guid[]>] [[-Name] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-AsHashtable] [<CommonParameters>]
```
## DESCRIPTION
@@ -24,60 +20,33 @@ Get Group Policy WMI filter
## EXAMPLES
### EXAMPLE 1
```
Get-GPOZaurrWMI -AsHashtable
```powershell
PS > Get-GPOZaurrWMI -AsHashtable
```
### EXAMPLE 2
```powershell
PS > Get-GPOZaurrWMI | Format-Table
```
Get-GPOZaurrWMI | Format-Table
```
## PARAMETERS
### -Guid
Search for specific filter using GUID
### -AsHashtable
Return output as hashtable
```yaml
Type: Guid[]
Parameter Sets: (All)
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -Name
Search for specific filter using Name
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
@@ -85,29 +54,15 @@ Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -115,29 +70,79 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 6
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -AsHashtable
Return output as hashtable
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: Named
Default value: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Guid
Search for specific filter using GUID
```yaml
Type: Guid[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -Name
Search for specific filter using Name
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -145,9 +150,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+178 -135
View File
@@ -1,21 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Invoke-GPOZaurr
## SYNOPSIS
Single cmdlet that provides 360 degree overview of Group Policies in Active Directory Forest.
## SYNTAX
```
Invoke-GPOZaurr [[-Exclusions] <Object>] [-FilePath <String>] [[-Type] <String[]>] [-PassThru] [-HideHTML]
[-HideSteps] [-ShowError] [-ShowWarning] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-Online] [-SplitReports] [<CommonParameters>]
### __AllParameterSets
```powershell
Invoke-GPOZaurr [[-Type] <string[]>] [[-Exclusions] <Object>] [-FilePath <string>] [-PassThru] [-HideHTML] [-HideSteps] [-ShowError] [-ShowWarning] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-Online] [-SplitReports] [-GPOName <string[]>] [-GPOGUID <string[]>] [<CommonParameters>]
```
## DESCRIPTION
@@ -24,20 +20,37 @@ Single cmdlet that provides 360 degree overview of Group Policies in Active Dire
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Invoke-GPOZaurr
```
Invoke-GPOZaurr
```
### EXAMPLE 2
```
Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html -Exclusions @(
```
```powershell
PS > Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html -Exclusions @(
'*OU=Production,DC=ad,DC=evotec,DC=pl'
)
```
## PARAMETERS
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -Exclusions
Allows to mark as excluded some Group Policies or Organizational Units depending on type.
Can be a scriptblock or array depending on supported way by underlying report.
@@ -47,14 +60,15 @@ Exclusions should be used only if there is single report being asked for.
```yaml
Type: Object
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ExcludeGroupPolicies, ExclusionsCode
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -FilePath
@@ -62,106 +76,15 @@ Path to the file where the report will be saved.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
Type of report to be generated from a list of available reports.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PassThru
Returns created objects after the report is done
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -HideHTML
Do not auto open HTML report in default browser
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -HideSteps
Do not show steps in report
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -ShowError
Show errors in HTML report.
Useful in case the report is being run as Scheduled Task
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -ShowWarning
Show warnings in HTML report.
Useful in case the report is being run as Scheduled Task
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
@@ -169,29 +92,79 @@ Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
### -GPOGUID
{{ Fill GPOGUID Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Parameter Sets: __AllParameterSets
Aliases: GUID
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOName
{{ Fill GPOName Description }}
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Name
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -HideHTML
Do not auto open HTML report in default browser
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -HideSteps
Do not show steps in report
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
@@ -199,14 +172,15 @@ Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Online
@@ -214,30 +188,95 @@ Forces report to use online resources in HTML (using CDN most of the time), by d
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SplitReports
Split report into multiple files, one for each report.
This can be useful for large domains with huge reports.
### -PassThru
Returns created objects after the report is done
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ShowError
Show errors in HTML report. Useful in case the report is being run as Scheduled Task
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -ShowWarning
Show warnings in HTML report. Useful in case the report is being run as Scheduled Task
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -SplitReports
Split report into multiple files, one for each report. This can be useful for large domains with huge reports.
```yaml
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -Type
Type of report to be generated from a list of available reports.
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -245,9 +284,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+200 -199
View File
@@ -1,72 +1,66 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Invoke-GPOZaurrContent
## SYNOPSIS
Invokes GPOZaurrContent function to retrieve Group Policy Objects information.
## SYNTAX
### Default (Default)
```
Invoke-GPOZaurrContent [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-Type <String[]>] [-Splitter <String>] [-FullObjects]
[-OutputType <String[]>] [-OutputPath <String>] [-Open] [-Online] [-CategoriesOnly] [-SingleObject]
[-SkipNormalize] [-SkipCleanup] [-Extended] [-GPOName <String[]>] [-GPOGUID <String[]>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```powershell
Invoke-GPOZaurrContent [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-Type <string[]>] [-Splitter <string>] [-FullObjects] [-OutputType <string[]>] [-OutputPath <string>] [-Open] [-Online] [-CategoriesOnly] [-SingleObject] [-SkipNormalize] [-SkipCleanup] [-Extended] [-GPOName <string[]>] [-GPOGUID <string[]>] [<CommonParameters>]
```
### Local
```
Invoke-GPOZaurrContent [-GPOPath <String>] [-Type <String[]>] [-Splitter <String>] [-FullObjects]
[-OutputType <String[]>] [-OutputPath <String>] [-Open] [-Online] [-CategoriesOnly] [-SingleObject]
[-SkipNormalize] [-SkipCleanup] [-Extended] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```powershell
Invoke-GPOZaurrContent [-GPOPath <string>] [-Type <string[]>] [-Splitter <string>] [-FullObjects] [-OutputType <string[]>] [-OutputPath <string>] [-Open] [-Online] [-CategoriesOnly] [-SingleObject] [-SkipNormalize] [-SkipCleanup] [-Extended] [<CommonParameters>]
```
## DESCRIPTION
This function retrieves Group Policy Objects information based on the specified parameters.
It can search for GPOs in a forest, exclude specific domains, include specific domains, and provide extended forest information.
This function retrieves Group Policy Objects information based on the specified parameters. It can search for GPOs in a forest, exclude specific domains, include specific domains, and provide extended forest information.
## EXAMPLES
### EXAMPLE 1
```
Invoke-GPOZaurrContent -Forest "Contoso" -IncludeDomains "Domain1", "Domain2" -Type "Security" -OutputType "HTML" -OutputPath "C:\Reports\GPOReport.html"
```powershell
PS > Invoke-GPOZaurrContent -Forest "Contoso" -IncludeDomains "Domain1", "Domain2" -Type "Security" -OutputType "HTML" -OutputPath "C:\Reports\GPOReport.html"
Retrieves security-related Group Policy Objects information for the specified domains and saves the output as an HTML file.
```
### EXAMPLE 2
```
Invoke-GPOZaurrContent -GPOPath "CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=Contoso,DC=com" -Type "All" -OutputType "Object"
```powershell
PS > Invoke-GPOZaurrContent -GPOPath "CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=Contoso,DC=com" -Type "All" -OutputType "Object"
Retrieves all information for a specific Group Policy Object and outputs the result as an object.
```
### EXAMPLE 3
```
Invoke-GPOZaurrContent -GPOName "Group Policy Test" -SingleObject | ConvertTo-Json -Depth 3
```powershell
PS > Invoke-GPOZaurrContent -GPOName "Group Policy Test" -SingleObject | ConvertTo-Json -Depth 3
Quickly view GPO settings by name in JSON format for easy inspection.
```
## PARAMETERS
### -Forest
Specifies the forest name to search for Group Policy Objects.
### -CategoriesOnly
Indicates whether to retrieve only categories.
```yaml
Type: String
Parameter Sets: Default
Aliases: ForestName
Type: SwitchParameter
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
@@ -76,27 +70,29 @@ Specifies an array of domains to exclude from the search.
Type: String[]
Parameter Sets: Default
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
Specifies an array of domains to include in the search.
### -Extended
{{ Fill Extended Description }}
```yaml
Type: String[]
Parameter Sets: Default
Aliases: Domain, Domains
Type: SwitchParameter
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -106,12 +102,77 @@ Specifies additional information about the forest.
Type: IDictionary
Parameter Sets: Default
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Specifies the forest name to search for Group Policy Objects.
```yaml
Type: String
Parameter Sets: Default
Aliases: ForestName
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -FullObjects
Indicates whether to retrieve full objects.
```yaml
Type: SwitchParameter
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOGUID
{{ Fill GPOGUID Description }}
```yaml
Type: String[]
Parameter Sets: Default
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOName
{{ Fill GPOName Description }}
```yaml
Type: String[]
Parameter Sets: Default
Aliases: Name
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOPath
@@ -121,102 +182,29 @@ Specifies the path to a specific Group Policy Object.
Type: String
Parameter Sets: Local
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
Specifies the type of information to retrieve.
### -IncludeDomains
Specifies an array of domains to include in the search.
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Parameter Sets: Default
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Splitter
Specifies the delimiter to use for splitting information.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: [System.Environment]::NewLine
Accept pipeline input: False
Accept wildcard characters: False
```
### -FullObjects
Indicates whether to retrieve full objects.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -OutputType
Specifies the type of output (HTML or Object).
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Object
Accept pipeline input: False
Accept wildcard characters: False
```
### -OutputPath
Specifies the path to save the output.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Open
Indicates whether to open the output after retrieval.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Online
@@ -224,44 +212,95 @@ Indicates whether to retrieve information online.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -CategoriesOnly
Indicates whether to retrieve only categories.
### -Open
Indicates whether to open the output after retrieval.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -OutputPath
Specifies the path to save the output.
```yaml
Type: String
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -OutputType
Specifies the type of output (HTML or Object).
```yaml
Type: String[]
Parameter Sets: Default, Local
Aliases:
Possible values: HTML, Object
Required: False
Position: named
Default value: Object
Accept pipeline input: False
Accept wildcard characters: True
```
### -SingleObject
When enabled, returns a single consolidated object per GPO rather than multiple objects for each setting. For example, with drive mappings, instead of returning separate objects for each mapped drive in a GPO, it will return one object containing all drive mappings for that GPO. This affects how the data is structured in the output reports.
Indicates whether to retrieve a single object.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipCleanup
{{ Fill SkipCleanup Description }}
```yaml
Type: SwitchParameter
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -SkipNormalize
@@ -269,90 +308,47 @@ Indicates whether to skip normalization.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipCleanup
Indicates whether to skip cleanup of the output hashtable. When enabled, empty values in the output hashtable are preserved rather than being removed via Remove-EmptyValue. This parameter affects the final processing step before returning GPO analysis results.
### -Splitter
Specifies the delimiter to use for splitting information.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Type: String
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: Named
Default value: False
Position: named
Default value: [System.Environment]::NewLine
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Extended
When enabled, returns the complete output hashtable containing all GPO analysis data, including both the processed reports and raw categories. By default, only the processed reports are returned. This parameter is useful for debugging or when you need access to the underlying data structure.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOName
Specifies the name of the Group Policy Object to retrieve. The alias of this parameter is `Name`.
### -Type
Specifies the type of information to retrieve.
```yaml
Type: String[]
Parameter Sets: Default
Aliases: Name
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGUID
Specifies one or more Group Policy Object GUIDs to retrieve. This parameter allows you to target specific GPOs by their unique identifier rather than display name.
```yaml
Type: String[]
Parameter Sets: Default
Parameter Sets: Default, Local
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
Specifies the action to take when progress is reported.
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -360,8 +356,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
- `None`
## RELATED LINKS
- None
+10 -429
View File
@@ -1,70 +1,16 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Invoke-GPOZaurrPermission
## SYNOPSIS
{{ Fill in the Synopsis }}
## SYNTAX
### Level
```
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] -Level <Int32> -Limit <Int32> [-Type <String[]>]
[-ApprovedGroups <Array>] [-Trustee <Array>] [-TrusteePermissionType <GPPermissionType>]
[-TrusteeType <String>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain]
[-WhatIf] [-Confirm] [<CommonParameters>]
```
### Linked
```
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] -Linked <String> [-Type <String[]>]
[-ApprovedGroups <Array>] [-Trustee <Array>] [-TrusteePermissionType <GPPermissionType>]
[-TrusteeType <String>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain]
[-SkipDuplicates] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### ADObject
```
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] -ADObject <ADObject[]> [-Type <String[]>]
[-ApprovedGroups <Array>] [-Trustee <Array>] [-TrusteePermissionType <GPPermissionType>]
[-TrusteeType <String>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain]
[-SkipDuplicates] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### Filter
```
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] [-Filter <String>] [-SearchBase <String>]
[-SearchScope <ADSearchScope>] [-Type <String[]>] [-ApprovedGroups <Array>] [-Trustee <Array>]
[-TrusteePermissionType <GPPermissionType>] [-TrusteeType <String>] [-GPOCache <IDictionary>]
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain] [-SkipDuplicates] [-WhatIf]
[-Confirm] [<CommonParameters>]
```
### GPOName
```
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] [-GPOName <String>] [-Type <String[]>]
[-ApprovedGroups <Array>] [-Trustee <Array>] [-TrusteePermissionType <GPPermissionType>]
[-TrusteeType <String>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain]
[-SkipDuplicates] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### GPOGUID
```
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] [-GPOGuid <String>] [-Type <String[]>]
[-ApprovedGroups <Array>] [-Trustee <Array>] [-TrusteePermissionType <GPPermissionType>]
[-TrusteeType <String>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain]
[-SkipDuplicates] [-WhatIf] [-Confirm] [<CommonParameters>]
```powershell
Invoke-GPOZaurrPermission
```
## DESCRIPTION
@@ -72,391 +18,26 @@ Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] [-GPOGuid <String>]
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
Invoke-GPOZaurrPermission
```
{{ Add example description here }}
## PARAMETERS
### -ADObject
{{ Fill ADObject Description }}
```yaml
Type: ADObject[]
Parameter Sets: ADObject
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
```
### -ApprovedGroups
{{ Fill ApprovedGroups Description }}
```yaml
Type: Array
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
{{ Fill Filter Description }}
```yaml
Type: String
Parameter Sets: Filter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
{{ Fill Forest Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOCache
{{ Fill GPOCache Description }}
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGuid
{{ Fill GPOGuid Description }}
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOName
{{ Fill GPOName Description }}
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Level
{{ Fill Level Description }}
```yaml
Type: Int32
Parameter Sets: Level
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Limit
{{ Fill Limit Description }}
```yaml
Type: Int32
Parameter Sets: Level
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -LimitAdministrativeGroupsToDomain
{{ Fill LimitAdministrativeGroupsToDomain Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Linked
{{ Fill Linked Description }}
```yaml
Type: String
Parameter Sets: Linked
Aliases:
Accepted values: Root, DomainControllers, Site, OrganizationalUnit
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PermissionRules
{{ Fill PermissionRules Description }}
```yaml
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SearchBase
{{ Fill SearchBase Description }}
```yaml
Type: String
Parameter Sets: Filter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SearchScope
{{ Fill SearchScope Description }}
```yaml
Type: ADSearchScope
Parameter Sets: Filter
Aliases:
Accepted values: Base, OneLevel, Subtree
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipDuplicates
{{ Fill SkipDuplicates Description }}
```yaml
Type: SwitchParameter
Parameter Sets: Linked, ADObject, Filter, GPOName, GPOGUID
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Trustee
{{ Fill Trustee Description }}
```yaml
Type: Array
Parameter Sets: (All)
Aliases: Principal
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -TrusteePermissionType
{{ Fill TrusteePermissionType Description }}
```yaml
Type: GPPermissionType
Parameter Sets: (All)
Aliases:
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -TrusteeType
{{ Fill TrusteeType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: PrincipalType
Accepted values: DistinguishedName, Name, Sid
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
{{ Fill Type Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: Unknown, NotWellKnown, NotWellKnownAdministrative, NotAdministrative, All
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
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).
## INPUTS
### Microsoft.ActiveDirectory.Management.ADObject[]
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+55 -43
View File
@@ -1,140 +1,150 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Invoke-GPOZaurrSupport
## SYNOPSIS
{{ Fill in the Synopsis }}
Invokes GPOZaurrSupport function to retrieve Group Policy information.
## SYNTAX
```
Invoke-GPOZaurrSupport [[-Type] <String>] [[-ComputerName] <String>] [[-UserName] <String>] [[-Path] <String>]
[[-Splitter] <String>] [-PreventShow] [-Online] [<CommonParameters>]
### __AllParameterSets
```powershell
Invoke-GPOZaurrSupport [[-Type] <string>] [[-ComputerName] <string>] [[-UserName] <string>] [[-Path] <string>] [[-Splitter] <string>] [-PreventShow] [-Online] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function retrieves Group Policy information using either HTML, XML, or Object format. It can be run locally or on a remote computer.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Invoke-GPOZaurrSupport -Type HTML -ComputerName "RemoteComputer" -UserName "Admin" -Path (Join-Path $env:TEMP 'GPOReport.html')
Retrieves Group Policy information in HTML format from a remote computer and saves it to a specified path.
```
### EXAMPLE 2
```powershell
PS > Invoke-GPOZaurrSupport -Type XML -Path (Join-Path $env:TEMP 'GPOReport.xml') -Online
Retrieves the latest Group Policy information in XML format and saves it to a specified path.
```
{{ Add example description here }}
## PARAMETERS
### -ComputerName
{{ Fill ComputerName Description }}
Specifies the name of the remote computer to retrieve Group Policy information from.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Server
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Online
{{ Fill Online Description }}
Runs the function online to retrieve the latest Group Policy information.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Path
{{ Fill Path Description }}
Specifies the path to save the output file. If not provided, a temporary file will be created.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -PreventShow
{{ Fill PreventShow Description }}
Prevents displaying the output in the console.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Splitter
{{ Fill Splitter Description }}
Specifies the delimiter for splitting output data. Default is a new line.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Default value: None
Default value: [System.Environment]::NewLine
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
{{ Fill Type Description }}
Specifies the type of output format. Valid values are 'NativeHTML', 'HTML', 'XML', or 'Object'. Default is 'HTML'.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: NativeHTML, HTML, XML, Object
Possible values: NativeHTML, HTML, XML, Object
Required: False
Position: 0
Default value: None
Default value: HTML
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -UserName
{{ Fill UserName Description }}
Specifies the username to run the function as on the remote computer.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: User
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -142,11 +152,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+66 -82
View File
@@ -1,216 +1,198 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# New-GPOZaurrWMI
## SYNOPSIS
{{ Fill in the Synopsis }}
Creates a new WMI filter based on a WMI filter query.
## SYNTAX
```
New-GPOZaurrWMI [-Name] <String> [[-Description] <String>] [[-Namespace] <String>] [-Query] <String>
[-SkipQueryCheck] [-Force] [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
New-GPOZaurrWMI [-Name] <string> [[-Description] <string>] [[-Namespace] <string>] [-Query] <string> [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-SkipQueryCheck] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function creates a new WMI filter in Active Directory based on a specified WMI filter query.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > New-GPOZaurrWMI -Name "TestWMIFilter1" -Query "SELECT * FROM Win32_OperatingSystem" -Force
Creates a new WMI filter named "TestWMIFilter1" targeting all Windows operating systems.
```
### EXAMPLE 2
```powershell
PS > New-GPOZaurrWMI -Name "TestWMIFilter2" -Query "SELECT * FROM Win32_Processor" -Forest "Contoso" -IncludeDomains "FinanceDomain"
Creates a new WMI filter named "TestWMIFilter2" targeting all processors in the "FinanceDomain" within the "Contoso" forest.
```
{{ Add example description here }}
## PARAMETERS
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Description
{{ Fill Description Description }}
The description for the new WMI filter. Default is an empty string.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
An array of domains to exclude from WMI application.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Additional information about the forest for WMI customization.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Force
{{ Fill Force Description }}
Switch to force the creation of the WMI entry without confirmation.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
The forest to target for WMI creation.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
An array of domains to include for WMI application.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Name
{{ Fill Name Description }}
The name of the new WMI filter to be created.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Namespace
{{ Fill Namespace Description }}
The WMI namespace to target. Default is 'root\CIMv2'.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Default value: None
Default value: root\CIMv2
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Query
{{ Fill Query Description }}
The WMI filter query to be applied to the WMI entry.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipQueryCheck
{{ Fill SkipQueryCheck Description }}
Switch to skip the query check before creating the WMI entry.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -218,11 +200,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+103 -130
View File
@@ -1,36 +1,27 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Optimize-GPOZaurr
## SYNOPSIS
Enables or disables user/computer section of group policy based on it's content.
## SYNTAX
### GPOName (Default)
```
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] -GPOName <String> [-LimitProcessing <Int32>]
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
```powershell
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <scriptblock>] -GPOName <string> [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### GPOGUID
```
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] -GPOGuid <String> [-LimitProcessing <Int32>]
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
```powershell
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <scriptblock>] -GPOGuid <string> [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### All
```
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] [-All] [-LimitProcessing <Int32>] [-Forest <String>]
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```powershell
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <scriptblock>] -All [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
@@ -39,49 +30,100 @@ Enables or disables user/computer section of group policy based on it's content.
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2
```
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2
```
### EXAMPLE 2
```
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
```
```powershell
PS > Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
}
```
## PARAMETERS
### -All
{{ Fill All Description }}
```yaml
Type: SwitchParameter
Parameter Sets: All
Aliases:
Possible values:
Required: True
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: GPOName, GPOGUID, All
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -ExcludeGroupPolicies
Provide a list of group policies to skip using Skip-GroupPolicy cmdlet
```yaml
Type: ScriptBlock
Parameter Sets: (All)
Parameter Sets: GPOName, GPOGUID, All
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOName
{{ Fill GPOName Description }}
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
```yaml
Type: IDictionary
Parameter Sets: GPOName, GPOGUID, All
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: GPOName
Aliases: Name, DisplayName
Parameter Sets: GPOName, GPOGUID, All
Aliases: ForestName
Possible values:
Required: True
Position: Named
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOGuid
@@ -91,73 +133,29 @@ Accept wildcard characters: False
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Possible values:
Required: True
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -All
{{ Fill All Description }}
```yaml
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -LimitProcessing
Allows to specify maximum number of items that will be fixed in a single run.
It doesn't affect amount of GPOs processed
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Target different Forest, by default current forest is used
### -GPOName
{{ Fill GPOName Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Parameter Sets: GPOName
Aliases: Name, DisplayName
Possible values:
Required: False
Position: Named
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
@@ -165,60 +163,31 @@ Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: GPOName, GPOGUID, All
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
### -LimitProcessing
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
```yaml
Type: IDictionary
Parameter Sets: (All)
Type: Int32
Parameter Sets: GPOName, GPOGUID, All
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -226,9 +195,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+52 -50
View File
@@ -1,46 +1,44 @@
---
Module Name: GPOZaurr
Module Guid: f7d4c9e4-0298-4f51-ad77-e8e3febebbde
Download Help Link: {{ Update Download Link }}
Help Version: {{ Please enter version of help manually (X.X.X.X) format }}
Download Help Link: https://github.com/EvotecIT/GPOZaurr
Help Version: 1.1.10
Locale: en-US
---
# GPOZaurr Module
## Description
{{ Fill in the Description }}
Group Policy Eater is a PowerShell module that aims to gather information about Group Policies but also allows fixing issues that you may find in them.
## 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)
Provides Backup functionality to Group Policies
### [Clear-GPOZaurrSysvolDFSR](Clear-GPOZaurrSysvolDFSR.md)
{{ Fill in the Synopsis }}
Clears the ConflictAndDeleted folder in DFSR for specified GPOs.
### [ConvertFrom-CSExtension](ConvertFrom-CSExtension.md)
{{ Fill in the Synopsis }}
Converts Client-side Extension (CSE) GUIDs to their corresponding names.
### [Export-GPOZaurrContent](Export-GPOZaurrContent.md)
Saves GPOs to XML or HTML files.
Exports Group Policy Objects (GPOs) to XML or HTML files.
### [Find-CSExtension](Find-CSExtension.md)
{{ Fill in the Synopsis }}
This function retrieves Group Policy Client Side Extensions (CSEs) from a specified Windows computer.
### [Get-GPOZaurr](Get-GPOZaurr.md)
Gets information about all Group Policies.
Similar to what Get-GPO provides by default.
Gets information about all Group Policies. Similar to what Get-GPO provides by default.
### [Get-GPOZaurrAD](Get-GPOZaurrAD.md)
{{ Fill in the Synopsis }}
Retrieves Group Policy Objects (GPOs) information from Active Directory.
### [Get-GPOZaurrBackupInformation](Get-GPOZaurrBackupInformation.md)
{{ Fill in the Synopsis }}
Retrieves backup information from GPOZaurr manifest files.
### [Get-GPOZaurrBroken](Get-GPOZaurrBroken.md)
Detects broken or otherwise damaged Group Policies
@@ -49,37 +47,40 @@ Detects broken or otherwise damaged Group Policies
Finds any GPO link that doesn't have a matching GPO (already removed GPO).
### [Get-GPOZaurrDictionary](Get-GPOZaurrDictionary.md)
{{ Fill in the Synopsis }}
Retrieves a dictionary of Group Policy Objects (GPOs) with their associated types and paths.
### [Get-GPOZaurrDuplicateObject](Get-GPOZaurrDuplicateObject.md)
{{ Fill in the Synopsis }}
Retrieves duplicate Group Policy Objects (GPOs) within a specified forest.
### [Get-GPOZaurrFiles](Get-GPOZaurrFiles.md)
{{ Fill in the Synopsis }}
Retrieves information about Group Policy Objects (GPOs) stored in SYSVOL and NETLOGON folders.
### [Get-GPOZaurrFilesPolicyDefinition](Get-GPOZaurrFilesPolicyDefinition.md)
{{ Fill in the Synopsis }}
Retrieves policy definitions for Group Policy Objects (GPOs) within specified domains.
### [Get-GPOZaurrFolders](Get-GPOZaurrFolders.md)
{{ Fill in the Synopsis }}
Retrieves information about GPO folders within specified domains.
### [Get-GPOZaurrInheritance](Get-GPOZaurrInheritance.md)
Short description
Retrieves inheritance information for Group Policy Objects (GPOs) within specified Organizational Units (OUs).
### [Get-GPOZaurrLegacyFiles](Get-GPOZaurrLegacyFiles.md)
{{ Fill in the Synopsis }}
Retrieves legacy Group Policy Object (GPO) files from the SYSVOL directory of specified domains within a forest.
### [Get-GPOZaurrLink](Get-GPOZaurrLink.md)
{{ Fill in the Synopsis }}
Retrieves Group Policy Object (GPO) links based on specified criteria.
### [Get-GPOZaurrLinkSummary](Get-GPOZaurrLinkSummary.md)
{{ Fill in the Synopsis }}
Retrieves a summary of GPO links based on specified criteria.
### [Get-GPOZaurrMissingFiles](Get-GPOZaurrMissingFiles.md)
Retrieves information about missing files in Group Policy Objects (GPOs) within a specified forest.
### [Get-GPOZaurrNetLogon](Get-GPOZaurrNetLogon.md)
{{ Fill in the Synopsis }}
Retrieves information about Group Policy Objects (GPO) stored in the Netlogon and SYSVOL directories.
### [Get-GPOZaurrOrganizationalUnit](Get-GPOZaurrOrganizationalUnit.md)
{{ Fill in the Synopsis }}
Retrieves information about Group Policy Objects (GPOs) linked to Organizational Units (OUs) within a specified forest.
### [Get-GPOZaurrOwner](Get-GPOZaurrOwner.md)
Gets owners of GPOs from Active Directory and SYSVOL
@@ -88,22 +89,25 @@ Gets owners of GPOs from Active Directory and SYSVOL
Tries to find CPassword in Group Policies or given path and translate it to readable value
### [Get-GPOZaurrPermission](Get-GPOZaurrPermission.md)
{{ Fill in the Synopsis }}
{{ Fill in the Description }}
### [Get-GPOZaurrPermissionAnalysis](Get-GPOZaurrPermissionAnalysis.md)
{{ Fill in the Synopsis }}
Analyzes permissions for Group Policy Objects (GPOs) and administrative groups.
### [Get-GPOZaurrPermissionConsistency](Get-GPOZaurrPermissionConsistency.md)
{{ Fill in the Synopsis }}
Retrieves information about Group Policy Objects (GPOs) and checks permission consistency across domains.
### [Get-GPOZaurrPermissionIssue](Get-GPOZaurrPermissionIssue.md)
Detects Group Policy missing Authenticated Users permission while not having higher permissions.
### [Get-GPOZaurrPermissionRoot](Get-GPOZaurrPermissionRoot.md)
{{ Fill in the Synopsis }}
Retrieves the root permissions of Group Policy Objects (GPOs) based on specified criteria.
### [Get-GPOZaurrPermissionSummary](Get-GPOZaurrPermissionSummary.md)
{{ Fill in the Synopsis }}
Retrieves a summary of Group Policy Object (GPO) permissions based on specified criteria.
### [Get-GPOZaurrRedirect](Get-GPOZaurrRedirect.md)
Command to detect if GPOs have correct path in SYSVOL, or someone changed it manually.
### [Get-GPOZaurrSysvolDFSR](Get-GPOZaurrSysvolDFSR.md)
Gets DFSR information from the SYSVOL DFSR
@@ -118,46 +122,46 @@ Get Group Policy WMI filter
Single cmdlet that provides 360 degree overview of Group Policies in Active Directory Forest.
### [Invoke-GPOZaurrContent](Invoke-GPOZaurrContent.md)
{{ Fill in the Synopsis }}
Invokes GPOZaurrContent function to retrieve Group Policy Objects information.
### [Invoke-GPOZaurrPermission](Invoke-GPOZaurrPermission.md)
{{ Fill in the Synopsis }}
{{ Fill in the Description }}
### [Invoke-GPOZaurrSupport](Invoke-GPOZaurrSupport.md)
{{ Fill in the Synopsis }}
Invokes GPOZaurrSupport function to retrieve Group Policy information.
### [New-GPOZaurrWMI](New-GPOZaurrWMI.md)
{{ Fill in the Synopsis }}
Creates a new WMI filter based on a WMI filter query.
### [Optimize-GPOZaurr](Optimize-GPOZaurr.md)
Enables or disables user/computer section of group policy based on it's content.
### [Remove-GPOPermission](Remove-GPOPermission.md)
{{ Fill in the Synopsis }}
{{ Fill in the Description }}
### [Remove-GPOZaurr](Remove-GPOZaurr.md)
{{ Fill in the Synopsis }}
Removes Group Policy Objects based on specified criteria.
### [Remove-GPOZaurrBroken](Remove-GPOZaurrBroken.md)
Finds and removes broken Group Policies from SYSVOL or AD or both.
### [Remove-GPOZaurrDuplicateObject](Remove-GPOZaurrDuplicateObject.md)
{{ Fill in the Synopsis }}
Removes duplicate Group Policy Objects (GPOs) identified by the Get-GPOZaurrDuplicateObject function.
### [Remove-GPOZaurrFolders](Remove-GPOZaurrFolders.md)
{{ Fill in the Synopsis }}
Removes specified GPOZaurr folders and backs them up to a specified path.
### [Remove-GPOZaurrLegacyFiles](Remove-GPOZaurrLegacyFiles.md)
{{ Fill in the Synopsis }}
Removes legacy Group Policy Objects (GPO) files from specified domains.
### [Remove-GPOZaurrLinkEmptyOU](Remove-GPOZaurrLinkEmptyOU.md)
{{ Fill in the Synopsis }}
Removes Group Policy Object (GPO) links from empty Organizational Units (OUs) in a specified forest.
### [Remove-GPOZaurrPermission](Remove-GPOZaurrPermission.md)
{{ Fill in the Synopsis }}
{{ Fill in the Description }}
### [Remove-GPOZaurrWMI](Remove-GPOZaurrWMI.md)
{{ Fill in the Synopsis }}
Removes Group Policy WMI filters based on specified criteria.
### [Repair-GPOZaurrBrokenLink](Repair-GPOZaurrBrokenLink.md)
Removes any link to GPO that no longer exists.
@@ -166,28 +170,26 @@ Removes any link to GPO that no longer exists.
Sets new owner to each file in NetLogon share.
### [Repair-GPOZaurrPermission](Repair-GPOZaurrPermission.md)
{{ Fill in the Synopsis }}
Repairs permissions for Group Policy Objects (GPOs) based on specified criteria.
### [Repair-GPOZaurrPermissionConsistency](Repair-GPOZaurrPermissionConsistency.md)
{{ Fill in the Synopsis }}
Repairs permission consistency for Group Policy Objects (GPOs) in a specified domain or forest.
### [Restore-GPOZaurr](Restore-GPOZaurr.md)
{{ Fill in the Synopsis }}
Restores Group Policy Objects (GPOs) from a specified backup folder.
### [Save-GPOZaurrFiles](Save-GPOZaurrFiles.md)
Exports GPO XML data to files and saves it to a given path
### [Set-GPOOwner](Set-GPOOwner.md)
Used within Invoke-GPOZaurrPermission only.
Set new group policy owner.
Used within Invoke-GPOZaurrPermission only. Set new group policy owner.
### [Set-GPOZaurrOwner](Set-GPOZaurrOwner.md)
Sets GPO Owner to Domain Admins or other choosen account
### [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
Used within ScriptBlocks only. Allows to exclude Group Policy from being affected by fixes
+10 -141
View File
@@ -1,22 +1,16 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOPermission
## SYNOPSIS
{{ Fill in the Synopsis }}
## SYNTAX
```
Remove-GPOPermission [[-Type] <String[]>] [[-IncludePermissionType] <GPPermissionType[]>]
[[-ExcludePermissionType] <GPPermissionType[]>] [[-PermitType] <String>] [[-Principal] <String[]>]
[[-PrincipalType] <String>] [[-ExcludePrincipal] <String[]>] [[-ExcludePrincipalType] <String>]
[<CommonParameters>]
```powershell
Remove-GPOPermission
```
## DESCRIPTION
@@ -24,151 +18,26 @@ Remove-GPOPermission [[-Type] <String[]>] [[-IncludePermissionType] <GPPermissio
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
Remove-GPOPermission
```
{{ Add example description here }}
## PARAMETERS
### -ExcludePermissionType
{{ Fill ExcludePermissionType Description }}
```yaml
Type: GPPermissionType[]
Parameter Sets: (All)
Aliases:
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludePrincipal
{{ Fill ExcludePrincipal Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludePrincipalType
{{ Fill ExcludePrincipalType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: DistinguishedName, Name, Sid
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludePermissionType
{{ Fill IncludePermissionType Description }}
```yaml
Type: GPPermissionType[]
Parameter Sets: (All)
Aliases:
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PermitType
{{ Fill PermitType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Allow, Deny, All
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Principal
{{ Fill Principal Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PrincipalType
{{ Fill PrincipalType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: DistinguishedName, Name, Sid
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
{{ Fill Type Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: Unknown, NotWellKnown, NotWellKnownAdministrative, Administrative, NotAdministrative, All
Required: False
Position: 0
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).
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+77 -94
View File
@@ -1,233 +1,214 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOZaurr
## SYNOPSIS
{{ Fill in the Synopsis }}
Removes Group Policy Objects based on specified criteria.
## SYNTAX
```
Remove-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] [-Type] <String[]> [-LimitProcessing <Int32>]
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-GPOPath <String[]>] [-BackupPath <String>] [-BackupDated]
[-RequireDays <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
Remove-GPOZaurr [-Type] <string[]> [[-ExcludeGroupPolicies] <scriptblock>] [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-GPOPath <string[]>] [-BackupPath <string>] [-BackupDated] [-RequireDays <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
The Remove-GPOZaurr function removes Group Policy Objects (GPOs) based on the specified criteria. It allows for filtering by various parameters such as GPO type, forest, domains, and more.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Remove-GPOZaurr -Type 'Empty' -Forest 'Contoso' -IncludeDomains 'Domain1', 'Domain2' -BackupPath 'C:\GPOBackups' -BackupDated -RequireDays 7
Removes all empty GPOs from the 'Contoso' forest for 'Domain1' and 'Domain2', backs them up to 'C:\GPOBackups' with dated folders, and requires removal after 7 days.
```
### EXAMPLE 2
```powershell
PS > Remove-GPOZaurr -Type 'Disabled' -Forest 'Fabrikam' -ExcludeDomains 'Domain3' -LimitProcessing 10
Removes all disabled GPOs from the 'Fabrikam' forest excluding 'Domain3' and processes only the first 10 GPOs.
```
{{ Add example description here }}
## PARAMETERS
### -BackupDated
{{ Fill BackupDated Description }}
Indicates whether the backup should be dated.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -BackupPath
{{ Fill BackupPath Description }}
Specifies the path for backing up GPOs before removal.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies the domains to exclude from GPO removal.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeGroupPolicies
{{ Fill ExcludeGroupPolicies Description }}
Specifies the Group Policies to exclude from removal.
```yaml
Type: ScriptBlock
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest to target for GPO removal.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOPath
{{ Fill GPOPath Description }}
Specifies the path to the GPOs to be removed.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies the domains to include for GPO removal.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
Specifies the maximum number of GPOs to process before stopping.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -RequireDays
{{ Fill RequireDays Description }}
Specifies the number of days before GPO removal is required.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
{{ Fill Type Description }}
Specifies the type of GPOs to target for removal. Valid values are 'Empty', 'Unlinked', 'Disabled', 'NoApplyPermission'.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: Empty, Unlinked, Disabled, NoApplyPermission
Possible values: Empty, Unlinked, Disabled, NoApplyPermission
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -235,11 +216,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+89 -112
View File
@@ -1,26 +1,21 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOZaurrBroken
## SYNOPSIS
Finds and removes broken Group Policies from SYSVOL or AD or both.
## SYNTAX
```
Remove-GPOZaurrBroken [-Type] <String[]> [-BackupPath <String>] [-BackupDated] [-LimitProcessing <Int32>]
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
Remove-GPOZaurrBroken [-Type] <string[]> [-BackupPath <string>] [-BackupDated] [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
Finds and removes broken Group Policies from SYSVOL or AD or both.
Assesment is based on Get-GPOZaurrBroken and there are 3 supported types:
Finds and removes broken Group Policies from SYSVOL or AD or both. Assesment is based on Get-GPOZaurrBroken and there are 3 supported types:
- AD - meaning GPOs which have no SYSVOL content will be deleted from AD
- SYSVOL - meaning GPOs which have no AD content will be deleted from SYSVOL
- ObjectClass - meaning GPOs which have ObjectClass category of Container rather than groupPolicyContainer will be deleted from AD & SYSVOL
@@ -28,36 +23,39 @@ Assesment is based on Get-GPOZaurrBroken and there are 3 supported types:
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Remove-GPOZaurrBroken -Verbose -WhatIf -Type AD, SYSVOL
```
Remove-GPOZaurrBroken -Verbose -WhatIf -Type AD, SYSVOL
```
### EXAMPLE 2
```
Remove-GPOZaurrBroken -Verbose -WhatIf -Type AD, SYSVOL -IncludeDomains 'ad.evotec.pl' -LimitProcessing 2
```powershell
PS > Remove-GPOZaurrBroken -Verbose -WhatIf -Type AD, SYSVOL -IncludeDomains 'ad.evotec.pl' -LimitProcessing 2
```
### EXAMPLE 3
```powershell
PS > Remove-GPOZaurrBroken -Verbose -IncludeDomains 'ad.evotec.xyz' -BackupPath $Env:UserProfile\Desktop\MyBackup1 -WhatIf -Type AD, SYSVOL
```
Remove-GPOZaurrBroken -Verbose -IncludeDomains 'ad.evotec.xyz' -BackupPath $Env:UserProfile\Desktop\MyBackup1 -WhatIf -Type AD, SYSVOL
```
## PARAMETERS
### -Type
Choose one or more types to delete.
Options are AD, ObjectClass, SYSVOL
### -BackupDated
Forces backup to be created within folder that has date in it
```yaml
Type: String[]
Parameter Sets: (All)
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: True
Position: 1
Default value: None
Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -BackupPath
@@ -65,60 +63,15 @@ Path to optional backup of SYSVOL content before deletion
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -BackupDated
Forces backup to be created within folder that has date in it
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -LimitProcessing
Allows to specify maximum number of items that will be fixed in a single run.
It doesn't affect amount of GPOs processed
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
@@ -126,29 +79,15 @@ Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -156,45 +95,79 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
```yaml
Type: Int32
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: named
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: True
```
### -Type
Choose one or more types to delete. Options are AD, ObjectClass, SYSVOL
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases:
Possible values: SYSVOL, AD, ObjectClass
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -202,9 +175,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+36 -63
View File
@@ -1,141 +1,112 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOZaurrDuplicateObject
## SYNOPSIS
{{ Fill in the Synopsis }}
Removes duplicate Group Policy Objects (GPOs) identified by the Get-GPOZaurrDuplicateObject function.
## SYNTAX
```
Remove-GPOZaurrDuplicateObject [[-LimitProcessing] <Int32>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm]
[<CommonParameters>]
### __AllParameterSets
```powershell
Remove-GPOZaurrDuplicateObject [[-LimitProcessing] <int>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function removes duplicate GPOs based on the criteria provided. It retrieves duplicate GPO objects using Get-GPOZaurrDuplicateObject and then attempts to remove them from the Active Directory.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Remove-GPOZaurrDuplicateObject -Forest "contoso.com" -IncludeDomains "domain1.com", "domain2.com" -ExcludeDomains "domain3.com" -LimitProcessing 5
```
{{ Add example description here }}
Description:
Removes duplicate GPOs from the forest "contoso.com" for domains "domain1.com" and "domain2.com", excluding "domain3.com", processing only the first 5 duplicates.
## PARAMETERS
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the duplicate GPO removal process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest where the duplicate GPOs are located.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the duplicate GPO removal process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
Specifies the maximum number of duplicate GPOs to process. Default is set to [int32]::MaxValue.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -143,11 +114,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+58 -84
View File
@@ -1,219 +1,191 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOZaurrFolders
## SYNOPSIS
{{ Fill in the Synopsis }}
Removes specified GPOZaurr folders and backs them up to a specified path.
## SYNTAX
```
Remove-GPOZaurrFolders [[-BackupPath] <String>] [-BackupDated] [[-Type] <String[]>] [-FolderType] <String>
[[-FolderName] <String[]>] [[-LimitProcessing] <Int32>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm]
[<CommonParameters>]
### __AllParameterSets
```powershell
Remove-GPOZaurrFolders [[-BackupPath] <string>] [[-Type] <string[]>] [-FolderType] <string> [[-FolderName] <string[]>] [[-LimitProcessing] <int>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-BackupDated] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function removes specified GPOZaurr folders based on the provided criteria and backs them up to a specified path. It allows for filtering by folder type, domain, and other parameters.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Remove-GPOZaurrFolders -BackupPath "C:\Backups" -BackupDated -Type 'All' -FolderType 'NTFRS' -FolderName "Folder1" -LimitProcessing 10 -Forest "ExampleForest" -ExcludeDomains "Domain1" -IncludeDomains "Domain2" -ExtendedForestInformation $info
Removes GPOZaurr folders of type 'NTFRS' named "Folder1" from all domains in the forest "ExampleForest", backs them up to "C:\Backups" with a timestamp, and limits processing to 10 folders.
```
{{ Add example description here }}
## PARAMETERS
### -BackupDated
{{ Fill BackupDated Description }}
Indicates whether the backup path should include a timestamp.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -BackupPath
{{ Fill BackupPath Description }}
The path where the GPOZaurr folders will be backed up.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies domains to exclude from processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional forest information.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 8
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -FolderName
{{ Fill FolderName Description }}
Specifies the name of the folder to remove.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -FolderType
{{ Fill FolderType Description }}
Specifies the type of folders to remove. Options are 'NTFRS' or 'Empty'.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: NTFRS, Empty
Possible values: NTFRS, Empty
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest to target.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies domains to include in processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
Limits the number of folders to process.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Default value: None
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
{{ Fill Type Description }}
Specifies the type of folders to remove. Options are 'All', 'Netlogon', or 'Sysvol'.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: All, Netlogon, Sysvol
Possible values: All, Netlogon, Sysvol
Required: False
Position: 1
Default value: None
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -221,11 +193,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+47 -73
View File
@@ -1,171 +1,143 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOZaurrLegacyFiles
## SYNOPSIS
{{ Fill in the Synopsis }}
Removes legacy Group Policy Objects (GPO) files from specified domains.
## SYNTAX
```
Remove-GPOZaurrLegacyFiles [[-BackupPath] <String>] [-BackupDated] [-RemoveEmptyFolders] [[-Forest] <String>]
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-LimitProcessing] <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
Remove-GPOZaurrLegacyFiles [[-BackupPath] <string>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-LimitProcessing] <int>] [-BackupDated] [-RemoveEmptyFolders] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
The Remove-GPOZaurrLegacyFiles function removes legacy GPO files from specified domains. It can back up the files before removal and optionally remove empty folders.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Remove-GPOZaurrLegacyFiles -BackupPath "C:\GPOBackups" -BackupDated -RemoveEmptyFolders -Forest "Contoso" -IncludeDomains "Domain1", "Domain2" -ExcludeDomains "Domain3" -LimitProcessing 100
Removes legacy GPO files from the "Contoso" forest for "Domain1" and "Domain2", excluding "Domain3". Backs up files to "C:\GPOBackups" with timestamps and removes empty folders after deletion.
```
{{ Add example description here }}
## PARAMETERS
### -BackupDated
{{ Fill BackupDated Description }}
Indicates whether backup files should be timestamped with the current date and time.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -BackupPath
{{ Fill BackupPath Description }}
Specifies the path where backup files will be stored.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest where the GPO files are located.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include for processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
Specifies the maximum number of GPO files to process.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Default value: None
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -RemoveEmptyFolders
{{ Fill RemoveEmptyFolders Description }}
Indicates whether empty folders should be removed after GPO files are deleted.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -173,11 +145,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+39 -66
View File
@@ -1,156 +1,127 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOZaurrLinkEmptyOU
## SYNOPSIS
{{ Fill in the Synopsis }}
Removes Group Policy Object (GPO) links from empty Organizational Units (OUs) in a specified forest.
## SYNTAX
```
Remove-GPOZaurrLinkEmptyOU [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [[-ExcludeOrganizationalUnit] <String[]>]
[[-LimitProcessing] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
Remove-GPOZaurrLinkEmptyOU [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-ExcludeOrganizationalUnit] <string[]>] [[-LimitProcessing] <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function removes GPO links from OUs that are empty and meet specified criteria. It processes OUs within the specified forest based on inclusion and exclusion rules.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Remove-GPOZaurrLinkEmptyOU -Forest "ContosoForest" -IncludeDomains @("domain1", "domain2") -ExcludeDomains @("domain3") -ExtendedForestInformation $info -ExcludeOrganizationalUnit @("OU=TestOU,DC=contoso,DC=com") -LimitProcessing 100
Removes GPO links from empty OUs in the "ContosoForest" forest, including domains "domain1" and "domain2" but excluding "domain3". Additional forest information is provided, and processing is limited to 100 OUs.
```
{{ Add example description here }}
## PARAMETERS
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeOrganizationalUnit
{{ Fill ExcludeOrganizationalUnit Description }}
Specifies an array of OUs to exclude from processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the name of the forest to target for processing.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include for processing.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
Specifies the maximum number of OUs to process.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -158,11 +129,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+10 -280
View File
@@ -1,42 +1,16 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOZaurrPermission
## SYNOPSIS
{{ Fill in the Synopsis }}
## SYNTAX
### Global (Default)
```
Remove-GPOZaurrPermission [-Principal <String[]>] [-PrincipalType <String>] [-Type <String[]>]
[-IncludePermissionType <GPPermissionType[]>] [-ExcludePermissionType <GPPermissionType[]>] [-SkipWellKnown]
[-SkipAdministrative] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```
### GPOName
```
Remove-GPOZaurrPermission -GPOName <String> [-Principal <String[]>] [-PrincipalType <String>]
[-Type <String[]>] [-IncludePermissionType <GPPermissionType[]>] [-ExcludePermissionType <GPPermissionType[]>]
[-SkipWellKnown] [-SkipAdministrative] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```
### GPOGUID
```
Remove-GPOZaurrPermission -GPOGuid <String> [-Principal <String[]>] [-PrincipalType <String>]
[-Type <String[]>] [-IncludePermissionType <GPPermissionType[]>] [-ExcludePermissionType <GPPermissionType[]>]
[-SkipWellKnown] [-SkipAdministrative] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```powershell
Remove-GPOZaurrPermission
```
## DESCRIPTION
@@ -44,270 +18,26 @@ Remove-GPOZaurrPermission -GPOGuid <String> [-Principal <String[]>] [-PrincipalT
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
Remove-GPOZaurrPermission
```
{{ Add example description here }}
## PARAMETERS
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludePermissionType
{{ Fill ExcludePermissionType Description }}
```yaml
Type: GPPermissionType[]
Parameter Sets: (All)
Aliases:
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
{{ Fill Forest Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGuid
{{ Fill GPOGuid Description }}
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOName
{{ Fill GPOName Description }}
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludePermissionType
{{ Fill IncludePermissionType Description }}
```yaml
Type: GPPermissionType[]
Parameter Sets: (All)
Aliases: PermissionType
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Principal
{{ Fill Principal Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -PrincipalType
{{ Fill PrincipalType Description }}
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: DistinguishedName, Name, NetbiosName, Sid
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipAdministrative
{{ Fill SkipAdministrative Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipWellKnown
{{ Fill SkipWellKnown Description }}
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Type
{{ Fill Type Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: Unknown, NotAdministrative, Default
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
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).
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+49 -65
View File
@@ -1,156 +1,138 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Remove-GPOZaurrWMI
## SYNOPSIS
{{ Fill in the Synopsis }}
Removes Group Policy WMI filters based on specified criteria.
## SYNTAX
```
Remove-GPOZaurrWMI [[-Guid] <Guid[]>] [[-Name] <String[]>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm]
[<CommonParameters>]
### __AllParameterSets
```powershell
Remove-GPOZaurrWMI [[-Guid] <guid[]>] [[-Name] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
This function removes WMI filters based on the provided GUIDs or names within the specified forest or domains. It retrieves WMI filters associated with the GPOs and removes them.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Remove-GPOZaurrWMI -Guid "12345678-1234-1234-1234-123456789012"
```
{{ Add example description here }}
Description
-----------
Removes the WMI filter with the specified GUID.
### EXAMPLE 2
```powershell
PS > Remove-GPOZaurrWMI -Name "TestWMIFilter"
```
Description
-----------
Removes the WMI filter with the specified name.
## PARAMETERS
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the removal process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name where the WMI filters are located.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Guid
{{ Fill Guid Description }}
Specifies an array of GUIDs of the WMI filters to be removed.
```yaml
Type: Guid[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the removal process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Name
{{ Fill Name Description }}
Specifies an array of names of the WMI filters to be removed.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -158,11 +140,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+62 -88
View File
@@ -1,84 +1,52 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Repair-GPOZaurrBrokenLink
## SYNOPSIS
Removes any link to GPO that no longer exists.
## SYNTAX
```
Repair-GPOZaurrBrokenLink [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <Int32>] [-WhatIf] [-Confirm]
[<CommonParameters>]
### __AllParameterSets
```powershell
Repair-GPOZaurrBrokenLink [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
Removes any link to GPO that no longer exists.
It scans all site, organizational unit or domain root making sure every single link that may be linking to GPO that doesn't exists anymore is gone.
Removes any link to GPO that no longer exists. It scans all site, organizational unit or domain root making sure every single link that may be linking to GPO that doesn't exists anymore is gone.
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Repair-GPOZaurrBrokenLink -Verbose -LimitProcessing 1 -WhatIf
```
Repair-GPOZaurrBrokenLink -Verbose -LimitProcessing 1 -WhatIf
```
### EXAMPLE 2
```powershell
PS > Repair-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl -LimitProcessing 1 -WhatIf
```
Repair-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl -LimitProcessing 1 -WhatIf
```
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -86,61 +54,63 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -LimitProcessing
Allows to specify maximum number of items that will be fixed in a single run.
It doesn't affect amount of GPOs processed
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Position: 4
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -148,9 +118,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+59 -85
View File
@@ -1,21 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Repair-GPOZaurrNetLogonOwner
## SYNOPSIS
Sets new owner to each file in NetLogon share.
## SYNTAX
```
Repair-GPOZaurrNetLogonOwner [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [[-Principal] <String>] [[-LimitProcessing] <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
Repair-GPOZaurrNetLogonOwner [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Principal] <string>] [[-LimitProcessing] <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
@@ -24,55 +20,27 @@ Sets new owner to each file in NetLogon share.
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Repair-GPOZaurrNetLogonOwner -WhatIf -Verbose -IncludeDomains ad.evotec.pl
```
Repair-GPOZaurrNetLogonOwner -WhatIf -Verbose -IncludeDomains ad.evotec.pl
```
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -80,77 +48,79 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Principal
Provide named owner.
If not provided default S-1-5-32-544 is used.
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 5
Default value: S-1-5-32-544
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -LimitProcessing
Allows to specify maximum number of items that will be fixed in a single run.
It doesn't affect amount of GPOs processed
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 6
Position: 5
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
### -Principal
Provide named owner. If not provided default S-1-5-32-544 is used.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Type: String
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: 4
Default value: S-1-5-32-544
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -158,9 +128,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+39 -67
View File
@@ -1,157 +1,127 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Repair-GPOZaurrPermission
## SYNOPSIS
{{ Fill in the Synopsis }}
Repairs permissions for Group Policy Objects (GPOs) based on specified criteria.
## SYNTAX
```
Repair-GPOZaurrPermission [-Type] <String[]> [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <Int32>]
[-WhatIf] [-Confirm] [<CommonParameters>]
### __AllParameterSets
```powershell
Repair-GPOZaurrPermission [-Type] <string[]> [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
The Repair-GPOZaurrPermission function repairs permissions for GPOs based on the specified criteria. It analyzes the permissions of GPOs and adds necessary permissions if they are missing.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Repair-GPOZaurrPermission -Type 'All' -Forest 'ContosoForest' -IncludeDomains @('Domain1', 'Domain2') -ExcludeDomains @('Domain3') -ExtendedForestInformation $info -LimitProcessing 100
Repairs permissions for all types of users in the 'ContosoForest' forest, including only 'Domain1' and 'Domain2' while excluding 'Domain3', with extended forest information and processing a maximum of 100 GPOs.
```
{{ Add example description here }}
## PARAMETERS
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the analysis.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest name to analyze GPO permissions.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the analysis.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
Specifies the maximum number of GPOs to process.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Default value: None
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
{{ Fill Type Description }}
Specifies the type of permissions to repair. Valid values are 'AuthenticatedUsers', 'Unknown', 'System', 'Administrative', and 'All'.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Accepted values: AuthenticatedUsers, Unknown, System, Administrative, All
Possible values: AuthenticatedUsers, Unknown, System, Administrative, All
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -159,11 +129,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+58 -82
View File
@@ -1,186 +1,160 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Repair-GPOZaurrPermissionConsistency
## SYNOPSIS
{{ Fill in the Synopsis }}
Repairs permission consistency for Group Policy Objects (GPOs) in a specified domain or forest.
## SYNTAX
### Default (Default)
```
Repair-GPOZaurrPermissionConsistency [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```powershell
Repair-GPOZaurrPermissionConsistency [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### GPOName
```
Repair-GPOZaurrPermissionConsistency [-GPOName <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```powershell
Repair-GPOZaurrPermissionConsistency [-GPOName <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### GPOGUID
```
Repair-GPOZaurrPermissionConsistency [-GPOGuid <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```powershell
Repair-GPOZaurrPermissionConsistency [-GPOGuid <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
The Repair-GPOZaurrPermissionConsistency function repairs permission consistency for GPOs in a specified domain or forest. It checks for inconsistencies in GPO permissions and attempts to make them consistent.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Repair-GPOZaurrPermissionConsistency -GPOName "ExampleGPO" -Forest "example.com"
Repairs permission consistency for the GPO named "ExampleGPO" in the "example.com" forest.
```
### EXAMPLE 2
```powershell
PS > Repair-GPOZaurrPermissionConsistency -GPOGuid "12345678-1234-1234-1234-1234567890AB" -ExcludeDomains @("domain1", "domain2") -LimitProcessing 5
Repairs permission consistency for the GPO with the specified GUID, excluding domains "domain1" and "domain2", and processing a maximum of 5 GPOs.
```
{{ Add example description here }}
## PARAMETERS
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
{{ Fill ExcludeDomains Description }}
Specifies an array of domains to exclude from the repair process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
{{ Fill ExtendedForestInformation Description }}
Specifies additional information about the forest.
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
{{ Fill Forest Description }}
Specifies the forest where the GPOs are located.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases: ForestName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOGuid
{{ Fill GPOGuid Description }}
Specifies the GUID of the GPO to repair.
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GPOName
{{ Fill GPOName Description }}
Specifies the name of the GPO to repair.
```yaml
Type: String
Parameter Sets: GPOName
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -IncludeDomains
{{ Fill IncludeDomains Description }}
Specifies an array of domains to include in the repair process.
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -LimitProcessing
{{ Fill LimitProcessing Description }}
Specifies the maximum number of GPOs to process.
```yaml
Type: Int32
Parameter Sets: (All)
Parameter Sets: Default, GPOName, GPOGUID
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -188,11 +162,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+41 -32
View File
@@ -1,109 +1,116 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Restore-GPOZaurr
## SYNOPSIS
{{ Fill in the Synopsis }}
Restores Group Policy Objects (GPOs) from a specified backup folder.
## SYNTAX
```
Restore-GPOZaurr [-BackupFolder] <String> [[-DisplayName] <String>] [[-NewDisplayName] <String>]
[[-Domain] <String>] [-SkipBackupSummary] [<CommonParameters>]
### __AllParameterSets
```powershell
Restore-GPOZaurr [-BackupFolder] <string> [[-DisplayName] <string>] [[-NewDisplayName] <string>] [[-Domain] <string>] [-SkipBackupSummary] [<CommonParameters>]
```
## DESCRIPTION
{{ Fill in the Description }}
Restores Group Policy Objects (GPOs) from a specified backup folder. This function allows restoring GPOs with the option to provide a new display name for the GPO.
## EXAMPLES
### Example 1
### EXAMPLE 1
```powershell
PS C:\> {{ Add example code here }}
PS > Restore-GPOZaurr -BackupFolder 'C:\GPOBackups' -DisplayName 'TestGPO'
```
### EXAMPLE 2
```powershell
PS > Restore-GPOZaurr -BackupFolder 'C:\GPOBackups' -DisplayName 'TestGPO' -NewDisplayName 'NewTestGPO' -Domain 'example.com'
```
{{ Add example description here }}
## PARAMETERS
### -BackupFolder
{{ Fill BackupFolder Description }}
The path to the folder containing the GPO backups.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DisplayName
{{ Fill DisplayName Description }}
The display name of the GPO to be restored.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases: Name
Possible values:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Domain
{{ Fill Domain Description }}
(Optional) The domain name where the GPO should be restored.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -NewDisplayName
{{ Fill NewDisplayName Description }}
(Optional) The new display name for the restored GPO.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -SkipBackupSummary
{{ Fill SkipBackupSummary Description }}
(Switch) Skip displaying the backup summary information.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -111,11 +118,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
### None
- `None`
## OUTPUTS
### System.Object
## NOTES
- `None`
## RELATED LINKS
- None
+59 -51
View File
@@ -1,20 +1,17 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Save-GPOZaurrFiles
## SYNOPSIS
Exports GPO XML data to files and saves it to a given path
## SYNTAX
```
Save-GPOZaurrFiles [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <String[]>] [-DeleteExisting] [<CommonParameters>]
### __AllParameterSets
```powershell
Save-GPOZaurrFiles [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <string[]>] [-DeleteExisting] [<CommonParameters>]
```
## DESCRIPTION
@@ -23,25 +20,27 @@ Exports GPO XML data to files and saves it to a given path
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Save-GPOZaurrFiles -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportEvotec' -DeleteExisting -Verbose
```
Save-GPOZaurrFiles -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportEvotec' -DeleteExisting -Verbose
```
## PARAMETERS
### -Forest
Target different Forest, by default current forest is used
### -DeleteExisting
Delete existing files before saving new ones
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 1
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExcludeDomains
@@ -49,29 +48,15 @@ Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
@@ -79,14 +64,31 @@ Ability to provide Forest Information from another command to speed up processin
```yaml
Type: IDictionary
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 4
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases: ForestName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOPath
@@ -94,29 +96,31 @@ Path where to save XML files from GPOReport
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 5
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DeleteExisting
Delete existing files before saving new ones
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Type: String[]
Parameter Sets: __AllParameterSets
Aliases: Domain, Domains
Possible values:
Required: False
Position: Named
Default value: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -124,9 +128,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+36 -36
View File
@@ -1,71 +1,67 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Set-GPOOwner
## SYNOPSIS
Used within Invoke-GPOZaurrPermission only.
Set new group policy owner.
Used within Invoke-GPOZaurrPermission only. Set new group policy owner.
## SYNTAX
```
Set-GPOOwner [[-Type] <String>] [[-Principal] <String>] [<CommonParameters>]
### __AllParameterSets
```powershell
Set-GPOOwner [[-Type] <string>] [[-Principal] <string>] [<CommonParameters>]
```
## DESCRIPTION
Used within Invoke-GPOZaurrPermission only.
Set new group policy owner.
Used within Invoke-GPOZaurrPermission only. Set new group policy owner.
## EXAMPLES
### EXAMPLE 1
```
Invoke-GPOZaurrPermission -Verbose -SearchBase 'OU=Computers,OU=Production,DC=ad,DC=evotec,DC=xyz' {
```
```powershell
PS > Invoke-GPOZaurrPermission -Verbose -SearchBase 'OU=Computers,OU=Production,DC=ad,DC=evotec,DC=xyz' {
Set-GPOOwner -Type Administrative
Remove-GPOPermission -Type NotAdministrative, NotWellKnownAdministrative -IncludePermissionType GpoEdit, GpoEditDeleteModifySecurity
Add-GPOPermission -Type Administrative -IncludePermissionType GpoEditDeleteModifySecurity
Add-GPOPermission -Type WellKnownAdministrative -IncludePermissionType GpoEditDeleteModifySecurity
} -WhatIf
```
## PARAMETERS
### -Type
Choose Owner Type.
When chosing Administrative Type, owner will be set to Domain Admins for current GPO domain.
When Default is set Owner will be set to Principal given in another parameter.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
```
### -Principal
Choose Owner Name to set for Group Policy
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: __AllParameterSets
Aliases:
Possible values:
Required: False
Position: 2
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Type
Choose Owner Type. When chosing Administrative Type, owner will be set to Domain Admins for current GPO domain. When Default is set Owner will be set to Principal given in another parameter.
```yaml
Type: String
Parameter Sets: __AllParameterSets
Aliases:
Possible values: Administrative, Default
Required: False
Position: 0
Default value: Default
Accept pipeline input: False
Accept wildcard characters: True
```
### CommonParameters
@@ -73,9 +69,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+170 -198
View File
@@ -1,203 +1,51 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Set-GPOZaurrOwner
## SYNOPSIS
Sets GPO Owner to Domain Admins or other choosen account
## SYNTAX
### Type (Default)
```
Set-GPOZaurrOwner -Type <String> [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>] [-Principal <String>] [-SkipSysvol] [-LimitProcessing <Int32>]
[-ApprovedOwner <String[]>] [-Action <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
```powershell
Set-GPOZaurrOwner -Type <string> [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-Principal <string>] [-SkipSysvol] [-LimitProcessing <int>] [-ApprovedOwner <string[]>] [-Action <string>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
```
### Named
```
Set-GPOZaurrOwner [-GPOName <String>] [-GPOGuid <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Principal <String>] [-SkipSysvol]
[-LimitProcessing <Int32>] [-ApprovedOwner <String[]>] [-Action <String>] [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
```powershell
Set-GPOZaurrOwner [-GPOName <string>] [-GPOGuid <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-Principal <string>] [-SkipSysvol] [-LimitProcessing <int>] [-ApprovedOwner <string[]>] [-Action <string>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
Sets GPO Owner to Domain Admins or other choosen account.
GPO Owner is set in AD and SYSVOL unless specified otherwise.
If account doesn't require change, no change is done.
Sets GPO Owner to Domain Admins or other choosen account. GPO Owner is set in AD and SYSVOL unless specified otherwise. If account doesn't require change, no change is done.
## EXAMPLES
### EXAMPLE 1
```powershell
PS > Set-GPOZaurrOwner -Type All -Verbose -WhatIf -LimitProcessing 2
```
Set-GPOZaurrOwner -Type All -Verbose -WhatIf -LimitProcessing 2
```
## PARAMETERS
### -Type
Unknown - finds unknown Owners and sets them to Administrative (Domain Admins) or chosen principal
NotMatching - find administrative groups only and if sysvol and gpo doesn't match - replace with chosen principal or Domain Admins if not specified
Inconsistent - same as not NotMatching
NotAdministrative - combination of Unknown/NotMatching and NotAdministrative - replace with chosen principal or Domain Admins if not specified
All - if Owner is known it checks if it's Administrative, if it sn't it fixes that.
If owner is unknown it fixes it
### -Action
{{ Fill Action Description }}
```yaml
Type: String
Parameter Sets: Type
Parameter Sets: Type, Named
Aliases:
Possible values: OnlyAD, OnlyFileSystem
Required: True
Position: Named
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOName
Name of GPO.
By default all GPOs are targetted
```yaml
Type: String
Parameter Sets: Named
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGuid
GUID of GPO.
By default all GPOs are targetted
```yaml
Type: String
Parameter Sets: Named
Aliases: GUID, GPOID
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Principal
Parameter description
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SkipSysvol
Set GPO Owner only in Active Directory.
By default GPO Owner is being set in both places
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -LimitProcessing
Allows to specify maximum number of items that will be fixed in a single run.
It doesn't affect amount of GPOs processed
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ApprovedOwner
@@ -205,29 +53,47 @@ Accept wildcard characters: False
```yaml
Type: String[]
Parameter Sets: (All)
Parameter Sets: Type, Named
Aliases: Exclusion, Exclusions
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Action
{{ Fill Action Description }}
### -ExcludeDomains
Exclude domain from search, by default whole forest is scanned
```yaml
Type: String
Parameter Sets: (All)
Type: String[]
Parameter Sets: Type, Named
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -ExtendedForestInformation
Ability to provide Forest Information from another command to speed up processing
```yaml
Type: IDictionary
Parameter Sets: Type, Named
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -Force
@@ -235,45 +101,147 @@ Pushes new owner regardless if it's already set or not
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Parameter Sets: Type, Named
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
### -Forest
Target different Forest, by default current forest is used
```yaml
Type: String
Parameter Sets: Type, Named
Aliases: ForestName
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOGuid
GUID of GPO. By default all GPOs are targetted
```yaml
Type: String
Parameter Sets: Named
Aliases: GUID, GPOID
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -GPOName
Name of GPO. By default all GPOs are targetted
```yaml
Type: String
Parameter Sets: Named
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -IncludeDomains
Include only specific domains, by default whole forest is scanned
```yaml
Type: String[]
Parameter Sets: Type, Named
Aliases: Domain, Domains
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -LimitProcessing
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
```yaml
Type: Int32
Parameter Sets: Type, Named
Aliases:
Possible values:
Required: False
Position: named
Default value: 2147483647
Accept pipeline input: False
Accept wildcard characters: True
```
### -Principal
Parameter description
```yaml
Type: String
Parameter Sets: Type, Named
Aliases:
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
```
### -SkipSysvol
Set GPO Owner only in Active Directory. By default GPO Owner is being set in both places
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Parameter Sets: Type, Named
Aliases:
Possible values:
Required: False
Position: Named
Default value: None
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
### -Type
Unknown - finds unknown Owners and sets them to Administrative (Domain Admins) or chosen principal
NotMatching - find administrative groups only and if sysvol and gpo doesn't match - replace with chosen principal or Domain Admins if not specified
Inconsistent - same as not NotMatching
NotAdministrative - combination of Unknown/NotMatching and NotAdministrative - replace with chosen principal or Domain Admins if not specified
All - if Owner is known it checks if it's Administrative, if it sn't it fixes that. If owner is unknown it fixes it
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Type: String
Parameter Sets: Type
Aliases:
Possible values: Unknown, NotAdministrative, NotMatching, Inconsistent, All
Required: False
Position: Named
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -281,9 +249,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+13 -163
View File
@@ -1,193 +1,43 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Set-GPOZaurrStatus
## SYNOPSIS
Enables or disables user/computer section of Group Policy.
{{ Fill in the Synopsis }}
## SYNTAX
### GPOName (Default)
```
Set-GPOZaurrStatus -GPOName <String> -Status <GpoStatus> [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```
### GPOGUID
```
Set-GPOZaurrStatus -GPOGuid <String> -Status <GpoStatus> [-Forest <String>] [-ExcludeDomains <String[]>]
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```powershell
Set-GPOZaurrStatus
```
## DESCRIPTION
Enables or disables user/computer section of Group Policy.
{{ Fill in the Description }}
## EXAMPLES
### EXAMPLE 1
```
Set-GPOZaurrStatus -Name 'TEST | Empty GPO - AD.EVOTEC.PL CrossDomain GPO' -Status AllSettingsEnabled -Verbose
```powershell
Set-GPOZaurrStatus
```
### EXAMPLE 2
```
Set-GPOZaurrStatus -Name 'TEST | Empty GPO - AD.EVOTEC.PL CrossDomain GPO' -DomainName ad.evotec.pl -Status AllSettingsEnabled -Verbose
```
## PARAMETERS
### -GPOName
Provide Group Policy Name
```yaml
Type: String
Parameter Sets: GPOName
Aliases: Name, DisplayName
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -GPOGuid
Provide Group Policy GUID
```yaml
Type: String
Parameter Sets: GPOGUID
Aliases: GUID, GPOID
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Status
Choose a status for provided Group Policy
```yaml
Type: GpoStatus
Parameter Sets: (All)
Aliases:
Accepted values: AllSettingsDisabled, UserSettingsDisabled, ComputerSettingsDisabled, AllSettingsEnabled
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Forest
Choose forest to target.
```yaml
Type: String
Parameter Sets: (All)
Aliases: ForestName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExcludeDomains
Exclude domains from trying to find Group Policy Name or GUID
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeDomains
Include domain (one or more) to find Group Policy Name or GUID
```yaml
Type: String[]
Parameter Sets: (All)
Aliases: Domain, Domains, DomainName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExtendedForestInformation
Provide Extended Forest Information
```yaml
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
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).
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+38 -39
View File
@@ -1,69 +1,63 @@
---
external help file: GPOZaurr-help.xml
Module Name: GPOZaurr
online version:
online version: https://github.com/EvotecIT/GPOZaurr
schema: 2.0.0
---
# Skip-GroupPolicy
## SYNOPSIS
Used within ScriptBlocks only.
Allows to exclude Group Policy from being affected by fixes
Used within ScriptBlocks only. Allows to exclude Group Policy from being affected by fixes
## SYNTAX
### Name (Default)
```
Skip-GroupPolicy [-Name <String>] [-DomaiName <String>] [<CommonParameters>]
```powershell
Skip-GroupPolicy [-Name <string>] [-DomaiName <string>] [<CommonParameters>]
```
### Guid
```
Skip-GroupPolicy [-GUID <String>] [-DomaiName <String>] [<CommonParameters>]
```powershell
Skip-GroupPolicy [-GUID <string>] [-DomaiName <string>] [<CommonParameters>]
```
## DESCRIPTION
Used within ScriptBlocks only.
Allows to exclude Group Policy from being affected by fixes.
Only some commands support it.
The goal is to support all cmdlets.
Used within ScriptBlocks only. Allows to exclude Group Policy from being affected by fixes. Only some commands support it. The goal is to support all cmdlets.
## EXAMPLES
### EXAMPLE 1
```
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
```
```powershell
PS > Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
}
```
### EXAMPLE 2
```
Remove-GPOZaurr -Type Empty, Unlinked -BackupPath "$Env:UserProfile\Desktop\GPO" -BackupDated -LimitProcessing 2 -Verbose -WhatIf {
```
```powershell
PS > Remove-GPOZaurr -Type Empty, Unlinked -BackupPath "$Env:UserProfile\Desktop\GPO" -BackupDated -LimitProcessing 2 -Verbose -WhatIf {
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2' -DomaiName 'ad.evotec.pl'
}
```
## PARAMETERS
### -Name
Define Group Policy Name to skip
### -DomaiName
Define DomainName where Group Policy is located. Otherwise each domain will be checked and skipped if found with same name.
```yaml
Type: String
Parameter Sets: Name
Aliases: GpoName, DisplayName
Parameter Sets: Name, Guid
Aliases:
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -GUID
@@ -73,28 +67,29 @@ Accept wildcard characters: False
Type: String
Parameter Sets: Guid
Aliases: ID
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### -DomaiName
Define DomainName where Group Policy is located.
Otherwise each domain will be checked and skipped if found with same name.
### -Name
Define Group Policy Name to skip
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Parameter Sets: Name
Aliases: GpoName, DisplayName
Possible values:
Required: False
Position: Named
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Accept wildcard characters: True
```
### CommonParameters
@@ -102,9 +97,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
- `None`
## OUTPUTS
## NOTES
General notes
- `None`
## RELATED LINKS
- None
+7 -6
View File
@@ -4,7 +4,7 @@
CmdletsToExport = @()
CompanyName = 'Evotec'
CompatiblePSEditions = @('Desktop')
Copyright = '(c) 2011 - 2025 Przemyslaw Klys @ Evotec. All rights reserved.'
Copyright = '(c) 2011 - 2026 Przemyslaw Klys @ Evotec. All rights reserved.'
Description = 'Group Policy Eater is a PowerShell module that aims to gather information about Group Policies but also allows fixing issues that you may find in them.'
FunctionsToExport = @('Add-GPOPermission', 'Add-GPOZaurrPermission', 'Backup-GPOZaurr', 'Clear-GPOZaurrSysvolDFSR', 'ConvertFrom-CSExtension', 'Export-GPOZaurrContent', 'Find-CSExtension', 'Get-GPOZaurr', 'Get-GPOZaurrAD', 'Get-GPOZaurrBackupInformation', 'Get-GPOZaurrBroken', 'Get-GPOZaurrBrokenLink', 'Get-GPOZaurrDictionary', 'Get-GPOZaurrDuplicateObject', 'Get-GPOZaurrFiles', 'Get-GPOZaurrFilesPolicyDefinition', 'Get-GPOZaurrFolders', 'Get-GPOZaurrInheritance', 'Get-GPOZaurrLegacyFiles', 'Get-GPOZaurrLink', 'Get-GPOZaurrLinkSummary', 'Get-GPOZaurrMissingFiles', 'Get-GPOZaurrNetLogon', 'Get-GPOZaurrOrganizationalUnit', 'Get-GPOZaurrOwner', 'Get-GPOZaurrPassword', 'Get-GPOZaurrPermission', 'Get-GPOZaurrPermissionAnalysis', 'Get-GPOZaurrPermissionConsistency', 'Get-GPOZaurrPermissionIssue', 'Get-GPOZaurrPermissionRoot', 'Get-GPOZaurrPermissionSummary', 'Get-GPOZaurrRedirect', 'Get-GPOZaurrSysvolDFSR', 'Get-GPOZaurrUpdates', 'Get-GPOZaurrWMI', 'Invoke-GPOZaurr', 'Invoke-GPOZaurrContent', 'Invoke-GPOZaurrPermission', 'Invoke-GPOZaurrSupport', 'New-GPOZaurrWMI', 'Optimize-GPOZaurr', 'Remove-GPOPermission', 'Remove-GPOZaurr', 'Remove-GPOZaurrBroken', 'Remove-GPOZaurrDuplicateObject', 'Remove-GPOZaurrFolders', 'Remove-GPOZaurrLegacyFiles', 'Remove-GPOZaurrLinkEmptyOU', 'Remove-GPOZaurrPermission', 'Remove-GPOZaurrWMI', 'Repair-GPOZaurrBrokenLink', 'Repair-GPOZaurrNetLogonOwner', 'Repair-GPOZaurrPermission', 'Repair-GPOZaurrPermissionConsistency', 'Restore-GPOZaurr', 'Save-GPOZaurrFiles', 'Set-GPOOwner', 'Set-GPOZaurrOwner', 'Set-GPOZaurrStatus', 'Skip-GroupPolicy')
GUID = 'f7d4c9e4-0298-4f51-ad77-e8e3febebbde'
@@ -12,7 +12,7 @@
PowerShellVersion = '5.1'
PrivateData = @{
PSData = @{
ExternalModuleDependencies = @('CimCmdlets', 'Microsoft.PowerShell.Management', 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Security')
ExternalModuleDependencies = @('CimCmdlets')
ProjectUri = 'https://github.com/EvotecIT/GPOZaurr'
RequireLicenseAcceptance = $false
Tags = @('Windows', 'ActiveDirectory', 'GPO', 'GroupPolicy')
@@ -25,15 +25,16 @@
}, @{
Guid = 'ee272aa8-baaa-4edf-9f45-b6d6f7d844fe'
ModuleName = 'PSSharedGoods'
ModuleVersion = '0.0.312'
ModuleVersion = '0.0.313.1'
}, @{
Guid = '9fc9fd61-7f11-4f4b-a527-084086f1905f'
ModuleName = 'ADEssentials'
ModuleVersion = '0.0.267'
ModuleVersion = '1.0.4.1'
}, @{
Guid = 'a7bdf640-f5cb-4acf-9de0-365b322d245c'
ModuleName = 'PSWriteHTML'
ModuleVersion = '1.27.0'
}, 'CimCmdlets', 'Microsoft.PowerShell.Management', 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Security')
ModuleVersion = '1.41.0.5'
})
RootModule = 'GPOZaurr.psm1'
ScriptsToProcess = @()
}
+2 -2
View File
@@ -28,11 +28,11 @@
Runs the function online to retrieve the latest Group Policy information.
.EXAMPLE
Invoke-GPOZaurrSupport -Type HTML -ComputerName "RemoteComputer" -UserName "Admin" -Path "C:\Temp\GPOReport.html"
Invoke-GPOZaurrSupport -Type HTML -ComputerName "RemoteComputer" -UserName "Admin" -Path (Join-Path $env:TEMP 'GPOReport.html')
Retrieves Group Policy information in HTML format from a remote computer and saves it to a specified path.
.EXAMPLE
Invoke-GPOZaurrSupport -Type XML -Path "C:\Temp\GPOReport.xml" -Online
Invoke-GPOZaurrSupport -Type XML -Path (Join-Path $env:TEMP 'GPOReport.xml') -Online
Retrieves the latest Group Policy information in XML format and saves it to a specified path.
#>