mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-27 12:18:59 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 65f52058d3 | |||
| 170896c0cc |
+8
-10
@@ -1,10 +1,8 @@
|
|||||||
Ignore/*
|
Ignore/*
|
||||||
.vs/*
|
.vs/*
|
||||||
.vscode/*
|
.vscode/*
|
||||||
Releases/*
|
Releases/*
|
||||||
ReleasesUnpacked/*
|
ReleasesUnpacked/*
|
||||||
*.log
|
*.log
|
||||||
*.html
|
*.html
|
||||||
Artefacts/*
|
Artefacts/*
|
||||||
WebsiteArtifacts/
|
|
||||||
en-US/
|
|
||||||
@@ -1,253 +0,0 @@
|
|||||||
[CmdletBinding()]
|
|
||||||
param(
|
|
||||||
[switch]$SkipBuild,
|
|
||||||
[string]$ArtifactsRoot = (Join-Path $PSScriptRoot '..\WebsiteArtifacts')
|
|
||||||
)
|
|
||||||
|
|
||||||
$ErrorActionPreference = 'Stop'
|
|
||||||
|
|
||||||
$repoRoot = [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..'))
|
|
||||||
$moduleName = 'GPOZaurr'
|
|
||||||
$slug = 'gpozaurr'
|
|
||||||
$toleratedBuildFailure = $false
|
|
||||||
$docsSource = Join-Path $repoRoot 'Docs'
|
|
||||||
$helpCandidates = @(
|
|
||||||
(Join-Path $repoRoot "en-US\$moduleName-help.xml"),
|
|
||||||
(Join-Path $repoRoot "Artefacts\Unpacked\$moduleName\en-US\$moduleName-help.xml")
|
|
||||||
)
|
|
||||||
$examplesSource = Join-Path $repoRoot 'Examples'
|
|
||||||
$placeholderMarkers = @(
|
|
||||||
'{{ Fill in the Synopsis }}',
|
|
||||||
'{{ Fill in the Description }}',
|
|
||||||
'{{ Add example code here }}',
|
|
||||||
'{{ Add example description here }}'
|
|
||||||
)
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
function Find-HelpFile {
|
|
||||||
foreach ($candidate in $helpCandidates) {
|
|
||||||
if (Test-Path -LiteralPath $candidate -PathType Leaf) {
|
|
||||||
return [System.IO.Path]::GetFullPath($candidate)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $null
|
|
||||||
}
|
|
||||||
|
|
||||||
function Test-PlaceholderContent {
|
|
||||||
param(
|
|
||||||
[Parameter(Mandatory)]
|
|
||||||
[string]$Path
|
|
||||||
)
|
|
||||||
|
|
||||||
foreach ($marker in $placeholderMarkers) {
|
|
||||||
$match = Select-String -Path $Path -Pattern $marker -SimpleMatch -List -ErrorAction SilentlyContinue
|
|
||||||
if ($match) {
|
|
||||||
throw "Placeholder API content detected in '$Path' ($marker)."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Get-PlaceholderMatches {
|
|
||||||
param(
|
|
||||||
[Parameter(Mandatory)]
|
|
||||||
[string]$Path
|
|
||||||
)
|
|
||||||
|
|
||||||
if (-not (Test-Path -LiteralPath $Path)) {
|
|
||||||
return @()
|
|
||||||
}
|
|
||||||
|
|
||||||
$files = if (Test-Path -LiteralPath $Path -PathType Container) {
|
|
||||||
Get-ChildItem -LiteralPath $Path -File -Recurse
|
|
||||||
} else {
|
|
||||||
Get-Item -LiteralPath $Path
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($file in $files) {
|
|
||||||
foreach ($marker in $placeholderMarkers) {
|
|
||||||
$match = Select-String -Path $file.FullName -Pattern $marker -SimpleMatch -List -ErrorAction SilentlyContinue
|
|
||||||
if ($match) {
|
|
||||||
[PSCustomObject]@{
|
|
||||||
Path = $file.FullName
|
|
||||||
Marker = $marker
|
|
||||||
}
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Write-CommandMetadata {
|
|
||||||
param(
|
|
||||||
[Parameter(Mandatory)]
|
|
||||||
[string]$ModuleManifestPath,
|
|
||||||
[Parameter(Mandatory)]
|
|
||||||
[string]$OutputPath
|
|
||||||
)
|
|
||||||
|
|
||||||
if (-not (Test-Path -LiteralPath $ModuleManifestPath -PathType Leaf)) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
$resolvedManifestPath = [System.IO.Path]::GetFullPath($ModuleManifestPath)
|
|
||||||
Remove-Module -Name $moduleName -Force -ErrorAction SilentlyContinue
|
|
||||||
try {
|
|
||||||
Import-Module $resolvedManifestPath -Force -ErrorAction Stop | Out-Null
|
|
||||||
$allCommands = @(Get-Command -Module $moduleName -ErrorAction Stop)
|
|
||||||
$aliasesByTarget = @{}
|
|
||||||
|
|
||||||
foreach ($aliasCommand in $allCommands | Where-Object CommandType -EQ 'Alias') {
|
|
||||||
$targetName = $aliasCommand.ResolvedCommandName
|
|
||||||
if ([string]::IsNullOrWhiteSpace($targetName)) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if (-not $aliasesByTarget.ContainsKey($targetName)) {
|
|
||||||
$aliasesByTarget[$targetName] = [System.Collections.Generic.List[string]]::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (-not $aliasesByTarget[$targetName].Contains($aliasCommand.Name)) {
|
|
||||||
$null = $aliasesByTarget[$targetName].Add($aliasCommand.Name)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$commandMetadata = foreach ($command in $allCommands | Where-Object CommandType -In @('Function', 'Cmdlet', 'Filter', 'ExternalScript') | Sort-Object Name) {
|
|
||||||
[ordered]@{
|
|
||||||
name = $command.Name
|
|
||||||
kind = if ($command.CommandType -EQ 'Cmdlet') { 'Cmdlet' } else { 'Function' }
|
|
||||||
aliases = @($aliasesByTarget[$command.Name] | Sort-Object -Unique)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$payload = [ordered]@{
|
|
||||||
moduleName = $moduleName
|
|
||||||
generatedAt = (Get-Date).ToString('o')
|
|
||||||
commands = @($commandMetadata)
|
|
||||||
}
|
|
||||||
|
|
||||||
$payload | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $OutputPath -Encoding UTF8
|
|
||||||
} finally {
|
|
||||||
Remove-Module -Name $moduleName -Force -ErrorAction SilentlyContinue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (-not (Get-Command Invoke-ModuleBuild -ErrorAction SilentlyContinue)) {
|
|
||||||
Import-LocalPSPublishModule
|
|
||||||
}
|
|
||||||
|
|
||||||
$helpPath = Find-HelpFile
|
|
||||||
if (-not $helpPath -and -not $SkipBuild) {
|
|
||||||
$docsPlaceholders = @(Get-PlaceholderMatches -Path $docsSource)
|
|
||||||
if ($docsPlaceholders.Count -gt 0) {
|
|
||||||
$sample = ($docsPlaceholders | Select-Object -First 5 | ForEach-Object { "$($_.Path) [$($_.Marker)]" }) -join '; '
|
|
||||||
Write-Warning "Docs still contain placeholder markdown from a previous generation pass. Continuing with module build so fresh external help can be regenerated. Sample matches: $sample"
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
& (Join-Path $PSScriptRoot 'Manage-Module.ps1') -SkipPublish
|
|
||||||
} catch {
|
|
||||||
$helpPath = Find-HelpFile
|
|
||||||
if (-not $helpPath) {
|
|
||||||
throw
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Warning "Manage-Module.ps1 reported a build failure after external help was generated. Continuing website artifact export with the refreshed help output. Original error: $($_.Exception.Message)"
|
|
||||||
$toleratedBuildFailure = $true
|
|
||||||
}
|
|
||||||
|
|
||||||
$helpPath = Find-HelpFile
|
|
||||||
}
|
|
||||||
|
|
||||||
if (-not $helpPath) {
|
|
||||||
throw "Unable to find $moduleName external help. Run .\Build\Manage-Module.ps1 first."
|
|
||||||
}
|
|
||||||
|
|
||||||
Test-PlaceholderContent -Path $helpPath
|
|
||||||
|
|
||||||
$resolvedArtifactsRoot = [System.IO.Path]::GetFullPath($ArtifactsRoot)
|
|
||||||
$apiRoot = Join-Path $resolvedArtifactsRoot 'apidocs\powershell'
|
|
||||||
$examplesTarget = Join-Path $apiRoot 'examples'
|
|
||||||
|
|
||||||
if (Test-Path -LiteralPath $apiRoot) {
|
|
||||||
Remove-Item -LiteralPath $apiRoot -Recurse -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
New-Item -ItemType Directory -Path $apiRoot -Force | Out-Null
|
|
||||||
Copy-Item -LiteralPath $helpPath -Destination (Join-Path $apiRoot "$moduleName-help.xml") -Force
|
|
||||||
|
|
||||||
$psd1Path = Join-Path $repoRoot "$moduleName.psd1"
|
|
||||||
if (Test-Path -LiteralPath $psd1Path -PathType Leaf) {
|
|
||||||
Copy-Item -LiteralPath $psd1Path -Destination (Join-Path $apiRoot "$moduleName.psd1") -Force
|
|
||||||
Write-CommandMetadata -ModuleManifestPath $psd1Path -OutputPath (Join-Path $apiRoot 'command-metadata.json')
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Test-Path -LiteralPath $examplesSource -PathType Container) {
|
|
||||||
Copy-Item -LiteralPath $examplesSource -Destination $examplesTarget -Recurse -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
$version = $null
|
|
||||||
if (Test-Path -LiteralPath $psd1Path -PathType Leaf) {
|
|
||||||
$version = (Import-PowerShellDataFile -Path $psd1Path).ModuleVersion.ToString()
|
|
||||||
}
|
|
||||||
|
|
||||||
$commit = (& git -C $repoRoot rev-parse HEAD).Trim()
|
|
||||||
$manifest = [ordered]@{
|
|
||||||
slug = $slug
|
|
||||||
name = $moduleName
|
|
||||||
description = 'GPOZaurr helps inspect, report on, and remediate Group Policy environments with PowerShell.'
|
|
||||||
mode = 'hub-full'
|
|
||||||
contentMode = 'hybrid'
|
|
||||||
status = 'active'
|
|
||||||
listed = $true
|
|
||||||
version = $version
|
|
||||||
generatedAt = (Get-Date).ToString('o')
|
|
||||||
commit = $commit
|
|
||||||
links = [ordered]@{
|
|
||||||
source = 'https://github.com/EvotecIT/GPOZaurr'
|
|
||||||
}
|
|
||||||
surfaces = [ordered]@{
|
|
||||||
docs = $true
|
|
||||||
apiPowerShell = $true
|
|
||||||
apiDotNet = $false
|
|
||||||
examples = $true
|
|
||||||
}
|
|
||||||
artifacts = [ordered]@{
|
|
||||||
api = 'WebsiteArtifacts/apidocs'
|
|
||||||
docs = 'Website/content/project-docs'
|
|
||||||
examples = 'Website/content/examples'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$manifestPath = Join-Path $resolvedArtifactsRoot 'project-manifest.json'
|
|
||||||
New-Item -ItemType Directory -Path $resolvedArtifactsRoot -Force | Out-Null
|
|
||||||
$manifest | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $manifestPath -Encoding UTF8
|
|
||||||
|
|
||||||
Write-Host "Exported website artifacts -> $resolvedArtifactsRoot" -ForegroundColor Green
|
|
||||||
|
|
||||||
if ($toleratedBuildFailure -and $global:LASTEXITCODE -ne 0) {
|
|
||||||
$global:LASTEXITCODE = 0
|
|
||||||
}
|
|
||||||
@@ -1,218 +1,224 @@
|
|||||||
Build-Module -ModuleName 'GPOZaurr' {
|
Clear-Host
|
||||||
# Usual defaults as per standard module
|
|
||||||
$Manifest = @{
|
Invoke-ModuleBuild -ModuleName 'GPOZaurr' {
|
||||||
# Version number of this module.
|
# Usual defaults as per standard module
|
||||||
ModuleVersion = '1.1.X'
|
$Manifest = @{
|
||||||
# Supported PSEditions
|
# Version number of this module.
|
||||||
CompatiblePSEditions = @('Desktop')
|
ModuleVersion = '1.1.X'
|
||||||
# ID used to uniquely identify this module
|
# Supported PSEditions
|
||||||
GUID = 'f7d4c9e4-0298-4f51-ad77-e8e3febebbde'
|
CompatiblePSEditions = @('Desktop')
|
||||||
# Author of this module
|
# ID used to uniquely identify this module
|
||||||
Author = 'Przemyslaw Klys'
|
GUID = 'f7d4c9e4-0298-4f51-ad77-e8e3febebbde'
|
||||||
# Company or vendor of this module
|
# Author of this module
|
||||||
CompanyName = 'Evotec'
|
Author = 'Przemyslaw Klys'
|
||||||
# Copyright statement for this module
|
# Company or vendor of this module
|
||||||
Copyright = "(c) 2011 - $((Get-Date).Year) Przemyslaw Klys @ Evotec. All rights reserved."
|
CompanyName = 'Evotec'
|
||||||
# Description of the functionality provided by this module
|
# Copyright statement for this module
|
||||||
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.'
|
Copyright = "(c) 2011 - $((Get-Date).Year) Przemyslaw Klys @ Evotec. All rights reserved."
|
||||||
# Minimum version of the Windows PowerShell engine required by this module
|
# Description of the functionality provided by this module
|
||||||
PowerShellVersion = '5.1'
|
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.'
|
||||||
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
|
# Minimum version of the Windows PowerShell engine required by this module
|
||||||
Tags = @('Windows', 'ActiveDirectory', 'GPO', 'GroupPolicy')
|
PowerShellVersion = '5.1'
|
||||||
#IconUri = 'https://evotec.xyz/wp-content/uploads/2019/02/PSPublishModule.png'
|
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
|
||||||
|
Tags = @('Windows', 'ActiveDirectory', 'GPO', 'GroupPolicy')
|
||||||
ProjectUri = 'https://github.com/EvotecIT/GPOZaurr'
|
#IconUri = 'https://evotec.xyz/wp-content/uploads/2019/02/PSPublishModule.png'
|
||||||
}
|
|
||||||
New-ConfigurationManifest @Manifest
|
ProjectUri = 'https://github.com/EvotecIT/GPOZaurr'
|
||||||
|
}
|
||||||
New-ConfigurationModule -Type RequiredModule -Name 'PSWriteColor', 'PSSharedGoods', 'ADEssentials' -Guid Auto -Version Latest -VersionSource PSGallery
|
New-ConfigurationManifest @Manifest
|
||||||
New-ConfigurationModule -Type RequiredModule -Name "PSWriteHTML" -Guid Auto -Version Latest -VersionSource PSGallery
|
|
||||||
#New-ConfigurationModule -Type ExternalModule -Name 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management','Microsoft.PowerShell.Security'
|
New-ConfigurationModule -Type RequiredModule -Name 'PSWriteColor', 'PSSharedGoods', 'ADEssentials', 'PSWriteHTML' -Guid Auto -Version Latest
|
||||||
New-ConfigurationModule -Type ApprovedModule -Name 'PSSharedGoods', 'PSWriteColor', 'Connectimo', 'PSUnifi', 'PSWebToolbox', 'PSMyPassword', 'ADEssentials'
|
#New-ConfigurationModule -Type ExternalModule -Name 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management','Microsoft.PowerShell.Security'
|
||||||
New-ConfigurationModuleSkip -IgnoreModuleName @(
|
New-ConfigurationModule -Type ApprovedModule -Name 'PSSharedGoods', 'PSWriteColor', 'Connectimo', 'PSUnifi', 'PSWebToolbox', 'PSMyPassword', 'ADEssentials'
|
||||||
# this are builtin into PowerShell, so not critical
|
|
||||||
'powershellget'
|
New-ConfigurationModule -Type ExternalModule -Name @(
|
||||||
'GroupPolicy'
|
"CimCmdlets"
|
||||||
'ScheduledTasks'
|
'Microsoft.PowerShell.Management'
|
||||||
'ActiveDirectory'
|
'Microsoft.PowerShell.Utility'
|
||||||
'Microsoft.WSMan.Management'
|
'Microsoft.PowerShell.Security'
|
||||||
'NetConnection'
|
)
|
||||||
'NetSecurity'
|
|
||||||
'NetTCPIP'
|
New-ConfigurationModuleSkip -IgnoreModuleName @(
|
||||||
'CimCmdlets'
|
# this are builtin into PowerShell, so not critical
|
||||||
) -IgnoreFunctionName @(
|
'powershellget'
|
||||||
'Select-Unique'
|
'GroupPolicy'
|
||||||
)
|
'ScheduledTasks'
|
||||||
|
'ActiveDirectory'
|
||||||
New-ConfigurationCommand -ModuleName 'ActiveDirectory' -CommandName @(
|
'Microsoft.WSMan.Management'
|
||||||
'Add-GPOPermission'
|
'NetConnection'
|
||||||
'Add-GPOZaurrPermission'
|
'NetSecurity'
|
||||||
'Backup-GPOZaurr'
|
'NetTCPIP'
|
||||||
'Clear-GPOZaurrSysvolDFSR'
|
) -IgnoreFunctionName @(
|
||||||
'ConvertFrom-CSExtension'
|
'Select-Unique'
|
||||||
'Find-CSExtension'
|
)
|
||||||
'Get-GPOZaurr'
|
|
||||||
'Get-GPOZaurrAD'
|
New-ConfigurationCommand -ModuleName 'ActiveDirectory' -CommandName @(
|
||||||
'Get-GPOZaurrBackupInformation'
|
'Add-GPOPermission'
|
||||||
'Get-GPOZaurrBroken'
|
'Add-GPOZaurrPermission'
|
||||||
'Get-GPOZaurrDictionary'
|
'Backup-GPOZaurr'
|
||||||
'Get-GPOZaurrDuplicateObject'
|
'Clear-GPOZaurrSysvolDFSR'
|
||||||
'Get-GPOZaurrFiles'
|
'ConvertFrom-CSExtension'
|
||||||
'Get-GPOZaurrFilesPolicyDefinition'
|
'Find-CSExtension'
|
||||||
'Get-GPOZaurrFolders'
|
'Get-GPOZaurr'
|
||||||
'Get-GPOZaurrInheritance'
|
'Get-GPOZaurrAD'
|
||||||
'Get-GPOZaurrLegacyFiles'
|
'Get-GPOZaurrBackupInformation'
|
||||||
'Get-GPOZaurrLink'
|
'Get-GPOZaurrBroken'
|
||||||
'Get-GPOZaurrLinkSummary'
|
'Get-GPOZaurrDictionary'
|
||||||
'Get-GPOZaurrNetLogon'
|
'Get-GPOZaurrDuplicateObject'
|
||||||
'Get-GPOZaurrOwner'
|
'Get-GPOZaurrFiles'
|
||||||
'Get-GPOZaurrPassword'
|
'Get-GPOZaurrFilesPolicyDefinition'
|
||||||
'Get-GPOZaurrPermission'
|
'Get-GPOZaurrFolders'
|
||||||
'Get-GPOZaurrPermissionConsistency'
|
'Get-GPOZaurrInheritance'
|
||||||
'Get-GPOZaurrPermissionRoot'
|
'Get-GPOZaurrLegacyFiles'
|
||||||
'Get-GPOZaurrPermissionSummary'
|
'Get-GPOZaurrLink'
|
||||||
'Get-GPOZaurrSysvolDFSR'
|
'Get-GPOZaurrLinkSummary'
|
||||||
'Get-GPOZaurrWMI'
|
'Get-GPOZaurrNetLogon'
|
||||||
'Invoke-GPOZaurr'
|
'Get-GPOZaurrOwner'
|
||||||
#'Invoke-GPOZaurrContent'
|
'Get-GPOZaurrPassword'
|
||||||
'Invoke-GPOZaurrPermission'
|
'Get-GPOZaurrPermission'
|
||||||
'Invoke-GPOZaurrSupport'
|
'Get-GPOZaurrPermissionConsistency'
|
||||||
'New-GPOZaurrWMI'
|
'Get-GPOZaurrPermissionRoot'
|
||||||
'Optimize-GPOZaurr'
|
'Get-GPOZaurrPermissionSummary'
|
||||||
'Remove-GPOPermission'
|
'Get-GPOZaurrSysvolDFSR'
|
||||||
'Remove-GPOZaurr'
|
'Get-GPOZaurrWMI'
|
||||||
'Remove-GPOZaurrBroken'
|
'Invoke-GPOZaurr'
|
||||||
'Remove-GPOZaurrDuplicateObject'
|
#'Invoke-GPOZaurrContent'
|
||||||
'Remove-GPOZaurrFolders'
|
'Invoke-GPOZaurrPermission'
|
||||||
'Remove-GPOZaurrLegacyFiles'
|
'Invoke-GPOZaurrSupport'
|
||||||
'Remove-GPOZaurrPermission'
|
'New-GPOZaurrWMI'
|
||||||
'Remove-GPOZaurrWMI'
|
'Optimize-GPOZaurr'
|
||||||
'Repair-GPOZaurrNetLogonOwner'
|
'Remove-GPOPermission'
|
||||||
'Repair-GPOZaurrPermissionConsistency'
|
'Remove-GPOZaurr'
|
||||||
'Restore-GPOZaurr'
|
'Remove-GPOZaurrBroken'
|
||||||
'Save-GPOZaurrFiles'
|
'Remove-GPOZaurrDuplicateObject'
|
||||||
'Set-GPOOwner'
|
'Remove-GPOZaurrFolders'
|
||||||
'Set-GPOZaurrOwner'
|
'Remove-GPOZaurrLegacyFiles'
|
||||||
'Find-GPO'
|
'Remove-GPOZaurrPermission'
|
||||||
'Get-GPOZaurrFilesPolicyDefinitions'
|
'Remove-GPOZaurrWMI'
|
||||||
'Get-GPOZaurrSysvol'
|
'Repair-GPOZaurrNetLogonOwner'
|
||||||
'Remove-GPOZaurrOrphaned'
|
'Repair-GPOZaurrPermissionConsistency'
|
||||||
'Show-GPO'
|
'Restore-GPOZaurr'
|
||||||
'Show-GPOZaurr'
|
'Save-GPOZaurrFiles'
|
||||||
)
|
'Set-GPOOwner'
|
||||||
New-ConfigurationCommand -ModuleName 'GroupPolicy' -CommandName @(
|
'Set-GPOZaurrOwner'
|
||||||
'Add-GPOPermission'
|
'Find-GPO'
|
||||||
'Add-GPOZaurrPermission'
|
'Get-GPOZaurrFilesPolicyDefinitions'
|
||||||
'Backup-GPOZaurr'
|
'Get-GPOZaurrSysvol'
|
||||||
'Clear-GPOZaurrSysvolDFSR'
|
'Remove-GPOZaurrOrphaned'
|
||||||
'ConvertFrom-CSExtension'
|
'Show-GPO'
|
||||||
'Find-CSExtension'
|
'Show-GPOZaurr'
|
||||||
'Get-GPOZaurr'
|
)
|
||||||
'Get-GPOZaurrAD'
|
New-ConfigurationCommand -ModuleName 'GroupPolicy' -CommandName @(
|
||||||
'Get-GPOZaurrBackupInformation'
|
'Add-GPOPermission'
|
||||||
'Get-GPOZaurrBroken'
|
'Add-GPOZaurrPermission'
|
||||||
'Get-GPOZaurrDictionary'
|
'Backup-GPOZaurr'
|
||||||
'Get-GPOZaurrDuplicateObject'
|
'Clear-GPOZaurrSysvolDFSR'
|
||||||
'Get-GPOZaurrFiles'
|
'ConvertFrom-CSExtension'
|
||||||
'Get-GPOZaurrFilesPolicyDefinition'
|
'Find-CSExtension'
|
||||||
'Get-GPOZaurrFolders'
|
'Get-GPOZaurr'
|
||||||
'Get-GPOZaurrInheritance'
|
'Get-GPOZaurrAD'
|
||||||
'Get-GPOZaurrLegacyFiles'
|
'Get-GPOZaurrBackupInformation'
|
||||||
'Get-GPOZaurrLink'
|
'Get-GPOZaurrBroken'
|
||||||
'Get-GPOZaurrLinkSummary'
|
'Get-GPOZaurrDictionary'
|
||||||
'Get-GPOZaurrNetLogon'
|
'Get-GPOZaurrDuplicateObject'
|
||||||
'Get-GPOZaurrOwner'
|
'Get-GPOZaurrFiles'
|
||||||
'Get-GPOZaurrPassword'
|
'Get-GPOZaurrFilesPolicyDefinition'
|
||||||
'Get-GPOZaurrPermission'
|
'Get-GPOZaurrFolders'
|
||||||
'Get-GPOZaurrPermissionConsistency'
|
'Get-GPOZaurrInheritance'
|
||||||
'Get-GPOZaurrPermissionRoot'
|
'Get-GPOZaurrLegacyFiles'
|
||||||
'Get-GPOZaurrPermissionSummary'
|
'Get-GPOZaurrLink'
|
||||||
'Get-GPOZaurrSysvolDFSR'
|
'Get-GPOZaurrLinkSummary'
|
||||||
'Get-GPOZaurrWMI'
|
'Get-GPOZaurrNetLogon'
|
||||||
'Invoke-GPOZaurr'
|
'Get-GPOZaurrOwner'
|
||||||
#'Invoke-GPOZaurrContent'
|
'Get-GPOZaurrPassword'
|
||||||
'Invoke-GPOZaurrPermission'
|
'Get-GPOZaurrPermission'
|
||||||
'Invoke-GPOZaurrSupport'
|
'Get-GPOZaurrPermissionConsistency'
|
||||||
'New-GPOZaurrWMI'
|
'Get-GPOZaurrPermissionRoot'
|
||||||
'Optimize-GPOZaurr'
|
'Get-GPOZaurrPermissionSummary'
|
||||||
'Remove-GPOPermission'
|
'Get-GPOZaurrSysvolDFSR'
|
||||||
'Remove-GPOZaurr'
|
'Get-GPOZaurrWMI'
|
||||||
'Remove-GPOZaurrBroken'
|
'Invoke-GPOZaurr'
|
||||||
'Remove-GPOZaurrDuplicateObject'
|
#'Invoke-GPOZaurrContent'
|
||||||
'Remove-GPOZaurrFolders'
|
'Invoke-GPOZaurrPermission'
|
||||||
'Remove-GPOZaurrLegacyFiles'
|
'Invoke-GPOZaurrSupport'
|
||||||
'Remove-GPOZaurrPermission'
|
'New-GPOZaurrWMI'
|
||||||
'Remove-GPOZaurrWMI'
|
'Optimize-GPOZaurr'
|
||||||
'Repair-GPOZaurrNetLogonOwner'
|
'Remove-GPOPermission'
|
||||||
'Repair-GPOZaurrPermissionConsistency'
|
'Remove-GPOZaurr'
|
||||||
'Restore-GPOZaurr'
|
'Remove-GPOZaurrBroken'
|
||||||
'Save-GPOZaurrFiles'
|
'Remove-GPOZaurrDuplicateObject'
|
||||||
'Set-GPOOwner'
|
'Remove-GPOZaurrFolders'
|
||||||
'Set-GPOZaurrOwner'
|
'Remove-GPOZaurrLegacyFiles'
|
||||||
'Find-GPO'
|
'Remove-GPOZaurrPermission'
|
||||||
'Get-GPOZaurrFilesPolicyDefinitions'
|
'Remove-GPOZaurrWMI'
|
||||||
'Get-GPOZaurrSysvol'
|
'Repair-GPOZaurrNetLogonOwner'
|
||||||
'Remove-GPOZaurrOrphaned'
|
'Repair-GPOZaurrPermissionConsistency'
|
||||||
'Show-GPO'
|
'Restore-GPOZaurr'
|
||||||
'Show-GPOZaurr'
|
'Save-GPOZaurrFiles'
|
||||||
)
|
'Set-GPOOwner'
|
||||||
|
'Set-GPOZaurrOwner'
|
||||||
|
'Find-GPO'
|
||||||
$ConfigurationFormat = [ordered] @{
|
'Get-GPOZaurrFilesPolicyDefinitions'
|
||||||
RemoveComments = $true
|
'Get-GPOZaurrSysvol'
|
||||||
RemoveEmptyLines = $true
|
'Remove-GPOZaurrOrphaned'
|
||||||
|
'Show-GPO'
|
||||||
PlaceOpenBraceEnable = $true
|
'Show-GPOZaurr'
|
||||||
PlaceOpenBraceOnSameLine = $true
|
)
|
||||||
PlaceOpenBraceNewLineAfter = $true
|
|
||||||
PlaceOpenBraceIgnoreOneLineBlock = $false
|
|
||||||
|
$ConfigurationFormat = [ordered] @{
|
||||||
PlaceCloseBraceEnable = $true
|
RemoveComments = $true
|
||||||
PlaceCloseBraceNewLineAfter = $true
|
RemoveEmptyLines = $true
|
||||||
PlaceCloseBraceIgnoreOneLineBlock = $false
|
|
||||||
PlaceCloseBraceNoEmptyLineBefore = $true
|
PlaceOpenBraceEnable = $true
|
||||||
|
PlaceOpenBraceOnSameLine = $true
|
||||||
UseConsistentIndentationEnable = $true
|
PlaceOpenBraceNewLineAfter = $true
|
||||||
UseConsistentIndentationKind = 'space'
|
PlaceOpenBraceIgnoreOneLineBlock = $false
|
||||||
UseConsistentIndentationPipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
|
|
||||||
UseConsistentIndentationIndentationSize = 4
|
PlaceCloseBraceEnable = $true
|
||||||
|
PlaceCloseBraceNewLineAfter = $true
|
||||||
UseConsistentWhitespaceEnable = $true
|
PlaceCloseBraceIgnoreOneLineBlock = $false
|
||||||
UseConsistentWhitespaceCheckInnerBrace = $true
|
PlaceCloseBraceNoEmptyLineBefore = $true
|
||||||
UseConsistentWhitespaceCheckOpenBrace = $true
|
|
||||||
UseConsistentWhitespaceCheckOpenParen = $true
|
UseConsistentIndentationEnable = $true
|
||||||
UseConsistentWhitespaceCheckOperator = $true
|
UseConsistentIndentationKind = 'space'
|
||||||
UseConsistentWhitespaceCheckPipe = $true
|
UseConsistentIndentationPipelineIndentation = 'IncreaseIndentationAfterEveryPipeline'
|
||||||
UseConsistentWhitespaceCheckSeparator = $true
|
UseConsistentIndentationIndentationSize = 4
|
||||||
|
|
||||||
AlignAssignmentStatementEnable = $true
|
UseConsistentWhitespaceEnable = $true
|
||||||
AlignAssignmentStatementCheckHashtable = $true
|
UseConsistentWhitespaceCheckInnerBrace = $true
|
||||||
|
UseConsistentWhitespaceCheckOpenBrace = $true
|
||||||
UseCorrectCasingEnable = $true
|
UseConsistentWhitespaceCheckOpenParen = $true
|
||||||
}
|
UseConsistentWhitespaceCheckOperator = $true
|
||||||
# format PSD1 and PSM1 files when merging into a single file
|
UseConsistentWhitespaceCheckPipe = $true
|
||||||
# enable formatting is not required as Configuration is provided
|
UseConsistentWhitespaceCheckSeparator = $true
|
||||||
New-ConfigurationFormat -ApplyTo 'OnMergePSM1', 'OnMergePSD1' -Sort None @ConfigurationFormat
|
|
||||||
# format PSD1 and PSM1 files within the module
|
AlignAssignmentStatementEnable = $true
|
||||||
# enable formatting is required to make sure that formatting is applied (with default settings)
|
AlignAssignmentStatementCheckHashtable = $true
|
||||||
New-ConfigurationFormat -ApplyTo 'DefaultPSD1', 'DefaultPSM1' -EnableFormatting -Sort None
|
|
||||||
# when creating PSD1 use special style without comments and with only required parameters
|
UseCorrectCasingEnable = $true
|
||||||
New-ConfigurationFormat -ApplyTo 'DefaultPSD1', 'OnMergePSD1' -PSD1Style 'Minimal'
|
}
|
||||||
# configuration for documentation, at the same time it enables documentation processing
|
# format PSD1 and PSM1 files when merging into a single file
|
||||||
New-ConfigurationDocumentation -Enable:$true -StartClean -UpdateWhenNew -SyncExternalHelpToProjectRoot -PathReadme 'Docs\Readme.md' -Path 'Docs'
|
# enable formatting is not required as Configuration is provided
|
||||||
|
New-ConfigurationFormat -ApplyTo 'OnMergePSM1', 'OnMergePSD1' -Sort None @ConfigurationFormat
|
||||||
#New-ConfigurationImportModule -ImportSelf
|
# format PSD1 and PSM1 files within the module
|
||||||
|
# enable formatting is required to make sure that formatting is applied (with default settings)
|
||||||
New-ConfigurationBuild -Enable:$true -SignModule -MergeModuleOnBuild -MergeFunctionsFromApprovedModules -CertificateThumbprint '483292C9E317AA13B07BB7A96AE9D1A5ED9E7703'
|
New-ConfigurationFormat -ApplyTo 'DefaultPSD1', 'DefaultPSM1' -EnableFormatting -Sort None
|
||||||
|
# when creating PSD1 use special style without comments and with only required parameters
|
||||||
# New-ConfigurationTest -TestsPath "$PSScriptRoot\..\Tests" -Enable
|
New-ConfigurationFormat -ApplyTo 'DefaultPSD1', 'OnMergePSD1' -PSD1Style 'Minimal'
|
||||||
|
# configuration for documentation, at the same time it enables documentation processing
|
||||||
New-ConfigurationArtefact -Type Unpacked -Enable -Path "$PSScriptRoot\..\Artefacts\Unpacked" -AddRequiredModules
|
New-ConfigurationDocumentation -Enable:$false -StartClean -UpdateWhenNew -PathReadme 'Docs\Readme.md' -Path 'Docs'
|
||||||
New-ConfigurationArtefact -Type Packed -Enable -Path "$PSScriptRoot\..\Artefacts\Packed" -ArtefactName '<ModuleName>.v<ModuleVersion>.zip' -AddRequiredModules
|
|
||||||
|
New-ConfigurationImportModule -ImportSelf
|
||||||
# options for publishing to github/psgallery
|
|
||||||
|
New-ConfigurationBuild -Enable:$true -SignModule -MergeModuleOnBuild -MergeFunctionsFromApprovedModules -CertificateThumbprint '483292C9E317AA13B07BB7A96AE9D1A5ED9E7703'
|
||||||
#New-ConfigurationPublish -Type PowerShellGallery -FilePath 'C:\Support\Important\PowerShellGalleryAPI.txt' -Enabled:$true -UseAsDependencyVersionSource
|
|
||||||
#New-ConfigurationPublish -Type GitHub -FilePath 'C:\Support\Important\GitHubAPI.txt' -UserName 'EvotecIT' -Enabled:$true -GenerateReleaseNotes
|
# New-ConfigurationTest -TestsPath "$PSScriptRoot\..\Tests" -Enable
|
||||||
|
|
||||||
} -ExitCode
|
New-ConfigurationArtefact -Type Unpacked -Enable -Path "$PSScriptRoot\..\Artefacts\Unpacked" -AddRequiredModules
|
||||||
|
New-ConfigurationArtefact -Type Packed -Enable -Path "$PSScriptRoot\..\Artefacts\Packed" -ArtefactName '<ModuleName>.v<ModuleVersion>.zip' -AddRequiredModules
|
||||||
|
|
||||||
|
# options for publishing to github/psgallery
|
||||||
|
#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
|
||||||
|
} -ExitCode
|
||||||
@@ -1,15 +1,5 @@
|
|||||||
# GPOZaurr Release History
|
# GPOZaurr Release History
|
||||||
|
|
||||||
## Unreleased
|
|
||||||
- Fix `WindowsDefender` content detection for newer ADMX categories by supporting both:
|
|
||||||
- `Windows Components/Windows Defender*`
|
|
||||||
- `Windows Components/Microsoft Defender Antivirus*`
|
|
||||||
- Fix `WindowsDefenderExploitGuard` detection for legacy/new category naming variants.
|
|
||||||
- Add Defender registry fallback parsing (`SOFTWARE\Microsoft\Windows Defender*`) so Defender settings that land in `RegistrySettings` are still surfaced in `WindowsDefender` report output. [#81](https://github.com/EvotecIT/GPOZaurr/issues/81)
|
|
||||||
|
|
||||||
## 1.1.9 - 2024.12.02
|
|
||||||
- Fixes `Invoke-GPOZaurr` when using SplitReports without path [#58](https://github.com/EvotecIT/GPOZaurr/issues/58)
|
|
||||||
|
|
||||||
## 1.1.8 - 2024.11.20
|
## 1.1.8 - 2024.11.20
|
||||||
### What's new
|
### What's new
|
||||||
- Added `RestrictedGroups` to GroupAnalysis
|
- Added `RestrictedGroups` to GroupAnalysis
|
||||||
|
|||||||
+125
-42
@@ -1,42 +1,125 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Add-GPOPermission
|
|
||||||
## SYNOPSIS
|
# Add-GPOPermission
|
||||||
{{ Fill in the Synopsis }}
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
```powershell
|
|
||||||
Add-GPOPermission
|
## SYNTAX
|
||||||
```
|
|
||||||
|
```
|
||||||
## DESCRIPTION
|
Add-GPOPermission [[-Type] <String>] [[-IncludePermissionType] <GPPermissionType>] [[-Principal] <String>]
|
||||||
{{ Fill in the Description }}
|
[[-PrincipalType] <String>] [[-PermitType] <String>] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
Add-GPOPermission
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
## PARAMETERS
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
### 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).
|
{{ Add example description here }}
|
||||||
|
|
||||||
## INPUTS
|
## PARAMETERS
|
||||||
|
|
||||||
- `None`
|
### -IncludePermissionType
|
||||||
|
{{ Fill IncludePermissionType Description }}
|
||||||
## OUTPUTS
|
|
||||||
|
```yaml
|
||||||
- `None`
|
Type: GPPermissionType
|
||||||
|
Parameter Sets: (All)
|
||||||
## RELATED LINKS
|
Aliases:
|
||||||
|
Accepted values: None, GpoApply, GpoRead, GpoEdit, GpoEditDeleteModifySecurity, GpoCustom, WmiFilterEdit, WmiFilterFullControl, WmiFilterCustom, StarterGpoRead, StarterGpoEdit, StarterGpoFullControl, StarterGpoCustom, SomCreateWmiFilter, SomWmiFilterFullControl, SomCreateGpo, SomCreateStarterGpo, SomLogging, SomPlanning, SomLink
|
||||||
- None
|
|
||||||
|
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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+348
-42
@@ -1,42 +1,348 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Add-GPOZaurrPermission
|
|
||||||
## SYNOPSIS
|
# Add-GPOZaurrPermission
|
||||||
{{ Fill in the Synopsis }}
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
```powershell
|
|
||||||
Add-GPOZaurrPermission
|
## SYNTAX
|
||||||
```
|
|
||||||
|
### GPOName (Default)
|
||||||
## DESCRIPTION
|
```
|
||||||
{{ Fill in the Description }}
|
Add-GPOZaurrPermission -GPOName <String> [-Type <String>] [-Principal <String>] [-PrincipalType <String>]
|
||||||
|
-PermissionType <GPPermissionType> [-Inheritable] [-PermitType <String>] [-Forest <String>]
|
||||||
## EXAMPLES
|
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
|
[-ADAdministrativeGroups <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
### EXAMPLE 1
|
```
|
||||||
```powershell
|
|
||||||
Add-GPOZaurrPermission
|
### GPOGUID
|
||||||
```
|
```
|
||||||
|
Add-GPOZaurrPermission -GPOGuid <String> [-Type <String>] [-Principal <String>] [-PrincipalType <String>]
|
||||||
|
-PermissionType <GPPermissionType> [-Inheritable] [-PermitType <String>] [-Forest <String>]
|
||||||
## PARAMETERS
|
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
|
[-ADAdministrativeGroups <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
### 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).
|
|
||||||
|
### All
|
||||||
## INPUTS
|
```
|
||||||
|
Add-GPOZaurrPermission [-All] [-Type <String>] [-Principal <String>] [-PrincipalType <String>]
|
||||||
- `None`
|
-PermissionType <GPPermissionType> [-Inheritable] [-PermitType <String>] [-Forest <String>]
|
||||||
|
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
## OUTPUTS
|
[-ADAdministrativeGroups <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
- `None`
|
|
||||||
|
### ADObject
|
||||||
## RELATED LINKS
|
```
|
||||||
|
Add-GPOZaurrPermission -ADObject <ADObject[]> [-Type <String>] [-Principal <String>] [-PrincipalType <String>]
|
||||||
- None
|
-PermissionType <GPPermissionType> [-Inheritable] [-PermitType <String>] [-Forest <String>]
|
||||||
|
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
|
[-ADAdministrativeGroups <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
|
{{ 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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+205
-179
@@ -1,179 +1,205 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Backup-GPOZaurr
|
|
||||||
## SYNOPSIS
|
# Backup-GPOZaurr
|
||||||
Provides Backup functionality to Group Policies
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Provides Backup functionality to Group Policies
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Backup-GPOZaurr [[-LimitProcessing] <int>] [[-Type] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-BackupPath] <string>] [-BackupDated] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Backup-GPOZaurr [[-LimitProcessing] <Int32>] [[-Type] <String[]>] [[-Forest] <String>]
|
||||||
## DESCRIPTION
|
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
|
||||||
Provides Backup functionality to Group Policies
|
[[-BackupPath] <String>] [-BackupDated] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
Provides Backup functionality to Group Policies
|
||||||
```powershell
|
|
||||||
PS > $GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All
|
## EXAMPLES
|
||||||
$GPOSummary | Format-Table # only if you want to display output of backup
|
|
||||||
```
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
|
$GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All
|
||||||
### EXAMPLE 2
|
```
|
||||||
```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
|
|
||||||
```
|
### EXAMPLE 2
|
||||||
|
```
|
||||||
|
$GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All -BackupDated
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -BackupDated
|
$GPOSummary | Format-Table # only if you want to display output of backup
|
||||||
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
|
|
||||||
|
## PARAMETERS
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
### -LimitProcessing
|
||||||
Parameter Sets: __AllParameterSets
|
Limits amount of GPOs that are backed up
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: Int32
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: named
|
Aliases:
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 1
|
||||||
```
|
Default value: 0
|
||||||
|
Accept pipeline input: False
|
||||||
### -BackupPath
|
Accept wildcard characters: False
|
||||||
Path where to keep the backup
|
```
|
||||||
|
|
||||||
```yaml
|
### -Type
|
||||||
Type: String
|
Provides a way to backup only Empty or Unlinked GPOs.
|
||||||
Parameter Sets: __AllParameterSets
|
The default is All.
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String[]
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 6
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 2
|
||||||
```
|
Default value: All
|
||||||
|
Accept pipeline input: False
|
||||||
### -ExcludeDomains
|
Accept wildcard characters: False
|
||||||
Exclude domain from search, by default whole forest is scanned
|
```
|
||||||
|
|
||||||
```yaml
|
### -Forest
|
||||||
Type: String[]
|
Target different Forest, by default current forest is used
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: ForestName
|
||||||
Position: 3
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 3
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 5
|
Required: False
|
||||||
Default value: None
|
Position: 4
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Target different Forest, by default current forest is used
|
### -IncludeDomains
|
||||||
|
Include only specific domains, by default whole forest is scanned
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 2
|
Position: 5
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -ExtendedForestInformation
|
||||||
Include only specific domains, by default whole forest is scanned
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: IDictionary
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 6
|
||||||
Position: 4
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -BackupPath
|
||||||
### -LimitProcessing
|
Path where to keep the backup
|
||||||
Limits amount of GPOs that are backed up
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String
|
||||||
Type: Int32
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 7
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 0
|
Accept pipeline input: False
|
||||||
Default value: 0
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -BackupDated
|
||||||
|
Whether cmdlet should created Dated folders for executed backup or not.
|
||||||
### -Type
|
Keep in mind it's not nessecary and two backups made to same folder have their dates properly tagged
|
||||||
Provides a way to backup only Empty or Unlinked GPOs. The default is All.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: SwitchParameter
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values: Empty, Unlinked, Disabled, All
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: False
|
||||||
Position: 1
|
Accept pipeline input: False
|
||||||
Default value: All
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -WhatIf
|
||||||
|
Shows what would happen if the cmdlet runs.
|
||||||
### CommonParameters
|
The cmdlet is not run.
|
||||||
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).
|
|
||||||
|
```yaml
|
||||||
## INPUTS
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
- `None`
|
Aliases: wi
|
||||||
|
|
||||||
## OUTPUTS
|
Required: False
|
||||||
|
Position: Named
|
||||||
- `None`
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
## RELATED LINKS
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
- None
|
|
||||||
|
### -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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
## NOTES
|
||||||
|
General notes
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+199
-179
@@ -1,179 +1,199 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Clear-GPOZaurrSysvolDFSR
|
|
||||||
## SYNOPSIS
|
# Clear-GPOZaurrSysvolDFSR
|
||||||
Clears the ConflictAndDeleted folder in DFSR for specified GPOs.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Clear-GPOZaurrSysvolDFSR [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-ExcludeDomainControllers] <string[]>] [[-IncludeDomains] <string[]>] [[-IncludeDomainControllers] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <int>] [-SkipRODC] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Clear-GPOZaurrSysvolDFSR [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExcludeDomainControllers] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
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.
|
[[-IncludeDomainControllers] <String[]>] [-SkipRODC] [[-ExtendedForestInformation] <IDictionary>]
|
||||||
|
[[-LimitProcessing] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
## EXAMPLES
|
```
|
||||||
|
|
||||||
### EXAMPLE 1
|
## DESCRIPTION
|
||||||
```powershell
|
{{ Fill in the Description }}
|
||||||
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.
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
### EXAMPLE 2
|
PS C:\> {{ Add example code here }}
|
||||||
```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
|
||||||
|
|
||||||
## PARAMETERS
|
### -Confirm
|
||||||
|
Prompts you for confirmation before running the cmdlet.
|
||||||
### -ExcludeDomainControllers
|
|
||||||
Specifies an array of domain controllers to exclude from the cleanup process.
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String[]
|
Aliases: cf
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 2
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -ExcludeDomainControllers
|
||||||
```
|
{{ Fill ExcludeDomainControllers Description }}
|
||||||
|
|
||||||
### -ExcludeDomains
|
```yaml
|
||||||
Specifies an array of domains to exclude from the cleanup process.
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: 2
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 1
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -ExcludeDomains
|
||||||
Accept wildcard characters: True
|
{{ Fill ExcludeDomains Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -ExtendedForestInformation
|
Type: String[]
|
||||||
Specifies additional forest information if needed.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: IDictionary
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 1
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 5
|
|
||||||
Default value: None
|
### -ExtendedForestInformation
|
||||||
Accept pipeline input: False
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: IDictionary
|
||||||
### -Forest
|
Parameter Sets: (All)
|
||||||
Specifies the forest name where the GPOs are located.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: String
|
Position: 5
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases: ForestName
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 0
|
### -Forest
|
||||||
Default value: None
|
{{ Fill Forest Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
### -IncludeDomainControllers
|
Aliases: ForestName
|
||||||
Specifies an array of domain controllers to include in the cleanup process.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 0
|
||||||
Type: String[]
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases: DomainControllers
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -IncludeDomainControllers
|
||||||
Position: 4
|
{{ Fill IncludeDomainControllers Description }}
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: String[]
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases: DomainControllers
|
||||||
### -IncludeDomains
|
|
||||||
Specifies an array of domains to include in the cleanup process.
|
Required: False
|
||||||
|
Position: 4
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String[]
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases: Domain, Domains
|
```
|
||||||
Possible values:
|
|
||||||
|
### -IncludeDomains
|
||||||
Required: False
|
{{ Fill IncludeDomains Description }}
|
||||||
Position: 3
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String[]
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
### -LimitProcessing
|
Required: False
|
||||||
Specifies the maximum number of GPOs to process.
|
Position: 3
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: Int32
|
Accept wildcard characters: False
|
||||||
Parameter Sets: __AllParameterSets
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -LimitProcessing
|
||||||
|
{{ Fill LimitProcessing Description }}
|
||||||
Required: False
|
|
||||||
Position: 6
|
```yaml
|
||||||
Default value: 2147483647
|
Type: Int32
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -SkipRODC
|
Position: 6
|
||||||
Indicates whether Read-Only Domain Controllers (RODCs) should be skipped during cleanup.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: SwitchParameter
|
```
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
### -SkipRODC
|
||||||
Possible values:
|
{{ Fill SkipRODC Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: SwitchParameter
|
||||||
Default value: False
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### CommonParameters
|
Default value: None
|
||||||
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).
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
## INPUTS
|
```
|
||||||
|
|
||||||
- `None`
|
### -WhatIf
|
||||||
|
Shows what would happen if the cmdlet runs.
|
||||||
## OUTPUTS
|
The cmdlet is not run.
|
||||||
|
|
||||||
- `None`
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
## RELATED LINKS
|
Parameter Sets: (All)
|
||||||
|
Aliases: wi
|
||||||
- None
|
|
||||||
|
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
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
@@ -1,83 +1,75 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# ConvertFrom-CSExtension
|
|
||||||
## SYNOPSIS
|
# ConvertFrom-CSExtension
|
||||||
Converts Client-side Extension (CSE) GUIDs to their corresponding names.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
ConvertFrom-CSExtension [[-CSE] <string[]>] [-Limited] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
ConvertFrom-CSExtension [[-CSE] <String[]>] [-Limited] [<CommonParameters>]
|
||||||
## 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.
|
|
||||||
|
## DESCRIPTION
|
||||||
## EXAMPLES
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
### EXAMPLE 1
|
## EXAMPLES
|
||||||
```powershell
|
|
||||||
PS > ConvertFrom-CSExtension -CSE '{35378EAC-683F-11D2-A89A-00C04FBBCFA2}', '{0F6B957E-509E-11D1-A7CC-0000F87571E3}' -Limited
|
### Example 1
|
||||||
Converts the specified CSE GUIDs to their corresponding names, limited to a predefined set.
|
```powershell
|
||||||
```
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
### EXAMPLE 2
|
{{ Add example description here }}
|
||||||
```powershell
|
|
||||||
PS > ConvertFrom-CSExtension -CSE '{D02B1F73-3407-48AE-BA88-E8213C6761F1}', '{0ACDD40C-75AC-47ab-BAA0-BF6DE7E7FE63}'
|
## PARAMETERS
|
||||||
Converts the specified CSE GUIDs to their corresponding names without any limitations.
|
|
||||||
```
|
### -CSE
|
||||||
|
{{ Fill CSE Description }}
|
||||||
|
|
||||||
## PARAMETERS
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -CSE
|
Parameter Sets: (All)
|
||||||
Specifies an array of Client-side Extension (CSE) GUIDs to be converted to names.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: String[]
|
Position: 0
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 0
|
### -Limited
|
||||||
Default value: None
|
{{ Fill Limited Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
### -Limited
|
Aliases:
|
||||||
Indicates whether the conversion should be limited to a predefined set of CSE GUIDs.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: Named
|
||||||
Type: SwitchParameter
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### CommonParameters
|
||||||
Position: named
|
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).
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
## INPUTS
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### None
|
||||||
|
|
||||||
### CommonParameters
|
## OUTPUTS
|
||||||
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).
|
|
||||||
|
### System.Object
|
||||||
## INPUTS
|
## NOTES
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
@@ -1,76 +1,73 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Export-GPOZaurrContent
|
|
||||||
## SYNOPSIS
|
# Export-GPOZaurrContent
|
||||||
Exports Group Policy Objects (GPOs) to XML or HTML files.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Saves GPOs to XML or HTML files.
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Export-GPOZaurrContent [-FolderOutput] <string> [[-ReportType] <string>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Export-GPOZaurrContent [-FolderOutput] <String> [[-ReportType] <String>] [<CommonParameters>]
|
||||||
## DESCRIPTION
|
```
|
||||||
This function exports GPOs to either XML or HTML files based on the specified parameters.
|
|
||||||
|
## DESCRIPTION
|
||||||
## EXAMPLES
|
Saves GPOs to XML or HTML files.
|
||||||
|
|
||||||
### EXAMPLE 1
|
## EXAMPLES
|
||||||
```powershell
|
|
||||||
PS > Export-GPOZaurrContent -FolderOutput "C:\ExportedGPOs" -ReportType HTML
|
### EXAMPLE 1
|
||||||
Exports all GPOs to HTML format and saves them in the "C:\ExportedGPOs" folder.
|
```
|
||||||
```
|
An example
|
||||||
|
```
|
||||||
|
|
||||||
## PARAMETERS
|
## PARAMETERS
|
||||||
|
|
||||||
### -FolderOutput
|
### -FolderOutput
|
||||||
Specifies the folder path where the exported GPO files will be saved.
|
The folder where the GPOs will be saved.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Path
|
Aliases: Path
|
||||||
Possible values:
|
|
||||||
|
Required: True
|
||||||
Required: True
|
Position: 1
|
||||||
Position: 0
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -ReportType
|
||||||
### -ReportType
|
The type of report to generate.
|
||||||
Specifies the type of report to generate. Valid values are XML or HTML. The default value is XML.
|
Valid values are XML or HTML.
|
||||||
|
Default is XML.
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values: XML, HTML
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 2
|
||||||
Default value: XML
|
Default value: XML
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### CommonParameters
|
### 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).
|
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
|
## INPUTS
|
||||||
|
|
||||||
- `None`
|
## OUTPUTS
|
||||||
|
|
||||||
## OUTPUTS
|
## NOTES
|
||||||
|
General notes
|
||||||
- `None`
|
|
||||||
|
## RELATED LINKS
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+75
-83
@@ -1,83 +1,75 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Find-CSExtension
|
|
||||||
## SYNOPSIS
|
# Find-CSExtension
|
||||||
This function retrieves Group Policy Client Side Extensions (CSEs) from a specified Windows computer.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Find-CSExtension [[-CSE] <string[]>] [[-ComputerName] <string>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Find-CSExtension [[-CSE] <String[]>] [[-ComputerName] <String>] [<CommonParameters>]
|
||||||
## 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.
|
|
||||||
|
## DESCRIPTION
|
||||||
## EXAMPLES
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
### EXAMPLE 1
|
## EXAMPLES
|
||||||
```powershell
|
|
||||||
PS > Find-CSExtension -ComputerName "Computer01"
|
### Example 1
|
||||||
Retrieves all CSEs configured on the computer named "Computer01".
|
```powershell
|
||||||
```
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
### EXAMPLE 2
|
{{ Add example description here }}
|
||||||
```powershell
|
|
||||||
PS > Find-CSExtension -CSE "CSE1", "CSE2" -ComputerName "Computer02"
|
## PARAMETERS
|
||||||
Retrieves information about CSEs named "CSE1" and "CSE2" on the computer named "Computer02".
|
|
||||||
```
|
### -CSE
|
||||||
|
{{ Fill CSE Description }}
|
||||||
|
|
||||||
## PARAMETERS
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -ComputerName
|
Parameter Sets: (All)
|
||||||
Specifies the name of the computer from which to retrieve the CSE information.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: String
|
Position: 0
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 1
|
### -ComputerName
|
||||||
Default value: None
|
{{ Fill ComputerName Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
### -CSE
|
Aliases:
|
||||||
Specifies an array of CSE names to filter the results. If not provided, all CSEs will be listed.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 1
|
||||||
Type: String[]
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### CommonParameters
|
||||||
Position: 0
|
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).
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
## INPUTS
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### None
|
||||||
|
|
||||||
### CommonParameters
|
## OUTPUTS
|
||||||
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).
|
|
||||||
|
### System.Object
|
||||||
## INPUTS
|
## NOTES
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+265
-272
@@ -1,272 +1,265 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurr
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurr
|
||||||
Gets information about all Group Policies. Similar to what Get-GPO provides by default.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Gets information about all Group Policies.
|
||||||
### __AllParameterSets
|
Similar to what Get-GPO provides by default.
|
||||||
```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>]
|
## SYNTAX
|
||||||
```
|
|
||||||
|
```
|
||||||
## DESCRIPTION
|
Get-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] [[-GPOName] <String>] [[-GPOGuid] <String>]
|
||||||
Gets information about all Group Policies. Similar to what Get-GPO provides by default.
|
[[-Type] <String[]>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
|
[[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <String[]>] [-PermissionsOnly] [-OwnerOnly]
|
||||||
## EXAMPLES
|
[-Limited] [[-ADAdministrativeGroups] <IDictionary>] [<CommonParameters>]
|
||||||
|
```
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## DESCRIPTION
|
||||||
PS > $GPOs = Get-GPOZaurr
|
Gets information about all Group Policies.
|
||||||
$GPOs | Format-Table DisplayName, Owner, OwnerSID, OwnerType
|
Similar to what Get-GPO provides by default.
|
||||||
```
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
### EXAMPLE 2
|
### EXAMPLE 1
|
||||||
```powershell
|
```
|
||||||
PS > $GPO = Get-GPOZaurr -GPOName 'ALL | Allow use of biometrics'
|
$GPOs = Get-GPOZaurr
|
||||||
$GPO | Format-List *
|
```
|
||||||
```
|
|
||||||
|
$GPOs | Format-Table DisplayName, Owner, OwnerSID, OwnerType
|
||||||
|
|
||||||
### EXAMPLE 3
|
### EXAMPLE 2
|
||||||
```powershell
|
```
|
||||||
PS > $GPOS = Get-GPOZaurr -ExcludeGroupPolicies {
|
$GPO = Get-GPOZaurr -GPOName 'ALL | Allow use of biometrics'
|
||||||
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'
|
$GPO | Format-List *
|
||||||
'{D39BF08A-87BF-4662-BFA0-E56240EBD5A2}'
|
|
||||||
'COMPUTERS | Enable Sets'
|
### EXAMPLE 3
|
||||||
}
|
```
|
||||||
$GPOS | Format-Table -AutoSize *
|
$GPOS = Get-GPOZaurr -ExcludeGroupPolicies {
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Skip-GroupPolicy -Name 'de14_usr_std'
|
||||||
## PARAMETERS
|
Skip-GroupPolicy -Name 'de14_usr_std' -DomaiName 'ad.evotec.xyz'
|
||||||
|
Skip-GroupPolicy -Name 'All | Trusted Websites' #-DomaiName 'ad.evotec.xyz'
|
||||||
### -ADAdministrativeGroups
|
'{D39BF08A-87BF-4662-BFA0-E56240EBD5A2}'
|
||||||
Ability to provide ADAdministrativeGroups from different function to speed up processing
|
'COMPUTERS | Enable Sets'
|
||||||
|
}
|
||||||
```yaml
|
$GPOS | Format-Table -AutoSize *
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
## PARAMETERS
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -ExcludeGroupPolicies
|
||||||
|
Marks the GPO as excluded from the list.
|
||||||
Required: False
|
|
||||||
Position: 9
|
```yaml
|
||||||
Default value: None
|
Type: ScriptBlock
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -ExcludeDomains
|
Position: 1
|
||||||
Exclude domain from search, by default whole forest is scanned
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: String[]
|
```
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
### -GPOName
|
||||||
Possible values:
|
Provide a GPOName to get information about a specific GPO.
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: 5
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: 2
|
||||||
### -ExcludeGroupPolicies
|
Default value: None
|
||||||
Marks the GPO as excluded from the list.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: ScriptBlock
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -GPOGuid
|
||||||
Aliases:
|
Provide a GPOGuid to get information about a specific GPO.
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: String
|
||||||
Position: 0
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases: GUID, GPOID
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: 3
|
||||||
|
Default value: None
|
||||||
### -ExtendedForestInformation
|
Accept pipeline input: False
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: IDictionary
|
### -Type
|
||||||
Parameter Sets: __AllParameterSets
|
Choose a specific type of GPO.
|
||||||
Aliases:
|
Options are: 'Empty', 'Unlinked', 'Disabled', 'NoApplyPermission', 'All'.
|
||||||
Possible values:
|
Default is All.
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: 7
|
Type: String[]
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: 4
|
||||||
### -Forest
|
Default value: None
|
||||||
Target different Forest, by default current forest is used
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -Forest
|
||||||
Aliases: ForestName
|
Target different Forest, by default current forest is used
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: String
|
||||||
Position: 4
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases: ForestName
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: 5
|
||||||
|
Default value: None
|
||||||
### -GPOGuid
|
Accept pipeline input: False
|
||||||
Provide a GPOGuid to get information about a specific GPO.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String
|
### -ExcludeDomains
|
||||||
Parameter Sets: __AllParameterSets
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Aliases: GUID, GPOID
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String[]
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 2
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 6
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -GPOName
|
Accept wildcard characters: False
|
||||||
Provide a GPOName to get information about a specific GPO.
|
```
|
||||||
|
|
||||||
```yaml
|
### -IncludeDomains
|
||||||
Type: String
|
Include only specific domains, by default whole forest is scanned
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: Domain, Domains
|
||||||
Position: 1
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 7
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -GPOPath
|
```
|
||||||
Define GPOPath where the XML files are located to be analyzed instead of asking Active Directory
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
```yaml
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: IDictionary
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 8
|
Required: False
|
||||||
Default value: None
|
Position: 8
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -IncludeDomains
|
|
||||||
Include only specific domains, by default whole forest is scanned
|
### -GPOPath
|
||||||
|
Define GPOPath where the XML files are located to be analyzed instead of asking Active Directory
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: Domain, Domains
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 6
|
Position: 9
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -Limited
|
### -PermissionsOnly
|
||||||
Provide limited output without analyzing XML data
|
Only show permissions, by default all information is shown
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: SwitchParameter
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: False
|
||||||
Default value: False
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -OwnerOnly
|
||||||
### -OwnerOnly
|
only show owner information, by default all information is shown
|
||||||
only show owner information, by default all information is shown
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: SwitchParameter
|
||||||
Type: SwitchParameter
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: False
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: False
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -Limited
|
||||||
|
Provide limited output without analyzing XML data
|
||||||
### -PermissionsOnly
|
|
||||||
Only show permissions, by default all information is shown
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: SwitchParameter
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: False
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: False
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -ADAdministrativeGroups
|
||||||
```
|
Ability to provide ADAdministrativeGroups from different function to speed up processing
|
||||||
|
|
||||||
### -Type
|
```yaml
|
||||||
Choose a specific type of GPO. Options are: 'Empty', 'Unlinked', 'Disabled', 'NoApplyPermission', 'All'. Default is All.
|
Type: IDictionary
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: 10
|
||||||
Possible values: Empty, Unlinked, Disabled, NoApplyPermission, All
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 3
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### CommonParameters
|
||||||
Accept wildcard characters: True
|
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
|
||||||
### 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).
|
## OUTPUTS
|
||||||
|
|
||||||
## INPUTS
|
## NOTES
|
||||||
|
General notes
|
||||||
- `None`
|
|
||||||
|
## RELATED LINKS
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+214
-231
@@ -1,231 +1,214 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrAD
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrAD
|
||||||
Retrieves Group Policy Objects (GPOs) information from Active Directory.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### Default (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrAD [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
|
||||||
```
|
### Default (Default)
|
||||||
|
```
|
||||||
### GPOName
|
Get-GPOZaurrAD [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
```powershell
|
[-DateFrom <DateTime>] [-DateTo <DateTime>] [-DateRange <String>] [-DateProperty <String[]>]
|
||||||
Get-GPOZaurrAD [-GPOName <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
### GPOGUID
|
### GPOName
|
||||||
```powershell
|
```
|
||||||
Get-GPOZaurrAD [-GPOGuid <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateFrom <datetime>] [-DateTo <datetime>] [-DateRange <string>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
Get-GPOZaurrAD [-GPOName <String>] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
```
|
[-DateFrom <DateTime>] [-DateTo <DateTime>] [-DateRange <String>] [-DateProperty <String[]>]
|
||||||
|
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
||||||
## 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.
|
|
||||||
|
### GPOGUID
|
||||||
## EXAMPLES
|
```
|
||||||
|
Get-GPOZaurrAD [-GPOGuid <String>] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
### EXAMPLE 1
|
[-DateFrom <DateTime>] [-DateTo <DateTime>] [-DateRange <String>] [-DateProperty <String[]>]
|
||||||
```powershell
|
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
||||||
PS > Get-GPOZaurrAD -GPOName "ExampleGPO"
|
```
|
||||||
```
|
|
||||||
|
## DESCRIPTION
|
||||||
Description:
|
{{ Fill in the Description }}
|
||||||
Retrieves information about a GPO with the name "ExampleGPO".
|
|
||||||
|
## EXAMPLES
|
||||||
### EXAMPLE 2
|
|
||||||
```powershell
|
### Example 1
|
||||||
PS > Get-GPOZaurrAD -GPOGuid "{12345678-1234-1234-1234-123456789012}"
|
```powershell
|
||||||
```
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
Description:
|
|
||||||
Retrieves information about a GPO with the specified GUID.
|
{{ Add example description here }}
|
||||||
|
|
||||||
### EXAMPLE 3
|
## PARAMETERS
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrAD -Forest "example.com" -IncludeDomains "domain1", "domain2" -DateRange "Last30Days"
|
### -DateFrom
|
||||||
```
|
{{ Fill DateFrom Description }}
|
||||||
|
|
||||||
Description:
|
```yaml
|
||||||
Retrieves GPO information from the forest "example.com" for domains "domain1" and "domain2" created or modified in the last 30 days.
|
Type: DateTime
|
||||||
|
Parameter Sets: (All)
|
||||||
## PARAMETERS
|
Aliases:
|
||||||
|
|
||||||
### -DateFrom
|
Required: False
|
||||||
Specifies the start date for filtering GPOs based on creation or modification date.
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: DateTime
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -DateProperty
|
||||||
|
{{ Fill DateProperty Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: String[]
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
Accepted values: WhenCreated, WhenChanged
|
||||||
|
|
||||||
### -DateProperty
|
Required: False
|
||||||
Specifies the property (WhenCreated or WhenChanged) to use for filtering GPOs based on date.
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String[]
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
```
|
||||||
Aliases:
|
|
||||||
Possible values: WhenCreated, WhenChanged
|
### -DateRange
|
||||||
|
{{ Fill DateRange Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: WhenCreated
|
Type: String
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
Accepted values: PastHour, CurrentHour, PastDay, CurrentDay, PastMonth, CurrentMonth, PastQuarter, CurrentQuarter, Last14Days, Last21Days, Last30Days, Last7Days, Last3Days, Last1Days
|
||||||
|
|
||||||
### -DateRange
|
Required: False
|
||||||
Specifies a predefined date range for filtering GPOs based on creation or modification date.
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
```
|
||||||
Aliases:
|
|
||||||
Possible values: PastHour, CurrentHour, PastDay, CurrentDay, PastMonth, CurrentMonth, PastQuarter, CurrentQuarter, Last14Days, Last21Days, Last30Days, Last7Days, Last3Days, Last1Days
|
### -DateTo
|
||||||
|
{{ Fill DateTo Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: DateTime
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -DateTo
|
Position: Named
|
||||||
Specifies the end date for filtering GPOs based on creation or modification date.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: DateTime
|
```
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
|
||||||
Aliases:
|
### -ExcludeDomains
|
||||||
Possible values:
|
{{ Fill ExcludeDomains Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: String[]
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -ExcludeDomains
|
Default value: None
|
||||||
Specifies an array of domains to exclude from the search.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
### -ExtendedForestInformation
|
||||||
Aliases:
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: IDictionary
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: None
|
||||||
### -ExtendedForestInformation
|
Accept pipeline input: False
|
||||||
Specifies additional forest information to include in the output.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: IDictionary
|
### -Forest
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
{{ Fill Forest Description }}
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: named
|
Aliases: ForestName
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -Forest
|
Accept wildcard characters: False
|
||||||
Specifies the forest name to search for GPOs.
|
```
|
||||||
|
|
||||||
```yaml
|
### -GPOGuid
|
||||||
Type: String
|
{{ Fill GPOGuid Description }}
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
|
||||||
Aliases: ForestName
|
```yaml
|
||||||
Possible values:
|
Type: String
|
||||||
|
Parameter Sets: GPOGUID
|
||||||
Required: False
|
Aliases: GUID, GPOID
|
||||||
Position: named
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -GPOGuid
|
```
|
||||||
Specifies the GUID of the GPO to retrieve.
|
|
||||||
|
### -GPOName
|
||||||
```yaml
|
{{ Fill GPOName Description }}
|
||||||
Type: String
|
|
||||||
Parameter Sets: GPOGUID
|
```yaml
|
||||||
Aliases: GUID, GPOID
|
Type: String
|
||||||
Possible values:
|
Parameter Sets: GPOName
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -GPOName
|
|
||||||
Specifies the name of the GPO to retrieve.
|
### -IncludeDomains
|
||||||
|
{{ Fill IncludeDomains Description }}
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: GPOName
|
Type: String[]
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### CommonParameters
|
||||||
Specifies an array of domains to include in the search.
|
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).
|
||||||
|
|
||||||
```yaml
|
## INPUTS
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
### None
|
||||||
Aliases: Domain, Domains
|
|
||||||
Possible values:
|
## OUTPUTS
|
||||||
|
|
||||||
Required: False
|
### System.Object
|
||||||
Position: named
|
## NOTES
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
## RELATED LINKS
|
||||||
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
|
|
||||||
|
|||||||
@@ -1,69 +1,60 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrBackupInformation
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrBackupInformation
|
||||||
Retrieves backup information from GPOZaurr manifest files.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrBackupInformation [[-BackupFolder] <string[]>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrBackupInformation [[-BackupFolder] <String[]>] [<CommonParameters>]
|
||||||
## DESCRIPTION
|
```
|
||||||
This function retrieves backup information from GPOZaurr manifest files located in the specified BackupFolder(s).
|
|
||||||
|
## DESCRIPTION
|
||||||
## EXAMPLES
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
### EXAMPLE 1
|
## EXAMPLES
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrBackupInformation -BackupFolder "C:\Backups"
|
### Example 1
|
||||||
```
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
Description:
|
```
|
||||||
Retrieves backup information from GPOZaurr manifest files located in the "C:\Backups" folder.
|
|
||||||
|
{{ Add example description here }}
|
||||||
### EXAMPLE 2
|
|
||||||
```powershell
|
## PARAMETERS
|
||||||
PS > Get-GPOZaurrBackupInformation -BackupFolder "C:\Backups", "D:\Archives"
|
|
||||||
```
|
### -BackupFolder
|
||||||
|
{{ Fill BackupFolder Description }}
|
||||||
Description:
|
|
||||||
Retrieves backup information from GPOZaurr manifest files located in both "C:\Backups" and "D:\Archives" folders.
|
```yaml
|
||||||
|
Type: String[]
|
||||||
## PARAMETERS
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -BackupFolder
|
|
||||||
Specifies the path(s) to the folder containing GPOZaurr manifest files.
|
Required: False
|
||||||
|
Position: 0
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String[]
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### CommonParameters
|
||||||
Required: False
|
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).
|
||||||
Position: 0
|
|
||||||
Default value: None
|
## INPUTS
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### None
|
||||||
```
|
|
||||||
|
## OUTPUTS
|
||||||
### 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).
|
### System.Object
|
||||||
|
## NOTES
|
||||||
## INPUTS
|
|
||||||
|
## RELATED LINKS
|
||||||
- `None`
|
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+172
-177
@@ -1,177 +1,172 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrBroken
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrBroken
|
||||||
Detects broken or otherwise damaged Group Policies
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Detects broken or otherwise damaged Group Policies
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrBroken [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-ExcludeDomainControllers] <string[]>] [[-IncludeDomains] <string[]>] [[-IncludeDomainControllers] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-SkipRODC] [-VerifyDomainControllers] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrBroken [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-ExcludeDomainControllers] <String[]>]
|
||||||
## DESCRIPTION
|
[[-IncludeDomains] <String[]>] [[-IncludeDomainControllers] <String[]>] [-SkipRODC]
|
||||||
Detects broken or otherwise damaged Group Policies providing insight whether GPO exists in both AD and SYSVOL.
|
[[-ExtendedForestInformation] <IDictionary>] [-VerifyDomainControllers] [<CommonParameters>]
|
||||||
It provides few statuses:
|
```
|
||||||
- Permissions issue - means account couldn't read GPO due to permissions
|
|
||||||
- ObjectClass issue - means that ObjectClass is of type Container, rather than expected groupPolicyContainer
|
## DESCRIPTION
|
||||||
- Not available on SYSVOL - means SYSVOL data is missing, yet AD metadata is available
|
Detects broken or otherwise damaged Group Policies providing insight whether GPO exists in both AD and SYSVOL.
|
||||||
- Not available in AD - means AD metadata is missing, yet SYSVOL data is available
|
It provides few statuses:
|
||||||
- Exists - means AD metadata and SYSVOL data are available
|
- Permissions issue - means account couldn't read GPO due to permissions
|
||||||
|
- ObjectClass issue - means that ObjectClass is of type Container, rather than expected groupPolicyContainer
|
||||||
## EXAMPLES
|
- Not available on SYSVOL - means SYSVOL data is missing, yet AD metadata is available
|
||||||
|
- Not available in AD - means AD metadata is missing, yet SYSVOL data is available
|
||||||
### EXAMPLE 1
|
- Exists - means AD metadata and SYSVOL data are available
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrBroken -Verbose | Format-Table
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
## PARAMETERS
|
Get-GPOZaurrBroken -Verbose | Format-Table
|
||||||
|
```
|
||||||
### -ExcludeDomainControllers
|
|
||||||
Exclude specific domain controllers, by default there are no exclusions, as long as VerifyDomainControllers switch is enabled. Otherwise this parameter is ignored.
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -Forest
|
||||||
Type: String[]
|
Target different Forest, by default current forest is used
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: ForestName
|
||||||
Position: 2
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExcludeDomains
|
```
|
||||||
Exclude domain from search, by default whole forest is scanned
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 1
|
Required: False
|
||||||
Default value: None
|
Position: 2
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -ExtendedForestInformation
|
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
### -ExcludeDomainControllers
|
||||||
|
Exclude specific domain controllers, by default there are no exclusions, as long as VerifyDomainControllers switch is enabled.
|
||||||
```yaml
|
Otherwise this parameter is ignored.
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 5
|
Required: False
|
||||||
Default value: None
|
Position: 3
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Target different Forest, by default current forest is used
|
### -IncludeDomains
|
||||||
|
Include only specific domains, by default whole forest is scanned
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 0
|
Position: 4
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomainControllers
|
### -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.
|
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[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: DomainControllers
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: DomainControllers
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 4
|
Position: 5
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -SkipRODC
|
||||||
Include only specific domains, by default whole forest is scanned
|
Skip Read-Only Domain Controllers.
|
||||||
|
By default all domain controllers are included.
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: SwitchParameter
|
||||||
Aliases: Domain, Domains
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 3
|
Position: Named
|
||||||
Default value: None
|
Default value: False
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -SkipRODC
|
### -ExtendedForestInformation
|
||||||
Skip Read-Only Domain Controllers. By default all domain controllers are included.
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: IDictionary
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 6
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: False
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -VerifyDomainControllers
|
||||||
### -VerifyDomainControllers
|
Forces cmdlet to check GPO Existance on Domain Controllers rather then per domain
|
||||||
Forces cmdlet to check GPO Existance on Domain Controllers rather then per domain
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: SwitchParameter
|
||||||
Type: SwitchParameter
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: False
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: False
|
Accept wildcard characters: False
|
||||||
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).
|
||||||
### 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
|
||||||
|
|
||||||
## INPUTS
|
## OUTPUTS
|
||||||
|
|
||||||
- `None`
|
## NOTES
|
||||||
|
General notes
|
||||||
## OUTPUTS
|
|
||||||
|
## RELATED LINKS
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+107
-113
@@ -1,113 +1,107 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrBrokenLink
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrBrokenLink
|
||||||
Finds any GPO link that doesn't have a matching GPO (already removed GPO).
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Finds any GPO link that doesn't have a matching GPO (already removed GPO).
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrBrokenLink [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrBrokenLink [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
||||||
Finds any GPO link that doesn't have a matching GPO (already removed GPO).
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
Finds any GPO link that doesn't have a matching GPO (already removed GPO).
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Get-GPOZaurrBrokenLink -Verbose | Format-Table -AutoSize *
|
|
||||||
```
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
|
Get-GPOZaurrBrokenLink -Verbose | Format-Table -AutoSize *
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl | Format-Table -AutoSize *
|
### EXAMPLE 2
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl | Format-Table -AutoSize *
|
||||||
|
```
|
||||||
## PARAMETERS
|
|
||||||
|
## PARAMETERS
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
### -Forest
|
||||||
|
Target different Forest, by default current forest is used
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: ForestName
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 1
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -ExtendedForestInformation
|
### -ExcludeDomains
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
Exclude domain from search, by default whole forest is scanned
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: IDictionary
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 2
|
||||||
Position: 3
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -IncludeDomains
|
||||||
### -Forest
|
Include only specific domains, by default whole forest is scanned
|
||||||
Target different Forest, by default current forest is used
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: String
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases: Domain, Domains
|
||||||
Aliases: ForestName
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 3
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 0
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -ExtendedForestInformation
|
||||||
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
### -IncludeDomains
|
|
||||||
Include only specific domains, by default whole forest is scanned
|
```yaml
|
||||||
|
Type: IDictionary
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String[]
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: Domain, Domains
|
Required: False
|
||||||
Possible values:
|
Position: 4
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 2
|
Accept wildcard characters: False
|
||||||
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).
|
||||||
|
|
||||||
### CommonParameters
|
## INPUTS
|
||||||
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).
|
|
||||||
|
## OUTPUTS
|
||||||
## INPUTS
|
|
||||||
|
## NOTES
|
||||||
- `None`
|
General notes
|
||||||
|
|
||||||
## OUTPUTS
|
## RELATED LINKS
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
@@ -1,67 +1,60 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrDictionary
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrDictionary
|
||||||
Retrieves a dictionary of Group Policy Objects (GPOs) with their associated types and paths.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrDictionary [[-Splitter] <string>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrDictionary [[-Splitter] <String>] [<CommonParameters>]
|
||||||
## 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.
|
|
||||||
|
## DESCRIPTION
|
||||||
## EXAMPLES
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
### EXAMPLE 1
|
## EXAMPLES
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrDictionary
|
### Example 1
|
||||||
Retrieves the dictionary of GPOs with their types and paths using the default newline delimiter.
|
```powershell
|
||||||
```
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
### EXAMPLE 2
|
{{ Add example description here }}
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrDictionary -Splitter ","
|
## PARAMETERS
|
||||||
Retrieves the dictionary of GPOs with their types and paths using a comma as the delimiter.
|
|
||||||
```
|
### -Splitter
|
||||||
|
{{ Fill Splitter Description }}
|
||||||
|
|
||||||
## PARAMETERS
|
```yaml
|
||||||
|
Type: String
|
||||||
### -Splitter
|
Parameter Sets: (All)
|
||||||
Specifies the delimiter used to separate multiple types or paths. Default value is [System.Environment]::NewLine.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: String
|
Position: 0
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 0
|
### CommonParameters
|
||||||
Default value: [System.Environment]::NewLine
|
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).
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
## INPUTS
|
||||||
```
|
|
||||||
|
### None
|
||||||
### 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).
|
## OUTPUTS
|
||||||
|
|
||||||
## INPUTS
|
### System.Object
|
||||||
|
## NOTES
|
||||||
- `None`
|
|
||||||
|
## RELATED LINKS
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+106
-110
@@ -1,110 +1,106 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrDuplicateObject
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrDuplicateObject
|
||||||
Retrieves duplicate Group Policy Objects (GPOs) within a specified forest.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrDuplicateObject [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrDuplicateObject [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
||||||
This function retrieves duplicate Group Policy Objects (GPOs) within a specified forest by comparing GPOs based on partial distinguished name matching.
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Get-GPOZaurrDuplicateObject -Forest "contoso.com" -IncludeDomains "child1.contoso.com", "child2.contoso.com" -ExcludeDomains "child3.contoso.com" -ExtendedForestInformation $additionalInfo
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
Description
|
PS C:\> {{ Add example code here }}
|
||||||
-----------
|
```
|
||||||
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.
|
|
||||||
|
{{ Add example description here }}
|
||||||
## PARAMETERS
|
|
||||||
|
## PARAMETERS
|
||||||
### -ExcludeDomains
|
|
||||||
Specifies an array of domain names to exclude from the search for duplicate GPOs.
|
### -ExcludeDomains
|
||||||
|
{{ Fill ExcludeDomains Description }}
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 1
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -ExtendedForestInformation
|
### -ExtendedForestInformation
|
||||||
Specifies additional information about the forest to aid in the search for duplicate GPOs.
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: IDictionary
|
Type: IDictionary
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 3
|
||||||
Position: 3
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -Forest
|
||||||
### -Forest
|
{{ Fill Forest Description }}
|
||||||
Specifies the name of the forest to search for duplicate GPOs.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String
|
||||||
Type: String
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases: ForestName
|
||||||
Aliases: ForestName
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 0
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 0
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -IncludeDomains
|
||||||
|
{{ Fill IncludeDomains Description }}
|
||||||
### -IncludeDomains
|
|
||||||
Specifies an array of domain names to include in the search for duplicate GPOs.
|
```yaml
|
||||||
|
Type: String[]
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String[]
|
Aliases: Domain, Domains
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: Domain, Domains
|
Required: False
|
||||||
Possible values:
|
Position: 2
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 2
|
Accept wildcard characters: False
|
||||||
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).
|
||||||
|
|
||||||
### CommonParameters
|
## INPUTS
|
||||||
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).
|
|
||||||
|
### None
|
||||||
## INPUTS
|
|
||||||
|
## OUTPUTS
|
||||||
- `None`
|
|
||||||
|
### System.Object
|
||||||
## OUTPUTS
|
## NOTES
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+199
-211
@@ -1,211 +1,199 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrFiles
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrFiles
|
||||||
Retrieves information about Group Policy Objects (GPOs) stored in SYSVOL and NETLOGON folders.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrFiles [[-Type] <string[]>] [[-HashAlgorithm] <string>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-Signature] [-AsHashTable] [-Extended] [-ExtendedMetaData] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrFiles [[-Type] <String[]>] [[-HashAlgorithm] <String>] [-Signature] [-AsHashTable] [-Extended]
|
||||||
## DESCRIPTION
|
[-ExtendedMetaData] [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
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.
|
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrFiles -Type 'All' -HashAlgorithm 'SHA256' -Signature
|
## EXAMPLES
|
||||||
Retrieves all files from SYSVOL and NETLOGON folders with SHA256 hash algorithm and includes file signatures.
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrFiles -Type 'Sysvol' -HashAlgorithm 'MD5' -AsHashTable
|
{{ Add example description here }}
|
||||||
Retrieves only SYSVOL files with MD5 hash algorithm and returns the results as a hashtable.
|
|
||||||
```
|
## PARAMETERS
|
||||||
|
|
||||||
|
### -AsHashTable
|
||||||
## PARAMETERS
|
{{ Fill AsHashTable Description }}
|
||||||
|
|
||||||
### -AsHashTable
|
```yaml
|
||||||
Indicates whether to return the results as a hashtable.
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
### -ExcludeDomains
|
||||||
Accept wildcard characters: True
|
{{ Fill ExcludeDomains Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -ExcludeDomains
|
Type: String[]
|
||||||
Specifies an array of domains to exclude from the search.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 3
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 3
|
|
||||||
Default value: None
|
### -Extended
|
||||||
Accept pipeline input: False
|
{{ Fill Extended Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
### -Extended
|
Parameter Sets: (All)
|
||||||
Indicates whether to include extended information about the forest.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: SwitchParameter
|
Position: Named
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: named
|
### -ExtendedForestInformation
|
||||||
Default value: False
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: IDictionary
|
||||||
|
Parameter Sets: (All)
|
||||||
### -ExtendedForestInformation
|
Aliases:
|
||||||
Specifies additional forest information to include.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 5
|
||||||
Type: IDictionary
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -ExtendedMetaData
|
||||||
Position: 5
|
{{ Fill ExtendedMetaData Description }}
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: SwitchParameter
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -ExtendedMetaData
|
|
||||||
Indicates whether to include extended metadata information.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: SwitchParameter
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### -Forest
|
||||||
Required: False
|
{{ Fill Forest Description }}
|
||||||
Position: named
|
|
||||||
Default value: False
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases: ForestName
|
||||||
|
|
||||||
### -Forest
|
Required: False
|
||||||
Specifies the forest name to retrieve GPO information from.
|
Position: 2
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String
|
Accept wildcard characters: False
|
||||||
Parameter Sets: __AllParameterSets
|
```
|
||||||
Aliases: ForestName
|
|
||||||
Possible values:
|
### -HashAlgorithm
|
||||||
|
{{ Fill HashAlgorithm Description }}
|
||||||
Required: False
|
|
||||||
Position: 2
|
```yaml
|
||||||
Default value: None
|
Type: String
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
Accepted values: None, MACTripleDES, MD5, RIPEMD160, SHA1, SHA256, SHA384, SHA512
|
||||||
|
|
||||||
### -HashAlgorithm
|
Required: False
|
||||||
Specifies the hash algorithm to use for file verification. Valid values are 'None', 'MACTripleDES', 'MD5', 'RIPEMD160', 'SHA1', 'SHA256', 'SHA384', 'SHA512'.
|
Position: 1
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String
|
Accept wildcard characters: False
|
||||||
Parameter Sets: __AllParameterSets
|
```
|
||||||
Aliases:
|
|
||||||
Possible values: None, MACTripleDES, MD5, RIPEMD160, SHA1, SHA256, SHA384, SHA512
|
### -IncludeDomains
|
||||||
|
{{ Fill IncludeDomains Description }}
|
||||||
Required: False
|
|
||||||
Position: 1
|
```yaml
|
||||||
Default value: None
|
Type: String[]
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases: Domain, Domains
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -IncludeDomains
|
Position: 4
|
||||||
Specifies an array of domains to include in the search.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: String[]
|
```
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: Domain, Domains
|
### -Signature
|
||||||
Possible values:
|
{{ Fill Signature Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: 4
|
Type: SwitchParameter
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -Signature
|
Default value: None
|
||||||
Indicates whether to include file signatures for verification.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -Type
|
||||||
Aliases:
|
{{ Fill Type Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: String[]
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: False
|
Aliases:
|
||||||
Accept pipeline input: False
|
Accepted values: All, Netlogon, Sysvol
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: 0
|
||||||
### -Type
|
Default value: None
|
||||||
Specifies the type of files to retrieve. Valid values are 'All', 'Netlogon', and 'Sysvol'.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
### CommonParameters
|
||||||
Aliases:
|
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).
|
||||||
Possible values: All, Netlogon, Sysvol
|
|
||||||
|
## INPUTS
|
||||||
Required: False
|
|
||||||
Position: 0
|
### None
|
||||||
Default value: All
|
|
||||||
Accept pipeline input: False
|
## OUTPUTS
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### System.Object
|
||||||
|
## NOTES
|
||||||
### 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).
|
## RELATED LINKS
|
||||||
|
|
||||||
## INPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
@@ -1,124 +1,121 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrFilesPolicyDefinition
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrFilesPolicyDefinition
|
||||||
Retrieves policy definitions for Group Policy Objects (GPOs) within specified domains.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrFilesPolicyDefinition [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-Signature] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrFilesPolicyDefinition [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-Signature] [<CommonParameters>]
|
||||||
This function retrieves policy definitions for GPOs within specified domains. It collects information about policy files, including their attributes and digital signatures.
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
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.
|
### Example 1
|
||||||
```
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
## PARAMETERS
|
|
||||||
|
{{ Add example description here }}
|
||||||
### -ExcludeDomains
|
|
||||||
Specifies an array of domains to exclude from the search.
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -ExcludeDomains
|
||||||
Type: String[]
|
{{ Fill ExcludeDomains Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: 1
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Specifies additional forest information to include in the output.
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
```yaml
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: IDictionary
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 3
|
Required: False
|
||||||
Default value: None
|
Position: 3
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Specifies the forest name to retrieve GPO policy definitions from.
|
### -Forest
|
||||||
|
{{ Fill Forest Description }}
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: ForestName
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 0
|
Position: 0
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -IncludeDomains
|
||||||
Specifies an array of domains to include in the search.
|
{{ Fill IncludeDomains Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases: Domain, Domains
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 2
|
||||||
Position: 2
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -Signature
|
||||||
### -Signature
|
{{ Fill Signature Description }}
|
||||||
Indicates whether to retrieve digital signature information for policy files.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: SwitchParameter
|
||||||
Type: SwitchParameter
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: None
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: False
|
Accept wildcard characters: False
|
||||||
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).
|
||||||
### 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
|
||||||
|
|
||||||
## INPUTS
|
### None
|
||||||
|
|
||||||
- `None`
|
## OUTPUTS
|
||||||
|
|
||||||
## OUTPUTS
|
### System.Object
|
||||||
|
## NOTES
|
||||||
- `None`
|
|
||||||
|
## RELATED LINKS
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+154
-163
@@ -1,163 +1,154 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrFolders
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrFolders
|
||||||
Retrieves information about GPO folders within specified domains.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrFolders [[-Type] <string[]>] [[-FolderType] <string>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-AsHashTable] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrFolders [[-Type] <String[]>] [[-FolderType] <String>] [[-Forest] <String>]
|
||||||
## DESCRIPTION
|
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
|
||||||
This function retrieves information about various GPO folders within specified domains, such as PolicyDefinitions, Policies, Scripts, GPO Starters, NETLOGON Scripts, DfsrPrivate, and SYSVOL Root.
|
[-AsHashTable] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrFolders -Type All -FolderType All -Forest 'example.com' -IncludeDomains 'domain1', 'domain2' -ExcludeDomains 'domain3' -ExtendedForestInformation $info -AsHashTable
|
## EXAMPLES
|
||||||
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 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrFolders -Type Sysvol -FolderType NTFRS -Forest 'example.com' -IncludeDomains 'domain1' -AsHashTable
|
{{ Add example description here }}
|
||||||
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.
|
|
||||||
```
|
## PARAMETERS
|
||||||
|
|
||||||
|
### -AsHashTable
|
||||||
## PARAMETERS
|
{{ Fill AsHashTable Description }}
|
||||||
|
|
||||||
### -AsHashTable
|
```yaml
|
||||||
Indicates whether to return the output as a hashtable.
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
### -ExcludeDomains
|
||||||
Accept wildcard characters: True
|
{{ Fill ExcludeDomains Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -ExcludeDomains
|
Type: String[]
|
||||||
Specifies domains to exclude from the retrieval.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 3
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 3
|
|
||||||
Default value: None
|
### -ExtendedForestInformation
|
||||||
Accept pipeline input: False
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: IDictionary
|
||||||
### -ExtendedForestInformation
|
Parameter Sets: (All)
|
||||||
Specifies additional information about the forest.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: IDictionary
|
Position: 5
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 5
|
### -FolderType
|
||||||
Default value: None
|
{{ Fill FolderType Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
### -FolderType
|
Aliases:
|
||||||
Specifies the type of folders to retrieve. Valid values are 'All', 'NTFRS', 'Empty'.
|
Accepted values: All, NTFRS, Empty
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: String
|
Position: 1
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values: All, NTFRS, Empty
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 1
|
### -Forest
|
||||||
Default value: All
|
{{ Fill Forest Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
### -Forest
|
Aliases: ForestName
|
||||||
Specifies the forest name to retrieve information for.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 2
|
||||||
Type: String
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases: ForestName
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -IncludeDomains
|
||||||
Position: 2
|
{{ Fill IncludeDomains Description }}
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: String[]
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases: Domain, Domains
|
||||||
### -IncludeDomains
|
|
||||||
Specifies domains to include in the retrieval.
|
Required: False
|
||||||
|
Position: 4
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String[]
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases: Domain, Domains
|
```
|
||||||
Possible values:
|
|
||||||
|
### -Type
|
||||||
Required: False
|
{{ Fill Type Description }}
|
||||||
Position: 4
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String[]
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases:
|
||||||
|
Accepted values: All, Netlogon, Sysvol
|
||||||
### -Type
|
|
||||||
Specifies the type of folders to retrieve. Valid values are 'All', 'Netlogon', 'Sysvol'.
|
Required: False
|
||||||
|
Position: 0
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String[]
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values: All, Netlogon, Sysvol
|
|
||||||
|
### CommonParameters
|
||||||
Required: False
|
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).
|
||||||
Position: 0
|
|
||||||
Default value: All
|
## INPUTS
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### None
|
||||||
```
|
|
||||||
|
## OUTPUTS
|
||||||
### 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).
|
### System.Object
|
||||||
|
## NOTES
|
||||||
## INPUTS
|
|
||||||
|
## RELATED LINKS
|
||||||
- `None`
|
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+184
-188
@@ -1,188 +1,184 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrInheritance
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrInheritance
|
||||||
Retrieves inheritance information for Group Policy Objects (GPOs) within specified Organizational Units (OUs).
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Short description
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrInheritance [[-Exclusions] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-IncludeBlockedObjects] [-OnlyBlockedInheritance] [-IncludeExcludedObjects] [-IncludeGroupPoliciesForBlockedObjects] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrInheritance [-IncludeBlockedObjects] [-OnlyBlockedInheritance] [-IncludeExcludedObjects]
|
||||||
## DESCRIPTION
|
[-IncludeGroupPoliciesForBlockedObjects] [[-Exclusions] <String[]>] [[-Forest] <String>]
|
||||||
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.
|
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
|
||||||
|
[<CommonParameters>]
|
||||||
## EXAMPLES
|
```
|
||||||
|
|
||||||
### EXAMPLE 1
|
## DESCRIPTION
|
||||||
```powershell
|
Long description
|
||||||
PS > $Objects = Get-GPOZaurrInheritance -IncludeBlockedObjects -IncludeExcludedObjects -OnlyBlockedInheritance -Exclusions $ExcludedOU
|
|
||||||
$Objects | Format-Table
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
## PARAMETERS
|
$Objects = Get-GPOZaurrInheritance -IncludeBlockedObjects -IncludeExcludedObjects -OnlyBlockedInheritance -Exclusions $ExcludedOU
|
||||||
|
```
|
||||||
### -ExcludeDomains
|
|
||||||
Specifies the domain to exclude from the search. By default, the entire forest is scanned.
|
$Objects | Format-Table
|
||||||
|
|
||||||
```yaml
|
## PARAMETERS
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -IncludeBlockedObjects
|
||||||
Aliases:
|
Include OU's with blocked inheritance.
|
||||||
Possible values:
|
Default disabled
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: 2
|
Type: SwitchParameter
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -Exclusions
|
Default value: False
|
||||||
Specifies the OUs approved by IT to be excluded. You can provide OUs by canonical name or distinguishedName.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -OnlyBlockedInheritance
|
||||||
Aliases:
|
Show only OU's with blocked inheritance
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: SwitchParameter
|
||||||
Position: 0
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: False
|
||||||
### -ExtendedForestInformation
|
Accept pipeline input: False
|
||||||
Allows providing Forest Information from another command to speed up processing.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: IDictionary
|
### -IncludeExcludedObjects
|
||||||
Parameter Sets: __AllParameterSets
|
Show excluded objets.
|
||||||
Aliases:
|
Default disabled
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: SwitchParameter
|
||||||
Position: 4
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: False
|
||||||
### -Forest
|
Accept pipeline input: False
|
||||||
Specifies the target forest. By default, the current forest is used.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String
|
### -IncludeGroupPoliciesForBlockedObjects
|
||||||
Parameter Sets: __AllParameterSets
|
{{ Fill IncludeGroupPoliciesForBlockedObjects Description }}
|
||||||
Aliases: ForestName
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 1
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: False
|
||||||
|
Accept pipeline input: False
|
||||||
### -IncludeBlockedObjects
|
Accept wildcard characters: False
|
||||||
Specifies whether to include OUs with blocked inheritance. By default, this is disabled.
|
```
|
||||||
|
|
||||||
```yaml
|
### -Exclusions
|
||||||
Type: SwitchParameter
|
Provide exclusions for OU's approved by IT.
|
||||||
Parameter Sets: __AllParameterSets
|
You can provide OU by canonical name or distinguishedName
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String[]
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: named
|
Aliases:
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 1
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -IncludeDomains
|
Accept wildcard characters: False
|
||||||
Specifies specific domains to include. By default, the entire forest is scanned.
|
```
|
||||||
|
|
||||||
```yaml
|
### -Forest
|
||||||
Type: String[]
|
Target different Forest, by default current forest is used
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: Domain, Domains
|
```yaml
|
||||||
Possible values:
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: ForestName
|
||||||
Position: 3
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 2
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -IncludeExcludedObjects
|
```
|
||||||
Specifies whether to show excluded objects. By default, this is disabled.
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: False
|
Position: 3
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -IncludeGroupPoliciesForBlockedObjects
|
|
||||||
Specifies whether to include Group Policies for blocked objects. By default, this is disabled.
|
### -IncludeDomains
|
||||||
|
Include only specific domains, by default whole forest is scanned
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: 4
|
||||||
Default value: False
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -OnlyBlockedInheritance
|
### -ExtendedForestInformation
|
||||||
Specifies whether to show only OUs with blocked inheritance.
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: IDictionary
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 5
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: False
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### CommonParameters
|
||||||
### 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).
|
||||||
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
|
||||||
## INPUTS
|
|
||||||
|
## OUTPUTS
|
||||||
- `None`
|
|
||||||
|
## NOTES
|
||||||
## OUTPUTS
|
General notes
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+106
-108
@@ -1,108 +1,106 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrLegacyFiles
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrLegacyFiles
|
||||||
Retrieves legacy Group Policy Object (GPO) files from the SYSVOL directory of specified domains within a forest.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrLegacyFiles [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrLegacyFiles [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
||||||
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
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Get-GPOZaurrLegacyFiles -Forest "contoso.com" -IncludeDomains "domain1", "domain2" -ExcludeDomains "domain3" -ExtendedForestInformation $additionalInfo
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
Retrieves legacy GPO files from the "contoso.com" forest for "domain1" and "domain2" domains while excluding "domain3", using additional forest information.
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
## PARAMETERS
|
|
||||||
|
{{ Add example description here }}
|
||||||
### -ExcludeDomains
|
|
||||||
Specifies an array of domain names to exclude from the search for legacy GPO files.
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -ExcludeDomains
|
||||||
Type: String[]
|
{{ Fill ExcludeDomains Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: 1
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Specifies additional information about the forest to enhance the retrieval process.
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
```yaml
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: IDictionary
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 3
|
Required: False
|
||||||
Default value: None
|
Position: 3
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Specifies the name of the forest from which to retrieve legacy GPO files.
|
### -Forest
|
||||||
|
{{ Fill Forest Description }}
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: ForestName
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 0
|
Position: 0
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -IncludeDomains
|
||||||
Specifies an array of domain names to include in the search for legacy GPO files.
|
{{ Fill IncludeDomains Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases: Domain, Domains
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 2
|
||||||
Position: 2
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### CommonParameters
|
||||||
### 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).
|
||||||
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
|
||||||
## INPUTS
|
|
||||||
|
### None
|
||||||
- `None`
|
|
||||||
|
## OUTPUTS
|
||||||
## OUTPUTS
|
|
||||||
|
### System.Object
|
||||||
- `None`
|
## NOTES
|
||||||
|
|
||||||
## RELATED LINKS
|
## RELATED LINKS
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+297
-310
@@ -1,310 +1,297 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrLink
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrLink
|
||||||
Retrieves Group Policy Object (GPO) links based on specified criteria.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### Linked (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrLink [-Linked <string[]>] [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
|
|
||||||
```
|
### Linked (Default)
|
||||||
|
```
|
||||||
### ADObject
|
Get-GPOZaurrLink [-Linked <String[]>] [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <String>]
|
||||||
```powershell
|
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
Get-GPOZaurrLink -ADObject <ADObject[]> [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
|
[-AsHashTable] [-Summary] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Filter
|
### ADObject
|
||||||
```powershell
|
```
|
||||||
Get-GPOZaurrLink [-Filter <string>] [-SearchBase <string>] [-SearchScope <ADSearchScope>] [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
|
Get-GPOZaurrLink -ADObject <ADObject[]> [-Limited] [-SkipDuplicates] [-GPOCache <IDictionary>]
|
||||||
```
|
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
|
[-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
|
||||||
### Site
|
```
|
||||||
```powershell
|
|
||||||
Get-GPOZaurrLink [-Site <string[]>] [-GPOCache <IDictionary>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary] [<CommonParameters>]
|
### Filter
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrLink [-Filter <String>] [-SearchBase <String>] [-SearchScope <ADSearchScope>] [-Limited]
|
||||||
## DESCRIPTION
|
[-SkipDuplicates] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
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.
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary]
|
||||||
|
[<CommonParameters>]
|
||||||
## EXAMPLES
|
```
|
||||||
|
|
||||||
### EXAMPLE 1
|
### Site
|
||||||
```powershell
|
```
|
||||||
PS > Get-GPOZaurrLink -ADObject $ADObject -Linked 'All'
|
Get-GPOZaurrLink [-Site <String[]>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
```
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-AsHashTable] [-Summary]
|
||||||
|
[<CommonParameters>]
|
||||||
Description
|
```
|
||||||
-----------
|
|
||||||
Retrieves all linked GPOZaurr links for the specified Active Directory object(s).
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
### EXAMPLE 2
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Get-GPOZaurrLink -Filter "(objectClass -eq 'organizationalUnit')" -SearchBase 'CN=Configuration,DC=ad,DC=evotec,DC=xyz'
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
Description
|
PS C:\> {{ Add example code here }}
|
||||||
-----------
|
```
|
||||||
Retrieves GPOZaurr links based on the specified filter and search base.
|
|
||||||
|
{{ Add example description here }}
|
||||||
## PARAMETERS
|
|
||||||
|
## PARAMETERS
|
||||||
### -ADObject
|
|
||||||
Specifies the Active Directory object(s) to search for GPO links.
|
### -ADObject
|
||||||
|
{{ Fill ADObject Description }}
|
||||||
```yaml
|
|
||||||
Type: ADObject[]
|
```yaml
|
||||||
Parameter Sets: ADObject
|
Type: ADObject[]
|
||||||
Aliases:
|
Parameter Sets: ADObject
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: True (ByValue, ByPropertyName)
|
Accept pipeline input: True (ByPropertyName, ByValue)
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -AsHashTable
|
### -AsHashTable
|
||||||
{{ Fill AsHashTable Description }}
|
{{ Fill AsHashTable Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: SwitchParameter
|
||||||
Parameter Sets: Linked, ADObject, Filter, Site
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: False
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -ExcludeDomains
|
||||||
### -ExcludeDomains
|
{{ Fill ExcludeDomains Description }}
|
||||||
Specifies the domains to exclude from the search.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: Linked, ADObject, Filter, Site
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: None
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
### -ExtendedForestInformation
|
|
||||||
{{ Fill ExtendedForestInformation Description }}
|
```yaml
|
||||||
|
Type: IDictionary
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: IDictionary
|
Aliases:
|
||||||
Parameter Sets: Linked, ADObject, Filter, Site
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -Filter
|
||||||
```
|
{{ Fill Filter Description }}
|
||||||
|
|
||||||
### -Filter
|
```yaml
|
||||||
Specifies the filter criteria to search for GPO links.
|
Type: String
|
||||||
|
Parameter Sets: Filter
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String
|
|
||||||
Parameter Sets: Filter
|
Required: False
|
||||||
Aliases:
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -Forest
|
||||||
Accept wildcard characters: True
|
{{ Fill Forest Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -Forest
|
Type: String
|
||||||
Specifies the forest name for filtering GPO links.
|
Parameter Sets: (All)
|
||||||
|
Aliases: ForestName
|
||||||
```yaml
|
|
||||||
Type: String
|
Required: False
|
||||||
Parameter Sets: Linked, ADObject, Filter, Site
|
Position: Named
|
||||||
Aliases: ForestName
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: named
|
|
||||||
Default value: None
|
### -GPOCache
|
||||||
Accept pipeline input: False
|
{{ Fill GPOCache Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: IDictionary
|
||||||
### -GPOCache
|
Parameter Sets: (All)
|
||||||
Specifies a cache for storing GPO information.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: IDictionary
|
Position: Named
|
||||||
Parameter Sets: Linked, ADObject, Filter, Site
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: named
|
### -IncludeDomains
|
||||||
Default value: None
|
{{ Fill IncludeDomains Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
### -IncludeDomains
|
Aliases: Domain, Domains
|
||||||
Specifies the domains to include in the search.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: Named
|
||||||
Type: String[]
|
Default value: None
|
||||||
Parameter Sets: Linked, ADObject, Filter, Site
|
Accept pipeline input: False
|
||||||
Aliases: Domain, Domains
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -Limited
|
||||||
Position: named
|
{{ Fill Limited Description }}
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: SwitchParameter
|
||||||
```
|
Parameter Sets: Linked, ADObject, Filter
|
||||||
|
Aliases:
|
||||||
### -Limited
|
|
||||||
Indicates whether to limit the search results.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: SwitchParameter
|
Accept pipeline input: False
|
||||||
Parameter Sets: Linked, ADObject, Filter
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### -Linked
|
||||||
Required: False
|
{{ Fill Linked Description }}
|
||||||
Position: named
|
|
||||||
Default value: False
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String[]
|
||||||
Accept wildcard characters: True
|
Parameter Sets: Linked
|
||||||
```
|
Aliases:
|
||||||
|
Accepted values: All, Root, DomainControllers, Site, OrganizationalUnit
|
||||||
### -Linked
|
|
||||||
Specifies the type of linked GPOs to retrieve. Valid values are 'All', 'Root', 'DomainControllers', 'Site', and 'OrganizationalUnit'.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String[]
|
Accept pipeline input: False
|
||||||
Parameter Sets: Linked
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values: All, Root, DomainControllers, Site, OrganizationalUnit
|
|
||||||
|
### -SearchBase
|
||||||
Required: False
|
{{ Fill SearchBase Description }}
|
||||||
Position: named
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String
|
||||||
Accept wildcard characters: True
|
Parameter Sets: Filter
|
||||||
```
|
Aliases:
|
||||||
|
|
||||||
### -SearchBase
|
Required: False
|
||||||
Specifies the search base for filtering GPO links.
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Filter
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -SearchScope
|
||||||
|
{{ Fill SearchScope Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: ADSearchScope
|
||||||
Accept pipeline input: False
|
Parameter Sets: Filter
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
Accepted values: Base, OneLevel, Subtree
|
||||||
|
|
||||||
### -SearchScope
|
Required: False
|
||||||
Specifies the search scope for filtering GPO links.
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: ADSearchScope
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Filter
|
```
|
||||||
Aliases:
|
|
||||||
Possible values: Base, OneLevel, Subtree
|
### -Site
|
||||||
|
{{ Fill Site Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: String[]
|
||||||
Accept pipeline input: False
|
Parameter Sets: Site
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -Site
|
Position: Named
|
||||||
Specifies the site(s) to search for GPO links.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: String[]
|
```
|
||||||
Parameter Sets: Site
|
|
||||||
Aliases:
|
### -SkipDuplicates
|
||||||
Possible values:
|
{{ Fill SkipDuplicates Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: SwitchParameter
|
||||||
Default value: None
|
Parameter Sets: Linked, ADObject, Filter
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -SkipDuplicates
|
Default value: None
|
||||||
Indicates whether to skip duplicate search results.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: Linked, ADObject, Filter
|
### -Summary
|
||||||
Aliases:
|
{{ Fill Summary Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: SwitchParameter
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: False
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: None
|
||||||
### -Summary
|
Accept pipeline input: False
|
||||||
{{ Fill Summary Description }}
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
### CommonParameters
|
||||||
Parameter Sets: Linked, ADObject, Filter, Site
|
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).
|
||||||
Aliases:
|
|
||||||
Possible values:
|
## INPUTS
|
||||||
|
|
||||||
Required: False
|
### Microsoft.ActiveDirectory.Management.ADObject[]
|
||||||
Position: named
|
|
||||||
Default value: False
|
## OUTPUTS
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### System.Object
|
||||||
```
|
## NOTES
|
||||||
|
|
||||||
### CommonParameters
|
## RELATED LINKS
|
||||||
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
|
|
||||||
|
|
||||||
- `ADObject[]`
|
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+138
-147
@@ -1,147 +1,138 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrLinkSummary
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrLinkSummary
|
||||||
Retrieves a summary of GPO links based on specified criteria.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrLinkSummary [[-Report] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-UnlimitedProperties] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrLinkSummary [[-Report] <String[]>] [-UnlimitedProperties] [[-Forest] <String>]
|
||||||
## DESCRIPTION
|
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
|
||||||
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.
|
[<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrLinkSummary -Forest "Contoso" -IncludeDomains "Domain1", "Domain2" -Report "MultipleLinks"
|
## EXAMPLES
|
||||||
Retrieves a summary of GPO links for the specified forest and included domains, focusing on multiple links.
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrLinkSummary -Forest "Fabrikam" -ExcludeDomains "Domain3" -Report "OneLink"
|
{{ Add example description here }}
|
||||||
Retrieves a summary of GPO links for the specified forest excluding Domain3, focusing on a single link.
|
|
||||||
```
|
## PARAMETERS
|
||||||
|
|
||||||
|
### -ExcludeDomains
|
||||||
## PARAMETERS
|
{{ Fill ExcludeDomains Description }}
|
||||||
|
|
||||||
### -ExcludeDomains
|
```yaml
|
||||||
Specifies an array of domains to exclude from the report.
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: 2
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 2
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -ExtendedForestInformation
|
||||||
Accept wildcard characters: True
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -ExtendedForestInformation
|
Type: IDictionary
|
||||||
Specifies additional information about the forest.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: IDictionary
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 4
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 4
|
|
||||||
Default value: None
|
### -Forest
|
||||||
Accept pipeline input: False
|
{{ Fill Forest Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String
|
||||||
### -Forest
|
Parameter Sets: (All)
|
||||||
Specifies the forest name to retrieve GPO links from.
|
Aliases: ForestName
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: String
|
Position: 1
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases: ForestName
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 1
|
### -IncludeDomains
|
||||||
Default value: None
|
{{ Fill IncludeDomains Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
### -IncludeDomains
|
Aliases: Domain, Domains
|
||||||
Specifies an array of domains to include in the report.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 3
|
||||||
Type: String[]
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases: Domain, Domains
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -Report
|
||||||
Position: 3
|
{{ Fill Report Description }}
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: String[]
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -Report
|
Accepted values: All, MultipleLinks, OneLink, LinksSummary
|
||||||
Specifies the type of report to generate. Valid values are 'All', 'MultipleLinks', 'OneLink', and 'LinksSummary'. Default is 'All'.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 0
|
||||||
Type: String[]
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values: All, MultipleLinks, OneLink, LinksSummary
|
```
|
||||||
|
|
||||||
Required: False
|
### -UnlimitedProperties
|
||||||
Position: 0
|
{{ Fill UnlimitedProperties Description }}
|
||||||
Default value: All
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: SwitchParameter
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -UnlimitedProperties
|
|
||||||
Indicates whether to include unlimited properties in the report.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: SwitchParameter
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### CommonParameters
|
||||||
Required: False
|
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).
|
||||||
Position: named
|
|
||||||
Default value: False
|
## INPUTS
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### None
|
||||||
```
|
|
||||||
|
## OUTPUTS
|
||||||
### 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).
|
### System.Object
|
||||||
|
## NOTES
|
||||||
## INPUTS
|
|
||||||
|
## RELATED LINKS
|
||||||
- `None`
|
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
@@ -1,163 +0,0 @@
|
|||||||
---
|
|
||||||
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
|
|
||||||
+149
-164
@@ -1,164 +1,149 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrNetLogon
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrNetLogon
|
||||||
Retrieves information about Group Policy Objects (GPO) stored in the Netlogon and SYSVOL directories.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### Default (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrNetLogon [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
|
||||||
```
|
### Default (Default)
|
||||||
|
```
|
||||||
### OwnerOnly
|
Get-GPOZaurrNetLogon [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
```powershell
|
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
||||||
Get-GPOZaurrNetLogon [-OwnerOnly] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
```
|
||||||
```
|
|
||||||
|
### OwnerOnly
|
||||||
### SkipOwner
|
```
|
||||||
```powershell
|
Get-GPOZaurrNetLogon [-OwnerOnly] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
Get-GPOZaurrNetLogon [-SkipOwner] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
### SkipOwner
|
||||||
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.
|
```
|
||||||
|
Get-GPOZaurrNetLogon [-SkipOwner] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
## EXAMPLES
|
[-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
||||||
|
```
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## DESCRIPTION
|
||||||
PS > Get-GPOZaurrNetLogon -Forest "contoso.com" -IncludeDomains "domain1", "domain2"
|
{{ Fill in the Description }}
|
||||||
Retrieves GPO information for the specified forest and domains.
|
|
||||||
```
|
## EXAMPLES
|
||||||
|
|
||||||
|
### Example 1
|
||||||
### EXAMPLE 2
|
```powershell
|
||||||
```powershell
|
PS C:\> {{ Add example code here }}
|
||||||
PS > Get-GPOZaurrNetLogon -OwnerOnly
|
```
|
||||||
Retrieves GPO information only for GPOs with identified owners.
|
|
||||||
```
|
{{ Add example description here }}
|
||||||
|
|
||||||
|
## PARAMETERS
|
||||||
### EXAMPLE 3
|
|
||||||
```powershell
|
### -ExcludeDomains
|
||||||
PS > Get-GPOZaurrNetLogon -SkipOwner
|
{{ Fill ExcludeDomains Description }}
|
||||||
Retrieves GPO information while skipping the owner check.
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
## PARAMETERS
|
Aliases:
|
||||||
|
|
||||||
### -ExcludeDomains
|
Required: False
|
||||||
Specifies an array of domains to exclude from GPO retrieval.
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String[]
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Default, OwnerOnly, SkipOwner
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: IDictionary
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -ExtendedForestInformation
|
Position: Named
|
||||||
Specifies additional forest information to include in the output.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: IDictionary
|
```
|
||||||
Parameter Sets: Default, OwnerOnly, SkipOwner
|
|
||||||
Aliases:
|
### -Forest
|
||||||
Possible values:
|
{{ Fill Forest Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases: ForestName
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -Forest
|
Default value: None
|
||||||
Specifies the forest name to retrieve GPO information from.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String
|
|
||||||
Parameter Sets: Default, OwnerOnly, SkipOwner
|
### -IncludeDomains
|
||||||
Aliases: ForestName
|
{{ Fill IncludeDomains Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: String[]
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases: Domain, Domains
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: None
|
||||||
### -IncludeDomains
|
Accept pipeline input: False
|
||||||
Specifies an array of domains to include in GPO retrieval.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String[]
|
### -OwnerOnly
|
||||||
Parameter Sets: Default, OwnerOnly, SkipOwner
|
{{ Fill OwnerOnly Description }}
|
||||||
Aliases: Domain, Domains
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
Required: False
|
Parameter Sets: OwnerOnly
|
||||||
Position: named
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -OwnerOnly
|
Accept wildcard characters: False
|
||||||
Specifies whether to include only GPOs with identified owners.
|
```
|
||||||
|
|
||||||
```yaml
|
### -SkipOwner
|
||||||
Type: SwitchParameter
|
{{ Fill SkipOwner Description }}
|
||||||
Parameter Sets: OwnerOnly
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: SkipOwner
|
||||||
Required: False
|
Aliases:
|
||||||
Position: named
|
|
||||||
Default value: False
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -SkipOwner
|
```
|
||||||
Specifies whether to skip checking the owner of GPOs.
|
|
||||||
|
### CommonParameters
|
||||||
```yaml
|
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).
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: SkipOwner
|
## INPUTS
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### None
|
||||||
|
|
||||||
Required: False
|
## OUTPUTS
|
||||||
Position: named
|
|
||||||
Default value: False
|
### System.Object
|
||||||
Accept pipeline input: False
|
## NOTES
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
## RELATED LINKS
|
||||||
|
|
||||||
### 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
|
|
||||||
|
|||||||
@@ -1,140 +1,138 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrOrganizationalUnit
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrOrganizationalUnit
|
||||||
Retrieves information about Group Policy Objects (GPOs) linked to Organizational Units (OUs) within a specified forest.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrOrganizationalUnit [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Option] <string[]>] [[-ExcludeOrganizationalUnit] <string[]>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrOrganizationalUnit [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Option] <String[]>]
|
||||||
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.
|
[[-ExcludeOrganizationalUnit] <String[]>] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
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"
|
## EXAMPLES
|
||||||
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.
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -ExcludeDomains
|
{{ Add example description here }}
|
||||||
Specifies an array of domains to exclude from processing.
|
|
||||||
|
## PARAMETERS
|
||||||
```yaml
|
|
||||||
Type: String[]
|
### -ExcludeDomains
|
||||||
Parameter Sets: __AllParameterSets
|
{{ Fill ExcludeDomains Description }}
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String[]
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 1
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 1
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -ExcludeOrganizationalUnit
|
Accept wildcard characters: False
|
||||||
Specifies an array of OUs to exclude from processing.
|
```
|
||||||
|
|
||||||
```yaml
|
### -ExcludeOrganizationalUnit
|
||||||
Type: String[]
|
{{ Fill ExcludeOrganizationalUnit Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: ExcludeOU, Exclusions
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: ExcludeOU, Exclusions
|
||||||
Position: 5
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 5
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Specifies additional information about the forest.
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
```yaml
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: IDictionary
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 3
|
Required: False
|
||||||
Default value: None
|
Position: 3
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Specifies the name of the forest to retrieve information from.
|
### -Forest
|
||||||
|
{{ Fill Forest Description }}
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: ForestName
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 0
|
Position: 0
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -IncludeDomains
|
||||||
Specifies an array of domains to include for processing.
|
{{ Fill IncludeDomains Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases: Domain, Domains
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 2
|
||||||
Position: 2
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -Option
|
||||||
### -Option
|
{{ Fill Option Description }}
|
||||||
Specifies the action to perform on the retrieved data. Valid values are 'OK', 'Unlink', or 'Delete'.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
Accepted values: OK, Unlink, Delete
|
||||||
Possible values: OK, Unlink, Delete
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 4
|
||||||
Position: 4
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### CommonParameters
|
||||||
### 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).
|
||||||
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
|
||||||
## INPUTS
|
|
||||||
|
### None
|
||||||
- `None`
|
|
||||||
|
## OUTPUTS
|
||||||
## OUTPUTS
|
|
||||||
|
### System.Object
|
||||||
- `None`
|
## NOTES
|
||||||
|
|
||||||
## RELATED LINKS
|
## RELATED LINKS
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+215
-219
@@ -1,219 +1,215 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrOwner
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrOwner
|
||||||
Gets owners of GPOs from Active Directory and SYSVOL
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Gets owners of GPOs from Active Directory and SYSVOL
|
||||||
### Default (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrOwner [-IncludeSysvol] [-SkipBroken] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <string[]>] [<CommonParameters>]
|
|
||||||
```
|
### Default (Default)
|
||||||
|
```
|
||||||
### GPOName
|
Get-GPOZaurrOwner [-IncludeSysvol] [-SkipBroken] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
```powershell
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
Get-GPOZaurrOwner [-GPOName <string>] [-IncludeSysvol] [-SkipBroken] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <string[]>] [<CommonParameters>]
|
[-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <String[]>] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
### GPOGUID
|
### GPOName
|
||||||
```powershell
|
```
|
||||||
Get-GPOZaurrOwner [-GPOGuid <string>] [-IncludeSysvol] [-SkipBroken] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <string[]>] [<CommonParameters>]
|
Get-GPOZaurrOwner [-GPOName <String>] [-IncludeSysvol] [-SkipBroken] [-Forest <String>]
|
||||||
```
|
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
|
[-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <String[]>] [<CommonParameters>]
|
||||||
## DESCRIPTION
|
```
|
||||||
Gets owners of GPOs from Active Directory and SYSVOL
|
|
||||||
|
### GPOGUID
|
||||||
## EXAMPLES
|
```
|
||||||
|
Get-GPOZaurrOwner [-GPOGuid <String>] [-IncludeSysvol] [-SkipBroken] [-Forest <String>]
|
||||||
### EXAMPLE 1
|
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
```powershell
|
[-ADAdministrativeGroups <IDictionary>] [-ApprovedOwner <String[]>] [<CommonParameters>]
|
||||||
PS > Get-GPOZaurrOwner -Verbose -IncludeSysvol
|
```
|
||||||
```
|
|
||||||
|
## DESCRIPTION
|
||||||
|
Gets owners of GPOs from Active Directory and SYSVOL
|
||||||
### EXAMPLE 2
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Get-GPOZaurrOwner -Verbose -IncludeSysvol -SkipBroken
|
|
||||||
```
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
|
Get-GPOZaurrOwner -Verbose -IncludeSysvol
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -ADAdministrativeGroups
|
### EXAMPLE 2
|
||||||
Ability to provide AD Administrative Groups from another command to speed up processing
|
```
|
||||||
|
Get-GPOZaurrOwner -Verbose -IncludeSysvol -SkipBroken
|
||||||
```yaml
|
```
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
## PARAMETERS
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -GPOName
|
||||||
|
Name of GPO.
|
||||||
Required: False
|
By default all GPOs are returned
|
||||||
Position: named
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String
|
||||||
Accept wildcard characters: True
|
Parameter Sets: GPOName
|
||||||
```
|
Aliases:
|
||||||
|
|
||||||
### -ApprovedOwner
|
Required: False
|
||||||
Ability to provide different owner (non administrative that still is approved for use)
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String[]
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
```
|
||||||
Aliases: Exclusion, Exclusions
|
|
||||||
Possible values:
|
### -GPOGuid
|
||||||
|
GUID of GPO.
|
||||||
Required: False
|
By default all GPOs are returned
|
||||||
Position: named
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String
|
||||||
Accept wildcard characters: True
|
Parameter Sets: GPOGUID
|
||||||
```
|
Aliases: GUID, GPOID
|
||||||
|
|
||||||
### -ExcludeDomains
|
Required: False
|
||||||
Exclude domain from search, by default whole forest is scanned
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String[]
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -IncludeSysvol
|
||||||
|
Includes Owner from SYSVOL as well
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: SwitchParameter
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -ExtendedForestInformation
|
Position: Named
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
Default value: False
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: IDictionary
|
```
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
|
||||||
Aliases:
|
### -SkipBroken
|
||||||
Possible values:
|
Doesn't display GPOs that have no SYSVOL content (orphaned GPOs)
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: SwitchParameter
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -Forest
|
Default value: False
|
||||||
Target different Forest, by default current forest is used
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String
|
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
### -Forest
|
||||||
Aliases: ForestName
|
Target different Forest, by default current forest is used
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: String
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases: ForestName
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: None
|
||||||
### -GPOGuid
|
Accept pipeline input: False
|
||||||
GUID of GPO. By default all GPOs are returned
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String
|
### -ExcludeDomains
|
||||||
Parameter Sets: GPOGUID
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Aliases: GUID, GPOID
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String[]
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: named
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -GPOName
|
Accept wildcard characters: False
|
||||||
Name of GPO. By default all GPOs are returned
|
```
|
||||||
|
|
||||||
```yaml
|
### -IncludeDomains
|
||||||
Type: String
|
Include only specific domains, by default whole forest is scanned
|
||||||
Parameter Sets: GPOName
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: Domain, Domains
|
||||||
Position: named
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -IncludeDomains
|
```
|
||||||
Include only specific domains, by default whole forest is scanned
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
```yaml
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
```yaml
|
||||||
Aliases: Domain, Domains
|
Type: IDictionary
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -IncludeSysvol
|
|
||||||
Includes Owner from SYSVOL as well
|
### -ADAdministrativeGroups
|
||||||
|
Ability to provide AD Administrative Groups from another command to speed up processing
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
```yaml
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
Type: IDictionary
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: False
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -SkipBroken
|
### -ApprovedOwner
|
||||||
Doesn't display GPOs that have no SYSVOL content (orphaned GPOs)
|
Ability to provide different owner (non administrative that still is approved for use)
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: String[]
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: Exclusion, Exclusions
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: False
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### CommonParameters
|
||||||
### 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).
|
||||||
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
|
||||||
## INPUTS
|
|
||||||
|
## OUTPUTS
|
||||||
- `None`
|
|
||||||
|
## NOTES
|
||||||
## OUTPUTS
|
General notes
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+122
-129
@@ -1,129 +1,122 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrPassword
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrPassword
|
||||||
Tries to find CPassword in Group Policies or given path and translate it to readable value
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Tries to find CPassword in Group Policies or given path and translate it to readable value
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrPassword [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <string[]>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrPassword [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <String[]>] [<CommonParameters>]
|
||||||
Tries to find CPassword in Group Policies or given path and translate it to readable value
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
Tries to find CPassword in Group Policies or given path and translate it to readable value
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Get-GPOZaurrPassword -GPOPath 'C:\Users\przemyslaw.klys\Desktop\GPOExport_2020.10.12'
|
|
||||||
```
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
|
Get-GPOZaurrPassword -GPOPath 'C:\Users\przemyslaw.klys\Desktop\GPOExport_2020.10.12'
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrPassword
|
### EXAMPLE 2
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrPassword
|
||||||
|
```
|
||||||
## PARAMETERS
|
|
||||||
|
## PARAMETERS
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
### -Forest
|
||||||
|
Target different Forest, by default current forest is used
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: ForestName
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 1
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -ExtendedForestInformation
|
### -ExcludeDomains
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
Exclude domain from search, by default whole forest is scanned
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: IDictionary
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 2
|
||||||
Position: 3
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -IncludeDomains
|
||||||
### -Forest
|
Include only specific domains, by default whole forest is scanned
|
||||||
Target different Forest, by default current forest is used
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: String
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases: Domain, Domains
|
||||||
Aliases: ForestName
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 3
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 0
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -ExtendedForestInformation
|
||||||
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
### -GPOPath
|
|
||||||
Path where Group Policy content is located or where backup is located
|
```yaml
|
||||||
|
Type: IDictionary
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String[]
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: 4
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 4
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -GPOPath
|
||||||
```
|
Path where Group Policy content is located or where backup is located
|
||||||
|
|
||||||
### -IncludeDomains
|
```yaml
|
||||||
Include only specific domains, by default whole forest is scanned
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases: Domain, Domains
|
Position: 5
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 2
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### CommonParameters
|
||||||
Accept wildcard characters: True
|
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
|
||||||
### 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).
|
## OUTPUTS
|
||||||
|
|
||||||
## INPUTS
|
## NOTES
|
||||||
|
General notes
|
||||||
- `None`
|
|
||||||
|
## RELATED LINKS
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+392
-42
@@ -1,42 +1,392 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrPermission
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrPermission
|
||||||
{{ Fill in the Synopsis }}
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
```powershell
|
|
||||||
Get-GPOZaurrPermission
|
## SYNTAX
|
||||||
```
|
|
||||||
|
### GPO (Default)
|
||||||
## DESCRIPTION
|
```
|
||||||
{{ Fill in the Description }}
|
Get-GPOZaurrPermission [-Principal <String[]>] [-PrincipalType <String>] [-Type <String[]>] [-SkipWellKnown]
|
||||||
|
[-SkipAdministrative] [-IncludeOwner] [-IncludePermissionType <GPPermissionType[]>]
|
||||||
## EXAMPLES
|
[-ExcludePermissionType <GPPermissionType[]>] [-PermitType <String>] [-ExcludePrincipal <String[]>]
|
||||||
|
[-ExcludePrincipalType <String>] [-IncludeGPOObject] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
### EXAMPLE 1
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
```powershell
|
[-ADAdministrativeGroups <IDictionary>] [-ReturnSecurityWhenNoData] [-ReturnSingleObject] [<CommonParameters>]
|
||||||
Get-GPOZaurrPermission
|
```
|
||||||
```
|
|
||||||
|
### GPOName
|
||||||
|
```
|
||||||
## PARAMETERS
|
Get-GPOZaurrPermission [-GPOName <String>] [-Principal <String[]>] [-PrincipalType <String>] [-Type <String[]>]
|
||||||
|
[-SkipWellKnown] [-SkipAdministrative] [-IncludeOwner] [-IncludePermissionType <GPPermissionType[]>]
|
||||||
### CommonParameters
|
[-ExcludePermissionType <GPPermissionType[]>] [-PermitType <String>] [-ExcludePrincipal <String[]>]
|
||||||
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).
|
[-ExcludePrincipalType <String>] [-IncludeGPOObject] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
## INPUTS
|
[-ADAdministrativeGroups <IDictionary>] [-ReturnSecurityWhenNoData] [-ReturnSingleObject] [<CommonParameters>]
|
||||||
|
```
|
||||||
- `None`
|
|
||||||
|
### GPOGUID
|
||||||
## OUTPUTS
|
```
|
||||||
|
Get-GPOZaurrPermission [-GPOGuid <String>] [-Principal <String[]>] [-PrincipalType <String>] [-Type <String[]>]
|
||||||
- `None`
|
[-SkipWellKnown] [-SkipAdministrative] [-IncludeOwner] [-IncludePermissionType <GPPermissionType[]>]
|
||||||
|
[-ExcludePermissionType <GPPermissionType[]>] [-PermitType <String>] [-ExcludePrincipal <String[]>]
|
||||||
## RELATED LINKS
|
[-ExcludePrincipalType <String>] [-IncludeGPOObject] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
- None
|
[-ADAdministrativeGroups <IDictionary>] [-ReturnSecurityWhenNoData] [-ReturnSingleObject] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
|
{{ 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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
@@ -1,108 +1,106 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrPermissionAnalysis
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrPermissionAnalysis
|
||||||
Analyzes permissions for Group Policy Objects (GPOs) and administrative groups.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrPermissionAnalysis [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-Permissions] <array>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrPermissionAnalysis [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-IncludeDomains] <String[]>] [[-Permissions] <Array>] [<CommonParameters>]
|
||||||
This function analyzes permissions for Group Policy Objects (GPOs) and identifies administrative groups with specific permissions.
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
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.
|
### Example 1
|
||||||
```
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
## PARAMETERS
|
|
||||||
|
{{ Add example description here }}
|
||||||
### -ExcludeDomains
|
|
||||||
Specifies an array of domains to exclude from the analysis.
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -ExcludeDomains
|
||||||
Type: String[]
|
{{ Fill ExcludeDomains Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: 1
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -Forest
|
```
|
||||||
Specifies the name of the forest to analyze.
|
|
||||||
|
### -Forest
|
||||||
```yaml
|
{{ Fill Forest Description }}
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases: ForestName
|
Type: String
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases: ForestName
|
||||||
Required: False
|
|
||||||
Position: 0
|
Required: False
|
||||||
Default value: None
|
Position: 0
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -IncludeDomains
|
|
||||||
Specifies an array of domains to include in the analysis.
|
### -IncludeDomains
|
||||||
|
{{ Fill IncludeDomains Description }}
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: Domain, Domains
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 2
|
Position: 2
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -Permissions
|
### -Permissions
|
||||||
Specifies an array of permissions to analyze.
|
{{ Fill Permissions Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: Array
|
Type: Array
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 3
|
||||||
Position: 3
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### CommonParameters
|
||||||
### 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).
|
||||||
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
|
||||||
## INPUTS
|
|
||||||
|
### None
|
||||||
- `None`
|
|
||||||
|
## OUTPUTS
|
||||||
## OUTPUTS
|
|
||||||
|
### System.Object
|
||||||
- `None`
|
## NOTES
|
||||||
|
|
||||||
## RELATED LINKS
|
## RELATED LINKS
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
@@ -1,205 +1,198 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrPermissionConsistency
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrPermissionConsistency
|
||||||
Retrieves information about Group Policy Objects (GPOs) and checks permission consistency across domains.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### Type (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrPermissionConsistency [-Type <string[]>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject] [-VerifyInheritance] [<CommonParameters>]
|
|
||||||
```
|
### Type (Default)
|
||||||
|
```
|
||||||
### GPOName
|
Get-GPOZaurrPermissionConsistency [-Type <String[]>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
```powershell
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject]
|
||||||
Get-GPOZaurrPermissionConsistency [-GPOName <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject] [-VerifyInheritance] [<CommonParameters>]
|
[-VerifyInheritance] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
### GPOGUID
|
### GPOName
|
||||||
```powershell
|
```
|
||||||
Get-GPOZaurrPermissionConsistency [-GPOGuid <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject] [-VerifyInheritance] [<CommonParameters>]
|
Get-GPOZaurrPermissionConsistency [-GPOName <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
```
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject]
|
||||||
|
[-VerifyInheritance] [<CommonParameters>]
|
||||||
## 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.
|
|
||||||
|
### GPOGUID
|
||||||
## EXAMPLES
|
```
|
||||||
|
Get-GPOZaurrPermissionConsistency [-GPOGuid <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
### EXAMPLE 1
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-IncludeGPOObject]
|
||||||
```powershell
|
[-VerifyInheritance] [<CommonParameters>]
|
||||||
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.
|
|
||||||
```
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
### EXAMPLE 2
|
## EXAMPLES
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrPermissionConsistency -GPOGuid "12345678-1234-1234-1234-1234567890AB" -Forest "Fabrikam" -Type "Inconsistent" -VerifyInheritance
|
### Example 1
|
||||||
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.
|
```powershell
|
||||||
```
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
## PARAMETERS
|
{{ Add example description here }}
|
||||||
|
|
||||||
### -ExcludeDomains
|
## PARAMETERS
|
||||||
Specifies an array of domains to exclude from the search.
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
{{ Fill ExcludeDomains Description }}
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Type, GPOName, GPOGUID
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -ExtendedForestInformation
|
|
||||||
Specifies additional information about the forest.
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
```yaml
|
|
||||||
Type: IDictionary
|
```yaml
|
||||||
Parameter Sets: Type, GPOName, GPOGUID
|
Type: IDictionary
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -Forest
|
### -Forest
|
||||||
Specifies the forest name to retrieve GPO information from.
|
{{ Fill Forest Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: Type, GPOName, GPOGUID
|
Parameter Sets: (All)
|
||||||
Aliases: ForestName
|
Aliases: ForestName
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -GPOGuid
|
||||||
### -GPOGuid
|
{{ Fill GPOGuid Description }}
|
||||||
Specifies the GUID of the GPO to retrieve.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String
|
||||||
Type: String
|
Parameter Sets: GPOGUID
|
||||||
Parameter Sets: GPOGUID
|
Aliases: GUID, GPOID
|
||||||
Aliases: GUID, GPOID
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: None
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -GPOName
|
||||||
|
{{ Fill GPOName Description }}
|
||||||
### -GPOName
|
|
||||||
Specifies the name of the GPO to retrieve.
|
```yaml
|
||||||
|
Type: String
|
||||||
```yaml
|
Parameter Sets: GPOName
|
||||||
Type: String
|
Aliases:
|
||||||
Parameter Sets: GPOName
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -IncludeDomains
|
||||||
```
|
{{ Fill IncludeDomains Description }}
|
||||||
|
|
||||||
### -IncludeDomains
|
```yaml
|
||||||
Specifies an array of domains to include in the search.
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases: Domain, Domains
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Type, GPOName, GPOGUID
|
Required: False
|
||||||
Aliases: Domain, Domains
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -IncludeGPOObject
|
||||||
Accept wildcard characters: True
|
{{ Fill IncludeGPOObject Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -IncludeGPOObject
|
Type: SwitchParameter
|
||||||
Indicates whether to include the GPO object in the output.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
Required: False
|
||||||
Parameter Sets: Type, GPOName, GPOGUID
|
Position: Named
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: named
|
|
||||||
Default value: False
|
### -Type
|
||||||
Accept pipeline input: False
|
{{ Fill Type Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -Type
|
Parameter Sets: Type
|
||||||
Specifies the type of consistency to check. Valid values are 'Consistent', 'Inconsistent', or 'All'.
|
Aliases:
|
||||||
|
Accepted values: Consistent, Inconsistent, All
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: Type
|
Position: Named
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values: Consistent, Inconsistent, All
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: named
|
|
||||||
Default value: All
|
### -VerifyInheritance
|
||||||
Accept pipeline input: False
|
{{ Fill VerifyInheritance Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
### -VerifyInheritance
|
Parameter Sets: (All)
|
||||||
Indicates whether to verify inheritance of permissions.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: SwitchParameter
|
Position: Named
|
||||||
Parameter Sets: Type, GPOName, GPOGUID
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: named
|
### CommonParameters
|
||||||
Default value: False
|
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).
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
## INPUTS
|
||||||
```
|
|
||||||
|
### None
|
||||||
### 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).
|
## OUTPUTS
|
||||||
|
|
||||||
## INPUTS
|
### System.Object
|
||||||
|
## NOTES
|
||||||
- `None`
|
|
||||||
|
## RELATED LINKS
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+104
-108
@@ -1,108 +1,104 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrPermissionIssue
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrPermissionIssue
|
||||||
Detects Group Policy missing Authenticated Users permission while not having higher permissions.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Detects Group Policy missing Authenticated Users permission while not having higher permissions.
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrPermissionIssue [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrPermissionIssue [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [<CommonParameters>]
|
||||||
Detects Group Policy missing Authenticated Users permission while not having higher permissions.
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
Detects Group Policy missing Authenticated Users permission while not having higher permissions.
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > $Issues = Get-GPOZaurrPermissionIssue
|
|
||||||
$Issues | Format-Table
|
### EXAMPLE 1
|
||||||
```
|
```
|
||||||
|
$Issues = Get-GPOZaurrPermissionIssue
|
||||||
|
```
|
||||||
## PARAMETERS
|
|
||||||
|
$Issues | Format-Table
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -Forest
|
||||||
Type: String[]
|
Target different Forest, by default current forest is used
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: ForestName
|
||||||
Position: 1
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 3
|
Required: False
|
||||||
Default value: None
|
Position: 2
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Target different Forest, by default current forest is used
|
### -IncludeDomains
|
||||||
|
Include only specific domains, by default whole forest is scanned
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 0
|
Position: 3
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -ExtendedForestInformation
|
||||||
Include only specific domains, by default whole forest is scanned
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: IDictionary
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 4
|
||||||
Position: 2
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### CommonParameters
|
||||||
### 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).
|
||||||
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
|
||||||
## INPUTS
|
|
||||||
|
## OUTPUTS
|
||||||
- `None`
|
|
||||||
|
## NOTES
|
||||||
## OUTPUTS
|
General notes
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+154
-161
@@ -1,161 +1,154 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrPermissionRoot
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrPermissionRoot
|
||||||
Retrieves the root permissions of Group Policy Objects (GPOs) based on specified criteria.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrPermissionRoot [[-IncludePermissionType] <string[]>] [[-ExcludePermissionType] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-SkipNames] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrPermissionRoot [[-IncludePermissionType] <String[]>] [[-ExcludePermissionType] <String[]>]
|
||||||
## DESCRIPTION
|
[[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
Retrieves the root permissions of GPOs based on the specified criteria, including filtering by permission types, forest, domains, and more.
|
[[-ExtendedForestInformation] <IDictionary>] [-SkipNames] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrPermissionRoot -IncludePermissionType 'GpoRootCreate' -ExcludePermissionType 'GpoRootOwner' -Forest 'ExampleForest' -IncludeDomains 'Domain1', 'Domain2' -ExtendedForestInformation $ForestInfo -SkipNames
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
### EXAMPLE 2
|
PS C:\> {{ Add example code here }}
|
||||||
```powershell
|
```
|
||||||
PS > Get-GPOZaurrPermissionRoot -IncludePermissionType 'GpoRootOwner' -ExcludePermissionType 'GpoRootCreate' -Forest 'AnotherForest' -ExcludeDomains 'Domain3' -SkipNames
|
|
||||||
```
|
{{ Add example description here }}
|
||||||
|
|
||||||
|
## PARAMETERS
|
||||||
## PARAMETERS
|
|
||||||
|
### -ExcludeDomains
|
||||||
### -ExcludeDomains
|
{{ Fill ExcludeDomains Description }}
|
||||||
Specifies domains to exclude from the search.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 3
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 3
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -ExcludePermissionType
|
||||||
|
{{ Fill ExcludePermissionType Description }}
|
||||||
### -ExcludePermissionType
|
|
||||||
Specifies the root permission types to exclude from the search.
|
```yaml
|
||||||
|
Type: String[]
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String[]
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
Accepted values: GpoRootCreate, GpoRootOwner
|
||||||
Aliases:
|
|
||||||
Possible values: GpoRootCreate, GpoRootOwner
|
Required: False
|
||||||
|
Position: 1
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 1
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
### -ExtendedForestInformation
|
|
||||||
Provides additional forest information to speed up processing.
|
```yaml
|
||||||
|
Type: IDictionary
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: IDictionary
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: 5
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 5
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -Forest
|
||||||
```
|
{{ Fill Forest Description }}
|
||||||
|
|
||||||
### -Forest
|
```yaml
|
||||||
Specifies the target forest. By default, the current forest is used.
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases: ForestName
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases: ForestName
|
Position: 2
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 2
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -IncludeDomains
|
||||||
Accept wildcard characters: True
|
{{ Fill IncludeDomains Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -IncludeDomains
|
Type: String[]
|
||||||
Specifies domains to include in the search.
|
Parameter Sets: (All)
|
||||||
|
Aliases: Domain, Domains
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 4
|
||||||
Aliases: Domain, Domains
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 4
|
|
||||||
Default value: None
|
### -IncludePermissionType
|
||||||
Accept pipeline input: False
|
{{ Fill IncludePermissionType Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -IncludePermissionType
|
Parameter Sets: (All)
|
||||||
Specifies the root permission types to include in the search.
|
Aliases:
|
||||||
|
Accepted values: GpoRootCreate, GpoRootOwner
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 0
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values: GpoRootCreate, GpoRootOwner
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 0
|
|
||||||
Default value: None
|
### -SkipNames
|
||||||
Accept pipeline input: False
|
{{ Fill SkipNames Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
### -SkipNames
|
Parameter Sets: (All)
|
||||||
Skips processing names during the operation.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: SwitchParameter
|
Position: Named
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: named
|
### CommonParameters
|
||||||
Default value: False
|
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).
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
## INPUTS
|
||||||
```
|
|
||||||
|
### None
|
||||||
### 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).
|
## OUTPUTS
|
||||||
|
|
||||||
## INPUTS
|
### System.Object
|
||||||
|
## NOTES
|
||||||
- `None`
|
|
||||||
|
## RELATED LINKS
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
@@ -1,193 +1,187 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrPermissionSummary
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrPermissionSummary
|
||||||
Retrieves a summary of Group Policy Object (GPO) permissions based on specified criteria.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrPermissionSummary [[-Type] <string[]>] [[-PermitType] <string>] [[-IncludePermissionType] <string[]>] [[-ExcludePermissionType] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Separator] <string>] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrPermissionSummary [[-Type] <String[]>] [[-PermitType] <String>]
|
||||||
## DESCRIPTION
|
[[-IncludePermissionType] <String[]>] [[-ExcludePermissionType] <String[]>] [[-Forest] <String>]
|
||||||
Retrieves a summary of GPO permissions based on the specified criteria, including filtering by permission types, permit types, and more.
|
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>]
|
||||||
|
[[-Separator] <String>] [<CommonParameters>]
|
||||||
## EXAMPLES
|
```
|
||||||
|
|
||||||
### EXAMPLE 1
|
## DESCRIPTION
|
||||||
```powershell
|
{{ Fill in the Description }}
|
||||||
PS > Get-GPOZaurrPermissionSummary -Type 'All' -PermitType 'Allow' -IncludePermissionType 'GpoApply', 'GpoEdit' -ExcludePermissionType 'GpoOwner' -Forest 'ExampleForest' -IncludeDomains 'Domain1', 'Domain2' -ExtendedForestInformation $ForestInfo -Separator '|'
|
|
||||||
```
|
## EXAMPLES
|
||||||
|
|
||||||
|
### Example 1
|
||||||
### EXAMPLE 2
|
```powershell
|
||||||
```powershell
|
PS C:\> {{ Add example code here }}
|
||||||
PS > Get-GPOZaurrPermissionSummary -Type 'Administrative' -PermitType 'All' -IncludePermissionType 'GpoRead' -ExcludePermissionType 'GpoRootOwner' -Forest 'AnotherForest' -ExcludeDomains 'Domain3' -Separator ','
|
```
|
||||||
```
|
|
||||||
|
{{ Add example description here }}
|
||||||
|
|
||||||
## PARAMETERS
|
## PARAMETERS
|
||||||
|
|
||||||
### -ExcludeDomains
|
### -ExcludeDomains
|
||||||
Specifies domains to exclude from the search.
|
{{ Fill ExcludeDomains Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 5
|
||||||
Position: 5
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -ExcludePermissionType
|
||||||
### -ExcludePermissionType
|
{{ Fill ExcludePermissionType Description }}
|
||||||
Specifies the permission types to exclude from the summary.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
Accepted values: GpoApply, GpoEdit, GpoCustom, GpoEditDeleteModifySecurity, GpoRead, GpoOwner, GpoRootCreate, GpoRootOwner
|
||||||
Possible values: GpoApply, GpoEdit, GpoCustom, GpoEditDeleteModifySecurity, GpoRead, GpoOwner, GpoRootCreate, GpoRootOwner
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 3
|
||||||
Position: 3
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
### -ExtendedForestInformation
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Provides additional forest information to speed up processing.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: IDictionary
|
||||||
Type: IDictionary
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 7
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 7
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -Forest
|
||||||
|
{{ Fill Forest Description }}
|
||||||
### -Forest
|
|
||||||
Specifies the target forest. By default, the current forest is used.
|
```yaml
|
||||||
|
Type: String
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String
|
Aliases: ForestName
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: ForestName
|
Required: False
|
||||||
Possible values:
|
Position: 4
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 4
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -IncludeDomains
|
||||||
```
|
{{ Fill IncludeDomains Description }}
|
||||||
|
|
||||||
### -IncludeDomains
|
```yaml
|
||||||
Specifies domains to include in the search.
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases: Domain, Domains
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases: Domain, Domains
|
Position: 6
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 6
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -IncludePermissionType
|
||||||
Accept wildcard characters: True
|
{{ Fill IncludePermissionType Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -IncludePermissionType
|
Type: String[]
|
||||||
Specifies the permission types to include in the summary.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
Accepted values: GpoApply, GpoEdit, GpoCustom, GpoEditDeleteModifySecurity, GpoRead, GpoOwner, GpoRootCreate, GpoRootOwner
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: 2
|
||||||
Possible values: GpoApply, GpoEdit, GpoCustom, GpoEditDeleteModifySecurity, GpoRead, GpoOwner, GpoRootCreate, GpoRootOwner
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 2
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -PermitType
|
||||||
Accept wildcard characters: True
|
{{ Fill PermitType Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -PermitType
|
Type: String
|
||||||
Specifies the type of permission to permit. Options include 'Allow', 'Deny', and 'All'.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
Accepted values: Allow, Deny, All
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: 1
|
||||||
Possible values: Allow, Deny, All
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 1
|
```
|
||||||
Default value: All
|
|
||||||
Accept pipeline input: False
|
### -Separator
|
||||||
Accept wildcard characters: True
|
{{ Fill Separator Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -Separator
|
Type: String
|
||||||
Specifies the separator to use in the output.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: String
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 8
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 8
|
|
||||||
Default value: None
|
### -Type
|
||||||
Accept pipeline input: False
|
{{ Fill Type Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -Type
|
Parameter Sets: (All)
|
||||||
Specifies the type of permissions to include. Options include 'AuthenticatedUsers', 'DomainComputers', 'Unknown', 'WellKnownAdministrative', 'NotWellKnown', 'NotWellKnownAdministrative', 'NotAdministrative', 'Administrative', and 'All'.
|
Aliases:
|
||||||
|
Accepted values: AuthenticatedUsers, DomainComputers, Unknown, WellKnownAdministrative, NotWellKnown, NotWellKnownAdministrative, NotAdministrative, Administrative, All
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 0
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values: AuthenticatedUsers, DomainComputers, Unknown, WellKnownAdministrative, NotWellKnown, NotWellKnownAdministrative, NotAdministrative, Administrative, All
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 0
|
|
||||||
Default value: All
|
### CommonParameters
|
||||||
Accept pipeline input: False
|
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).
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
## INPUTS
|
||||||
|
|
||||||
### CommonParameters
|
### None
|
||||||
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).
|
|
||||||
|
## OUTPUTS
|
||||||
## INPUTS
|
|
||||||
|
### System.Object
|
||||||
- `None`
|
## NOTES
|
||||||
|
|
||||||
## OUTPUTS
|
## RELATED LINKS
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
@@ -1,213 +0,0 @@
|
|||||||
---
|
|
||||||
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
|
|
||||||
+170
-172
@@ -1,172 +1,170 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrSysvolDFSR
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrSysvolDFSR
|
||||||
Gets DFSR information from the SYSVOL DFSR
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Gets DFSR information from the SYSVOL DFSR
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrSysvolDFSR [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-ExcludeDomainControllers] <string[]>] [[-IncludeDomains] <string[]>] [[-IncludeDomainControllers] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-SearchDFSR] <string>] [-SkipRODC] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrSysvolDFSR [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExcludeDomainControllers] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
Gets DFSR information from the SYSVOL DFSR
|
[[-IncludeDomainControllers] <String[]>] [-SkipRODC] [[-ExtendedForestInformation] <IDictionary>]
|
||||||
|
[[-SearchDFSR] <String>] [<CommonParameters>]
|
||||||
## EXAMPLES
|
```
|
||||||
|
|
||||||
### EXAMPLE 1
|
## DESCRIPTION
|
||||||
```powershell
|
Gets DFSR information from the SYSVOL DFSR
|
||||||
PS > $DFSR = Get-GPOZaurrSysvolDFSR
|
|
||||||
$DFSR | Format-Table *
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
## PARAMETERS
|
$DFSR = Get-GPOZaurrSysvolDFSR
|
||||||
|
```
|
||||||
### -ExcludeDomainControllers
|
|
||||||
Exclude specific domain controllers, by default there are no exclusions, as long as VerifyDomainControllers switch is enabled. Otherwise this parameter is ignored.
|
$DFSR | Format-Table *
|
||||||
|
|
||||||
```yaml
|
## PARAMETERS
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -Forest
|
||||||
Aliases:
|
Target different Forest, by default current forest is used
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: String
|
||||||
Position: 2
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases: ForestName
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: 1
|
||||||
|
Default value: None
|
||||||
### -ExcludeDomains
|
Accept pipeline input: False
|
||||||
Exclude domain from search, by default whole forest is scanned
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String[]
|
### -ExcludeDomains
|
||||||
Parameter Sets: __AllParameterSets
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String[]
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 1
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 2
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -ExtendedForestInformation
|
Accept wildcard characters: False
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
```
|
||||||
|
|
||||||
```yaml
|
### -ExcludeDomainControllers
|
||||||
Type: IDictionary
|
Exclude specific domain controllers, by default there are no exclusions, as long as VerifyDomainControllers switch is enabled.
|
||||||
Parameter Sets: __AllParameterSets
|
Otherwise this parameter is ignored.
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String[]
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 5
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 3
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -Forest
|
Accept wildcard characters: False
|
||||||
Target different Forest, by default current forest is used
|
```
|
||||||
|
|
||||||
```yaml
|
### -IncludeDomains
|
||||||
Type: String
|
Include only specific domains, by default whole forest is scanned
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: ForestName
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: Domain, Domains
|
||||||
Position: 0
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 4
|
||||||
Accept wildcard characters: True
|
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.
|
|
||||||
|
### -IncludeDomainControllers
|
||||||
```yaml
|
Include only specific domain controllers, by default all domain controllers are included, as long as VerifyDomainControllers switch is enabled.
|
||||||
Type: String[]
|
Otherwise this parameter is ignored.
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: DomainControllers
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: DomainControllers
|
||||||
Position: 4
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 5
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -IncludeDomains
|
```
|
||||||
Include only specific domains, by default whole forest is scanned
|
|
||||||
|
### -SkipRODC
|
||||||
```yaml
|
Skip Read-Only Domain Controllers.
|
||||||
Type: String[]
|
By default all domain controllers are included.
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: Domain, Domains
|
```yaml
|
||||||
Possible values:
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: 3
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: False
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -SearchDFSR
|
```
|
||||||
Define DFSR Share. By default it uses SYSVOL Share
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
```yaml
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: IDictionary
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 6
|
Required: False
|
||||||
Default value: SYSVOL Share
|
Position: 6
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -SkipRODC
|
|
||||||
Skip Read-Only Domain Controllers. By default all domain controllers are included.
|
### -SearchDFSR
|
||||||
|
Define DFSR Share.
|
||||||
```yaml
|
By default it uses SYSVOL Share
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: False
|
Position: 7
|
||||||
Accept pipeline input: False
|
Default value: SYSVOL Share
|
||||||
Accept wildcard characters: True
|
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).
|
### 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
|
|
||||||
|
## INPUTS
|
||||||
- `None`
|
|
||||||
|
## OUTPUTS
|
||||||
## OUTPUTS
|
|
||||||
|
## NOTES
|
||||||
- `None`
|
General notes
|
||||||
|
|
||||||
## RELATED LINKS
|
## RELATED LINKS
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+178
-182
@@ -1,182 +1,178 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrUpdates
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrUpdates
|
||||||
Gets the list of GPOs created or updated in the last X number of days.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Gets the list of GPOs created or updated in the last X number of days.
|
||||||
### DateRange (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrUpdates -DateRange <string> [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
|
||||||
```
|
### DateRange (Default)
|
||||||
|
```
|
||||||
### Dates
|
Get-GPOZaurrUpdates [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
```powershell
|
-DateRange <String> [-DateProperty <String[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
||||||
Get-GPOZaurrUpdates -DateFrom <datetime> -DateTo <datetime> [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-DateProperty <string[]>] [-ExtendedForestInformation <IDictionary>] [<CommonParameters>]
|
```
|
||||||
```
|
|
||||||
|
### Dates
|
||||||
## DESCRIPTION
|
```
|
||||||
Gets the list of GPOs created or updated in the last X number of days.
|
Get-GPOZaurrUpdates [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
|
-DateFrom <DateTime> -DateTo <DateTime> [-DateProperty <String[]>] [-ExtendedForestInformation <IDictionary>]
|
||||||
## EXAMPLES
|
[<CommonParameters>]
|
||||||
|
```
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## DESCRIPTION
|
||||||
PS > Get-GPOZaurrUpdates -DateRange Last14Days -DateProperty WhenCreated, WhenChanged -Verbose -IncludeDomains 'ad.evotec.pl' | Format-List
|
Gets the list of GPOs created or updated in the last X number of days.
|
||||||
```
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
### EXAMPLE 2
|
### EXAMPLE 1
|
||||||
```powershell
|
```
|
||||||
PS > Get-GPOZaurrUpdates -DateRange Last14Days -DateProperty WhenCreated -Verbose | Format-Table
|
Get-GPOZaurrUpdates -DateRange Last14Days -DateProperty WhenCreated, WhenChanged -Verbose -IncludeDomains 'ad.evotec.pl' | Format-List
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### EXAMPLE 2
|
||||||
## PARAMETERS
|
```
|
||||||
|
Get-GPOZaurrUpdates -DateRange Last14Days -DateProperty WhenCreated -Verbose | Format-Table
|
||||||
### -DateFrom
|
```
|
||||||
Provide a date from which to start the search, by default the last X days are used
|
|
||||||
|
## PARAMETERS
|
||||||
```yaml
|
|
||||||
Type: DateTime
|
### -Forest
|
||||||
Parameter Sets: Dates
|
Target different Forest, by default current forest is used
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String
|
||||||
Required: True
|
Parameter Sets: (All)
|
||||||
Position: named
|
Aliases: ForestName
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -DateProperty
|
Accept wildcard characters: False
|
||||||
Choose a date property. It can be WhenCreated or WhenChanged or both. By default whenCreated is used for comparison purposes
|
```
|
||||||
|
|
||||||
```yaml
|
### -ExcludeDomains
|
||||||
Type: String[]
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Parameter Sets: DateRange, Dates
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values: WhenCreated, WhenChanged
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: named
|
|
||||||
Default value: WhenCreated
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -DateRange
|
```
|
||||||
Provide a date range to search for, by default the last X days are used
|
|
||||||
|
### -IncludeDomains
|
||||||
```yaml
|
Include only specific domains, by default whole forest is scanned
|
||||||
Type: String
|
ą
|
||||||
Parameter Sets: DateRange
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values: PastHour, CurrentHour, PastDay, CurrentDay, PastMonth, CurrentMonth, PastQuarter, CurrentQuarter, Last14Days, Last21Days, Last30Days, Last7Days, Last3Days, Last1Days
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: True
|
Aliases: Domain, Domains
|
||||||
Position: named
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -DateTo
|
```
|
||||||
Provide a date to which to end the search, by default the last X days are used
|
|
||||||
|
### -DateFrom
|
||||||
```yaml
|
Provide a date from which to start the search, by default the last X days are used
|
||||||
Type: DateTime
|
|
||||||
Parameter Sets: Dates
|
```yaml
|
||||||
Aliases:
|
Type: DateTime
|
||||||
Possible values:
|
Parameter Sets: Dates
|
||||||
|
Aliases:
|
||||||
Required: True
|
|
||||||
Position: named
|
Required: True
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
### -DateTo
|
||||||
|
Provide a date to which to end the search, by default the last X days are used
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: DateRange, Dates
|
Type: DateTime
|
||||||
Aliases:
|
Parameter Sets: Dates
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: True
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -ExtendedForestInformation
|
### -DateRange
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
Provide a date range to search for, by default the last X days are used
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: IDictionary
|
Type: String
|
||||||
Parameter Sets: DateRange, Dates
|
Parameter Sets: DateRange
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: True
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -DateProperty
|
||||||
### -Forest
|
Choose a date property.
|
||||||
Target different Forest, by default current forest is used
|
It can be WhenCreated or WhenChanged or both.
|
||||||
|
By default whenCreated is used for comparison purposes
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: DateRange, Dates
|
Type: String[]
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: WhenCreated
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -ExtendedForestInformation
|
||||||
Include only specific domains, by default whole forest is scanned
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: IDictionary
|
||||||
Parameter Sets: DateRange, Dates
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### CommonParameters
|
||||||
### 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).
|
||||||
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
|
||||||
## INPUTS
|
|
||||||
|
## OUTPUTS
|
||||||
- `None`
|
|
||||||
|
## NOTES
|
||||||
## OUTPUTS
|
General notes
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+153
-161
@@ -1,161 +1,153 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Get-GPOZaurrWMI
|
|
||||||
## SYNOPSIS
|
# Get-GPOZaurrWMI
|
||||||
Get Group Policy WMI filter
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Get Group Policy WMI filter
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Get-GPOZaurrWMI [[-Guid] <guid[]>] [[-Name] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-AsHashtable] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Get-GPOZaurrWMI [[-Guid] <Guid[]>] [[-Name] <String[]>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-AsHashtable]
|
||||||
Get Group Policy WMI filter
|
[<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
Get Group Policy WMI filter
|
||||||
```powershell
|
|
||||||
PS > Get-GPOZaurrWMI -AsHashtable
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
### EXAMPLE 2
|
Get-GPOZaurrWMI -AsHashtable
|
||||||
```powershell
|
```
|
||||||
PS > Get-GPOZaurrWMI | Format-Table
|
|
||||||
```
|
### EXAMPLE 2
|
||||||
|
```
|
||||||
|
Get-GPOZaurrWMI | Format-Table
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -AsHashtable
|
## PARAMETERS
|
||||||
Return output as hashtable
|
|
||||||
|
### -Guid
|
||||||
```yaml
|
Search for specific filter using GUID
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: Guid[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: False
|
Position: 1
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
### -Name
|
||||||
|
Search for specific filter using Name
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 3
|
Position: 2
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -ExtendedForestInformation
|
### -Forest
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
Target different Forest, by default current forest is used
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: IDictionary
|
Type: String
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: ForestName
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 3
|
||||||
Position: 5
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -ExcludeDomains
|
||||||
### -Forest
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Target different Forest, by default current forest is used
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: String
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases: ForestName
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 4
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 2
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -IncludeDomains
|
||||||
|
Include only specific domains, by default whole forest is scanned
|
||||||
### -Guid
|
|
||||||
Search for specific filter using GUID
|
```yaml
|
||||||
|
Type: String[]
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: Guid[]
|
Aliases: Domain, Domains
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: 5
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 0
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -ExtendedForestInformation
|
||||||
```
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
### -IncludeDomains
|
```yaml
|
||||||
Include only specific domains, by default whole forest is scanned
|
Type: IDictionary
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases: Domain, Domains
|
Position: 6
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 4
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -AsHashtable
|
||||||
Accept wildcard characters: True
|
Return output as hashtable
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -Name
|
Type: SwitchParameter
|
||||||
Search for specific filter using Name
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: Named
|
||||||
Aliases:
|
Default value: False
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 1
|
|
||||||
Default value: None
|
### CommonParameters
|
||||||
Accept pipeline input: False
|
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).
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
## INPUTS
|
||||||
|
|
||||||
### CommonParameters
|
## OUTPUTS
|
||||||
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).
|
|
||||||
|
## NOTES
|
||||||
## INPUTS
|
General notes
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+253
-295
@@ -1,295 +1,253 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Invoke-GPOZaurr
|
|
||||||
## SYNOPSIS
|
# Invoke-GPOZaurr
|
||||||
Single cmdlet that provides 360 degree overview of Group Policies in Active Directory Forest.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Single cmdlet that provides 360 degree overview of Group Policies in Active Directory Forest.
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
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>]
|
|
||||||
```
|
```
|
||||||
|
Invoke-GPOZaurr [[-Exclusions] <Object>] [-FilePath <String>] [[-Type] <String[]>] [-PassThru] [-HideHTML]
|
||||||
## DESCRIPTION
|
[-HideSteps] [-ShowError] [-ShowWarning] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
Single cmdlet that provides 360 degree overview of Group Policies in Active Directory Forest with ability to pick reports and export to HTML.
|
[-IncludeDomains <String[]>] [-Online] [-SplitReports] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
Single cmdlet that provides 360 degree overview of Group Policies in Active Directory Forest with ability to pick reports and export to HTML.
|
||||||
```powershell
|
|
||||||
PS > Invoke-GPOZaurr
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
### EXAMPLE 2
|
Invoke-GPOZaurr
|
||||||
```powershell
|
```
|
||||||
PS > Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html -Exclusions @(
|
|
||||||
'*OU=Production,DC=ad,DC=evotec,DC=pl'
|
### EXAMPLE 2
|
||||||
)
|
```
|
||||||
```
|
Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html -Exclusions @(
|
||||||
|
```
|
||||||
|
|
||||||
## PARAMETERS
|
'*OU=Production,DC=ad,DC=evotec,DC=pl'
|
||||||
|
)
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -Exclusions
|
||||||
Type: String[]
|
Allows to mark as excluded some Group Policies or Organizational Units depending on type.
|
||||||
Parameter Sets: __AllParameterSets
|
Can be a scriptblock or array depending on supported way by underlying report.
|
||||||
Aliases:
|
Not every report support exclusions.
|
||||||
Possible values:
|
Not every report support exclusions the same way.
|
||||||
|
Exclusions should be used only if there is single report being asked for.
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: Object
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases: ExcludeGroupPolicies, ExclusionsCode
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -Exclusions
|
Position: 2
|
||||||
Allows to mark as excluded some Group Policies or Organizational Units depending on type.
|
Default value: None
|
||||||
Can be a scriptblock or array depending on supported way by underlying report.
|
Accept pipeline input: False
|
||||||
Not every report support exclusions.
|
Accept wildcard characters: False
|
||||||
Not every report support exclusions the same way.
|
```
|
||||||
Exclusions should be used only if there is single report being asked for.
|
|
||||||
|
### -FilePath
|
||||||
```yaml
|
Path to the file where the report will be saved.
|
||||||
Type: Object
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases: ExcludeGroupPolicies, ExclusionsCode
|
Type: String
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 1
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -FilePath
|
|
||||||
Path to the file where the report will be saved.
|
### -Type
|
||||||
|
Type of report to be generated from a list of available reports.
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: 1
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -Forest
|
### -PassThru
|
||||||
Target different Forest, by default current forest is used
|
Returns created objects after the report is done
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: SwitchParameter
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: ForestName
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: False
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -HideHTML
|
||||||
### -GPOGUID
|
Do not auto open HTML report in default browser
|
||||||
{{ Fill GPOGUID Description }}
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: SwitchParameter
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases: GUID
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: False
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -HideSteps
|
||||||
|
Do not show steps in report
|
||||||
### -GPOName
|
|
||||||
{{ Fill GPOName Description }}
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String[]
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: Name
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: False
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -ShowError
|
||||||
```
|
Show errors in HTML report.
|
||||||
|
Useful in case the report is being run as Scheduled Task
|
||||||
### -HideHTML
|
|
||||||
Do not auto open HTML report in default browser
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: SwitchParameter
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: False
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
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
|
||||||
### -HideSteps
|
|
||||||
Do not show steps in report
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: SwitchParameter
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: False
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: False
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -Forest
|
||||||
```
|
Target different Forest, by default current forest is used
|
||||||
|
|
||||||
### -IncludeDomains
|
```yaml
|
||||||
Include only specific domains, by default whole forest is scanned
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases: ForestName
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases: Domain, Domains
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -ExcludeDomains
|
||||||
Accept wildcard characters: True
|
Exclude domain from search, by default whole forest is scanned
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -Online
|
Type: String[]
|
||||||
Forces report to use online resources in HTML (using CDN most of the time), by default it is run offline, and inlines all CSS/JS code.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: Named
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: named
|
|
||||||
Default value: False
|
### -IncludeDomains
|
||||||
Accept pipeline input: False
|
Include only specific domains, by default whole forest is scanned
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -PassThru
|
Parameter Sets: (All)
|
||||||
Returns created objects after the report is done
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: SwitchParameter
|
Position: Named
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: named
|
### -Online
|
||||||
Default value: False
|
Forces report to use online resources in HTML (using CDN most of the time), by default it is run offline, and inlines all CSS/JS code.
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
### -ShowError
|
Aliases:
|
||||||
Show errors in HTML report. Useful in case the report is being run as Scheduled Task
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: Named
|
||||||
Type: SwitchParameter
|
Default value: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -SplitReports
|
||||||
Position: named
|
Split report into multiple files, one for each report.
|
||||||
Default value: False
|
This can be useful for large domains with huge reports.
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
### -ShowWarning
|
Aliases:
|
||||||
Show warnings in HTML report. Useful in case the report is being run as Scheduled Task
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: Named
|
||||||
Type: SwitchParameter
|
Default value: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### CommonParameters
|
||||||
Position: named
|
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).
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
## INPUTS
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
## OUTPUTS
|
||||||
|
|
||||||
### -SplitReports
|
## NOTES
|
||||||
Split report into multiple files, one for each report. This can be useful for large domains with huge reports.
|
General notes
|
||||||
|
|
||||||
```yaml
|
## RELATED LINKS
|
||||||
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
|
|
||||||
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
|
|
||||||
|
|||||||
+312
-367
@@ -1,367 +1,312 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Invoke-GPOZaurrContent
|
|
||||||
## SYNOPSIS
|
# Invoke-GPOZaurrContent
|
||||||
Invokes GPOZaurrContent function to retrieve Group Policy Objects information.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### Default (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
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>]
|
|
||||||
```
|
### Default (Default)
|
||||||
|
```
|
||||||
### Local
|
Invoke-GPOZaurrContent [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
```powershell
|
[-ExtendedForestInformation <IDictionary>] [-Type <String[]>] [-Splitter <String>] [-FullObjects]
|
||||||
Invoke-GPOZaurrContent [-GPOPath <string>] [-Type <string[]>] [-Splitter <string>] [-FullObjects] [-OutputType <string[]>] [-OutputPath <string>] [-Open] [-Online] [-CategoriesOnly] [-SingleObject] [-SkipNormalize] [-SkipCleanup] [-Extended] [<CommonParameters>]
|
[-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.
|
### Local
|
||||||
|
```
|
||||||
## EXAMPLES
|
Invoke-GPOZaurrContent [-GPOPath <String>] [-Type <String[]>] [-Splitter <String>] [-FullObjects]
|
||||||
|
[-OutputType <String[]>] [-OutputPath <String>] [-Open] [-Online] [-CategoriesOnly] [-SingleObject]
|
||||||
### EXAMPLE 1
|
[-SkipNormalize] [-SkipCleanup] [-Extended] [<CommonParameters>]
|
||||||
```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.
|
## DESCRIPTION
|
||||||
```
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
### EXAMPLE 2
|
|
||||||
```powershell
|
### Example 1
|
||||||
PS > Invoke-GPOZaurrContent -GPOPath "CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=Contoso,DC=com" -Type "All" -OutputType "Object"
|
```powershell
|
||||||
Retrieves all information for a specific Group Policy Object and outputs the result as an object.
|
PS C:\> {{ Add example code here }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{ Add example description here }}
|
||||||
### EXAMPLE 3
|
|
||||||
```powershell
|
## PARAMETERS
|
||||||
PS > Invoke-GPOZaurrContent -GPOName "Group Policy Test" -SingleObject | ConvertTo-Json -Depth 3
|
|
||||||
Quickly view GPO settings by name in JSON format for easy inspection.
|
### -CategoriesOnly
|
||||||
```
|
{{ Fill CategoriesOnly Description }}
|
||||||
|
|
||||||
|
```yaml
|
||||||
## PARAMETERS
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
### -CategoriesOnly
|
Aliases:
|
||||||
Indicates whether to retrieve only categories.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: Named
|
||||||
Type: SwitchParameter
|
Default value: None
|
||||||
Parameter Sets: Default, Local
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -ExcludeDomains
|
||||||
Position: named
|
{{ Fill ExcludeDomains Description }}
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: String[]
|
||||||
```
|
Parameter Sets: Default
|
||||||
|
Aliases:
|
||||||
### -ExcludeDomains
|
|
||||||
Specifies an array of domains to exclude from the search.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String[]
|
Accept pipeline input: False
|
||||||
Parameter Sets: Default
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### -Extended
|
||||||
Required: False
|
{{ Fill Extended Description }}
|
||||||
Position: named
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: SwitchParameter
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases:
|
||||||
|
|
||||||
### -Extended
|
Required: False
|
||||||
{{ Fill Extended Description }}
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: SwitchParameter
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Default, Local
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: False
|
Type: IDictionary
|
||||||
Accept pipeline input: False
|
Parameter Sets: Default
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -ExtendedForestInformation
|
Position: Named
|
||||||
Specifies additional information about the forest.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: IDictionary
|
```
|
||||||
Parameter Sets: Default
|
|
||||||
Aliases:
|
### -Forest
|
||||||
Possible values:
|
{{ Fill Forest Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: Default
|
||||||
Accept pipeline input: False
|
Aliases: ForestName
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -Forest
|
Default value: None
|
||||||
Specifies the forest name to search for Group Policy Objects.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String
|
|
||||||
Parameter Sets: Default
|
### -FullObjects
|
||||||
Aliases: ForestName
|
{{ Fill FullObjects Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: SwitchParameter
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: None
|
||||||
### -FullObjects
|
Accept pipeline input: False
|
||||||
Indicates whether to retrieve full objects.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
### -GPOPath
|
||||||
Parameter Sets: Default, Local
|
{{ Fill GPOPath Description }}
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String
|
||||||
Required: False
|
Parameter Sets: Local
|
||||||
Position: named
|
Aliases:
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -GPOGUID
|
Accept wildcard characters: False
|
||||||
{{ Fill GPOGUID Description }}
|
```
|
||||||
|
|
||||||
```yaml
|
### -IncludeDomains
|
||||||
Type: String[]
|
{{ Fill IncludeDomains Description }}
|
||||||
Parameter Sets: Default
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: Default
|
||||||
Required: False
|
Aliases: Domain, Domains
|
||||||
Position: named
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -GPOName
|
```
|
||||||
{{ Fill GPOName Description }}
|
|
||||||
|
### -Online
|
||||||
```yaml
|
{{ Fill Online Description }}
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Default
|
```yaml
|
||||||
Aliases: Name
|
Type: SwitchParameter
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -GPOPath
|
|
||||||
Specifies the path to a specific Group Policy Object.
|
### -Open
|
||||||
|
{{ Fill Open Description }}
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: Local
|
Type: SwitchParameter
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -OutputPath
|
||||||
Specifies an array of domains to include in the search.
|
{{ Fill OutputPath Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String
|
||||||
Parameter Sets: Default
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -OutputType
|
||||||
### -Online
|
{{ Fill OutputType Description }}
|
||||||
Indicates whether to retrieve information online.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: SwitchParameter
|
Parameter Sets: (All)
|
||||||
Parameter Sets: Default, Local
|
Aliases:
|
||||||
Aliases:
|
Accepted values: HTML, Object
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: False
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -SingleObject
|
||||||
### -Open
|
{{ Fill SingleObject Description }}
|
||||||
Indicates whether to open the output after retrieval.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: SwitchParameter
|
||||||
Type: SwitchParameter
|
Parameter Sets: (All)
|
||||||
Parameter Sets: Default, Local
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: None
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: False
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -SkipCleanup
|
||||||
|
{{ Fill SkipCleanup Description }}
|
||||||
### -OutputPath
|
|
||||||
Specifies the path to save the output.
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String
|
Aliases:
|
||||||
Parameter Sets: Default, Local
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -SkipNormalize
|
||||||
```
|
{{ Fill SkipNormalize Description }}
|
||||||
|
|
||||||
### -OutputType
|
```yaml
|
||||||
Specifies the type of output (HTML or Object).
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Default, Local
|
Required: False
|
||||||
Aliases:
|
Position: Named
|
||||||
Possible values: HTML, Object
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: Object
|
|
||||||
Accept pipeline input: False
|
### -Splitter
|
||||||
Accept wildcard characters: True
|
{{ Fill Splitter Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -SingleObject
|
Type: String
|
||||||
Indicates whether to retrieve a single object.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
Required: False
|
||||||
Parameter Sets: Default, Local
|
Position: Named
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: named
|
|
||||||
Default value: False
|
### -Type
|
||||||
Accept pipeline input: False
|
{{ Fill Type Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -SkipCleanup
|
Parameter Sets: (All)
|
||||||
{{ Fill SkipCleanup Description }}
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: SwitchParameter
|
Position: Named
|
||||||
Parameter Sets: Default, Local
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: named
|
### CommonParameters
|
||||||
Default value: False
|
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).
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
## INPUTS
|
||||||
```
|
|
||||||
|
### None
|
||||||
### -SkipNormalize
|
|
||||||
Indicates whether to skip normalization.
|
## OUTPUTS
|
||||||
|
|
||||||
```yaml
|
### System.Object
|
||||||
Type: SwitchParameter
|
## NOTES
|
||||||
Parameter Sets: Default, Local
|
|
||||||
Aliases:
|
## RELATED LINKS
|
||||||
Possible values:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
|
||||||
|
|
||||||
### -Splitter
|
|
||||||
Specifies the delimiter to use for splitting information.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: String
|
|
||||||
Parameter Sets: Default, Local
|
|
||||||
Aliases:
|
|
||||||
Possible values:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: named
|
|
||||||
Default value: [System.Environment]::NewLine
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
|
||||||
|
|
||||||
### -Type
|
|
||||||
Specifies the type of information to retrieve.
|
|
||||||
|
|
||||||
```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
|
|
||||||
```
|
|
||||||
|
|
||||||
### 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
|
|
||||||
|
|||||||
@@ -1,42 +1,462 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Invoke-GPOZaurrPermission
|
|
||||||
## SYNOPSIS
|
# Invoke-GPOZaurrPermission
|
||||||
{{ Fill in the Synopsis }}
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
```powershell
|
|
||||||
Invoke-GPOZaurrPermission
|
## SYNTAX
|
||||||
```
|
|
||||||
|
### Level
|
||||||
## DESCRIPTION
|
```
|
||||||
{{ Fill in the Description }}
|
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] -Level <Int32> -Limit <Int32> [-Type <String[]>]
|
||||||
|
[-ApprovedGroups <Array>] [-Trustee <Array>] [-TrusteePermissionType <GPPermissionType>]
|
||||||
## EXAMPLES
|
[-TrusteeType <String>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain]
|
||||||
### EXAMPLE 1
|
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```powershell
|
```
|
||||||
Invoke-GPOZaurrPermission
|
|
||||||
```
|
### Linked
|
||||||
|
```
|
||||||
|
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] -Linked <String> [-Type <String[]>]
|
||||||
## PARAMETERS
|
[-ApprovedGroups <Array>] [-Trustee <Array>] [-TrusteePermissionType <GPPermissionType>]
|
||||||
|
[-TrusteeType <String>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
### CommonParameters
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain]
|
||||||
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).
|
[-SkipDuplicates] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
## INPUTS
|
|
||||||
|
### ADObject
|
||||||
- `None`
|
```
|
||||||
|
Invoke-GPOZaurrPermission [[-PermissionRules] <ScriptBlock>] -ADObject <ADObject[]> [-Type <String[]>]
|
||||||
## OUTPUTS
|
[-ApprovedGroups <Array>] [-Trustee <Array>] [-TrusteePermissionType <GPPermissionType>]
|
||||||
|
[-TrusteeType <String>] [-GPOCache <IDictionary>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
- `None`
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitAdministrativeGroupsToDomain]
|
||||||
|
[-SkipDuplicates] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
## RELATED LINKS
|
```
|
||||||
|
|
||||||
- None
|
### 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>]
|
||||||
|
```
|
||||||
|
|
||||||
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
|
{{ 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[]
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+152
-163
@@ -1,163 +1,152 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Invoke-GPOZaurrSupport
|
|
||||||
## SYNOPSIS
|
# Invoke-GPOZaurrSupport
|
||||||
Invokes GPOZaurrSupport function to retrieve Group Policy information.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Invoke-GPOZaurrSupport [[-Type] <string>] [[-ComputerName] <string>] [[-UserName] <string>] [[-Path] <string>] [[-Splitter] <string>] [-PreventShow] [-Online] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Invoke-GPOZaurrSupport [[-Type] <String>] [[-ComputerName] <String>] [[-UserName] <String>] [[-Path] <String>]
|
||||||
## DESCRIPTION
|
[[-Splitter] <String>] [-PreventShow] [-Online] [<CommonParameters>]
|
||||||
This function retrieves Group Policy information using either HTML, XML, or Object format. It can be run locally or on a remote computer.
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
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 1
|
||||||
```
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
### EXAMPLE 2
|
|
||||||
```powershell
|
{{ Add example description here }}
|
||||||
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.
|
## PARAMETERS
|
||||||
```
|
|
||||||
|
### -ComputerName
|
||||||
|
{{ Fill ComputerName Description }}
|
||||||
## PARAMETERS
|
|
||||||
|
```yaml
|
||||||
### -ComputerName
|
Type: String
|
||||||
Specifies the name of the remote computer to retrieve Group Policy information from.
|
Parameter Sets: (All)
|
||||||
|
Aliases: Server
|
||||||
```yaml
|
|
||||||
Type: String
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 1
|
||||||
Aliases: Server
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 1
|
|
||||||
Default value: None
|
### -Online
|
||||||
Accept pipeline input: False
|
{{ Fill Online Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
### -Online
|
Parameter Sets: (All)
|
||||||
Runs the function online to retrieve the latest Group Policy information.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: SwitchParameter
|
Position: Named
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: named
|
### -Path
|
||||||
Default value: False
|
{{ Fill Path Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
### -Path
|
Aliases:
|
||||||
Specifies the path to save the output file. If not provided, a temporary file will be created.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 3
|
||||||
Type: String
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -PreventShow
|
||||||
Position: 3
|
{{ Fill PreventShow Description }}
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: SwitchParameter
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -PreventShow
|
|
||||||
Prevents displaying the output in the console.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: SwitchParameter
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### -Splitter
|
||||||
Required: False
|
{{ Fill Splitter Description }}
|
||||||
Position: named
|
|
||||||
Default value: False
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases:
|
||||||
|
|
||||||
### -Splitter
|
Required: False
|
||||||
Specifies the delimiter for splitting output data. Default is a new line.
|
Position: 4
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String
|
Accept wildcard characters: False
|
||||||
Parameter Sets: __AllParameterSets
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -Type
|
||||||
|
{{ Fill Type Description }}
|
||||||
Required: False
|
|
||||||
Position: 4
|
```yaml
|
||||||
Default value: [System.Environment]::NewLine
|
Type: String
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
Accepted values: NativeHTML, HTML, XML, Object
|
||||||
|
|
||||||
### -Type
|
Required: False
|
||||||
Specifies the type of output format. Valid values are 'NativeHTML', 'HTML', 'XML', or 'Object'. Default is 'HTML'.
|
Position: 0
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String
|
Accept wildcard characters: False
|
||||||
Parameter Sets: __AllParameterSets
|
```
|
||||||
Aliases:
|
|
||||||
Possible values: NativeHTML, HTML, XML, Object
|
### -UserName
|
||||||
|
{{ Fill UserName Description }}
|
||||||
Required: False
|
|
||||||
Position: 0
|
```yaml
|
||||||
Default value: HTML
|
Type: String
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases: User
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -UserName
|
Position: 2
|
||||||
Specifies the username to run the function as on the remote computer.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: String
|
```
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: User
|
### CommonParameters
|
||||||
Possible values:
|
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).
|
||||||
|
|
||||||
Required: False
|
## INPUTS
|
||||||
Position: 2
|
|
||||||
Default value: None
|
### None
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
## OUTPUTS
|
||||||
```
|
|
||||||
|
### System.Object
|
||||||
### CommonParameters
|
## NOTES
|
||||||
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).
|
|
||||||
|
## RELATED LINKS
|
||||||
## INPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+228
-211
@@ -1,211 +1,228 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# New-GPOZaurrWMI
|
|
||||||
## SYNOPSIS
|
# New-GPOZaurrWMI
|
||||||
Creates a new WMI filter based on a WMI filter query.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
New-GPOZaurrWMI [-Name] <string> [[-Description] <string>] [[-Namespace] <string>] [-Query] <string> [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-SkipQueryCheck] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
New-GPOZaurrWMI [-Name] <String> [[-Description] <String>] [[-Namespace] <String>] [-Query] <String>
|
||||||
## DESCRIPTION
|
[-SkipQueryCheck] [-Force] [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
This function creates a new WMI filter in Active Directory based on a specified WMI filter query.
|
[[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > New-GPOZaurrWMI -Name "TestWMIFilter1" -Query "SELECT * FROM Win32_OperatingSystem" -Force
|
## EXAMPLES
|
||||||
Creates a new WMI filter named "TestWMIFilter1" targeting all Windows operating systems.
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
|
||||||
PS > New-GPOZaurrWMI -Name "TestWMIFilter2" -Query "SELECT * FROM Win32_Processor" -Forest "Contoso" -IncludeDomains "FinanceDomain"
|
{{ Add example description here }}
|
||||||
Creates a new WMI filter named "TestWMIFilter2" targeting all processors in the "FinanceDomain" within the "Contoso" forest.
|
|
||||||
```
|
## PARAMETERS
|
||||||
|
|
||||||
|
### -Confirm
|
||||||
## PARAMETERS
|
Prompts you for confirmation before running the cmdlet.
|
||||||
|
|
||||||
### -Description
|
```yaml
|
||||||
The description for the new WMI filter. Default is an empty string.
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases: cf
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 1
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -Description
|
||||||
Accept wildcard characters: True
|
{{ Fill Description Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -ExcludeDomains
|
Type: String
|
||||||
An array of domains to exclude from WMI application.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 1
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 5
|
|
||||||
Default value: None
|
### -ExcludeDomains
|
||||||
Accept pipeline input: False
|
{{ Fill ExcludeDomains Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -ExtendedForestInformation
|
Parameter Sets: (All)
|
||||||
Additional information about the forest for WMI customization.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: IDictionary
|
Position: 5
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 7
|
### -ExtendedForestInformation
|
||||||
Default value: None
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: IDictionary
|
||||||
|
Parameter Sets: (All)
|
||||||
### -Force
|
Aliases:
|
||||||
Switch to force the creation of the WMI entry without confirmation.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 7
|
||||||
Type: SwitchParameter
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -Force
|
||||||
Position: named
|
{{ Fill Force Description }}
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: SwitchParameter
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -Forest
|
|
||||||
The forest to target for WMI creation.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases: ForestName
|
```
|
||||||
Possible values:
|
|
||||||
|
### -Forest
|
||||||
Required: False
|
{{ Fill Forest Description }}
|
||||||
Position: 4
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases: ForestName
|
||||||
|
|
||||||
### -IncludeDomains
|
Required: False
|
||||||
An array of domains to include for WMI application.
|
Position: 4
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String[]
|
Accept wildcard characters: False
|
||||||
Parameter Sets: __AllParameterSets
|
```
|
||||||
Aliases: Domain, Domains
|
|
||||||
Possible values:
|
### -IncludeDomains
|
||||||
|
{{ Fill IncludeDomains Description }}
|
||||||
Required: False
|
|
||||||
Position: 6
|
```yaml
|
||||||
Default value: None
|
Type: String[]
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases: Domain, Domains
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -Name
|
Position: 6
|
||||||
The name of the new WMI filter to be created.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: String
|
```
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
### -Name
|
||||||
Possible values:
|
{{ Fill Name Description }}
|
||||||
|
|
||||||
Required: True
|
```yaml
|
||||||
Position: 0
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: True
|
||||||
|
Position: 0
|
||||||
### -Namespace
|
Default value: None
|
||||||
The WMI namespace to target. Default is 'root\CIMv2'.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -Namespace
|
||||||
Aliases:
|
{{ Fill Namespace Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: String
|
||||||
Position: 2
|
Parameter Sets: (All)
|
||||||
Default value: root\CIMv2
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: 2
|
||||||
|
Default value: None
|
||||||
### -Query
|
Accept pipeline input: False
|
||||||
The WMI filter query to be applied to the WMI entry.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String
|
### -Query
|
||||||
Parameter Sets: __AllParameterSets
|
{{ Fill Query Description }}
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String
|
||||||
Required: True
|
Parameter Sets: (All)
|
||||||
Position: 3
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: True
|
||||||
Accept wildcard characters: True
|
Position: 3
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -SkipQueryCheck
|
Accept wildcard characters: False
|
||||||
Switch to skip the query check before creating the WMI entry.
|
```
|
||||||
|
|
||||||
```yaml
|
### -SkipQueryCheck
|
||||||
Type: SwitchParameter
|
{{ Fill SkipQueryCheck Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: named
|
|
||||||
Default value: False
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
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).
|
|
||||||
|
### -WhatIf
|
||||||
## INPUTS
|
Shows what would happen if the cmdlet runs.
|
||||||
|
The cmdlet is not run.
|
||||||
- `None`
|
|
||||||
|
```yaml
|
||||||
## OUTPUTS
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
- `None`
|
Aliases: wi
|
||||||
|
|
||||||
## RELATED LINKS
|
Required: False
|
||||||
|
Position: Named
|
||||||
- None
|
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
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+234
-206
@@ -1,206 +1,234 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Optimize-GPOZaurr
|
|
||||||
## SYNOPSIS
|
# Optimize-GPOZaurr
|
||||||
Enables or disables user/computer section of group policy based on it's content.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Enables or disables user/computer section of group policy based on it's content.
|
||||||
### GPOName (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <scriptblock>] -GPOName <string> [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
### GPOName (Default)
|
||||||
|
```
|
||||||
### GPOGUID
|
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] -GPOName <String> [-LimitProcessing <Int32>]
|
||||||
```powershell
|
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <scriptblock>] -GPOGuid <string> [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
### All
|
### GPOGUID
|
||||||
```powershell
|
```
|
||||||
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <scriptblock>] -All [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] -GPOGuid <String> [-LimitProcessing <Int32>]
|
||||||
```
|
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
|
[-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
## DESCRIPTION
|
```
|
||||||
Enables or disables user/computer section of group policy based on it's content.
|
|
||||||
|
### All
|
||||||
## EXAMPLES
|
```
|
||||||
|
Optimize-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] [-All] [-LimitProcessing <Int32>] [-Forest <String>]
|
||||||
### EXAMPLE 1
|
[-ExcludeDomains <String[]>] [-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf]
|
||||||
```powershell
|
[-Confirm] [<CommonParameters>]
|
||||||
PS > Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2
|
```
|
||||||
```
|
|
||||||
|
## DESCRIPTION
|
||||||
|
Enables or disables user/computer section of group policy based on it's content.
|
||||||
### EXAMPLE 2
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
|
|
||||||
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
|
### EXAMPLE 1
|
||||||
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
|
```
|
||||||
}
|
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### EXAMPLE 2
|
||||||
## PARAMETERS
|
```
|
||||||
|
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
|
||||||
### -All
|
```
|
||||||
{{ Fill All Description }}
|
|
||||||
|
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
|
||||||
```yaml
|
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
|
||||||
Type: SwitchParameter
|
}
|
||||||
Parameter Sets: All
|
|
||||||
Aliases:
|
## PARAMETERS
|
||||||
Possible values:
|
|
||||||
|
### -ExcludeGroupPolicies
|
||||||
Required: True
|
Provide a list of group policies to skip using Skip-GroupPolicy cmdlet
|
||||||
Position: named
|
|
||||||
Default value: False
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: ScriptBlock
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases:
|
||||||
|
|
||||||
### -ExcludeDomains
|
Required: False
|
||||||
Exclude domain from search, by default whole forest is scanned
|
Position: 2
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String[]
|
Accept wildcard characters: False
|
||||||
Parameter Sets: GPOName, GPOGUID, All
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -GPOName
|
||||||
|
{{ Fill GPOName Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: String
|
||||||
Accept pipeline input: False
|
Parameter Sets: GPOName
|
||||||
Accept wildcard characters: True
|
Aliases: Name, DisplayName
|
||||||
```
|
|
||||||
|
Required: True
|
||||||
### -ExcludeGroupPolicies
|
Position: Named
|
||||||
Provide a list of group policies to skip using Skip-GroupPolicy cmdlet
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: ScriptBlock
|
```
|
||||||
Parameter Sets: GPOName, GPOGUID, All
|
|
||||||
Aliases:
|
### -GPOGuid
|
||||||
Possible values:
|
{{ Fill GPOGuid Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: 1
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: GPOGUID
|
||||||
Accept pipeline input: False
|
Aliases: GUID, GPOID
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: True
|
||||||
|
Position: Named
|
||||||
### -ExtendedForestInformation
|
Default value: None
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: GPOName, GPOGUID, All
|
### -All
|
||||||
Aliases:
|
{{ Fill All Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: SwitchParameter
|
||||||
Position: named
|
Parameter Sets: All
|
||||||
Default value: None
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: True
|
||||||
```
|
Position: Named
|
||||||
|
Default value: False
|
||||||
### -Forest
|
Accept pipeline input: False
|
||||||
Target different Forest, by default current forest is used
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String
|
### -LimitProcessing
|
||||||
Parameter Sets: GPOName, GPOGUID, All
|
Allows to specify maximum number of items that will be fixed in a single run.
|
||||||
Aliases: ForestName
|
It doesn't affect amount of GPOs processed
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: Int32
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: 0
|
||||||
### -GPOGuid
|
Accept pipeline input: False
|
||||||
{{ Fill GPOGuid Description }}
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String
|
### -Forest
|
||||||
Parameter Sets: GPOGUID
|
Target different Forest, by default current forest is used
|
||||||
Aliases: GUID, GPOID
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String
|
||||||
Required: True
|
Parameter Sets: (All)
|
||||||
Position: named
|
Aliases: ForestName
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -GPOName
|
Accept wildcard characters: False
|
||||||
{{ Fill GPOName Description }}
|
```
|
||||||
|
|
||||||
```yaml
|
### -ExcludeDomains
|
||||||
Type: String
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Parameter Sets: GPOName
|
|
||||||
Aliases: Name, DisplayName
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: True
|
Aliases:
|
||||||
Position: named
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -IncludeDomains
|
```
|
||||||
Include only specific domains, by default whole forest is scanned
|
|
||||||
|
### -IncludeDomains
|
||||||
```yaml
|
Include only specific domains, by default whole forest is scanned
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: GPOName, GPOGUID, All
|
```yaml
|
||||||
Aliases: Domain, Domains
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases: Domain, Domains
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
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
|
### -ExtendedForestInformation
|
||||||
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
```yaml
|
|
||||||
Type: Int32
|
```yaml
|
||||||
Parameter Sets: GPOName, GPOGUID, All
|
Type: IDictionary
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### CommonParameters
|
### -WhatIf
|
||||||
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).
|
Shows what would happen if the cmdlet runs.
|
||||||
|
The cmdlet is not run.
|
||||||
## INPUTS
|
|
||||||
|
```yaml
|
||||||
- `None`
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
## OUTPUTS
|
Aliases: wi
|
||||||
|
|
||||||
- `None`
|
Required: False
|
||||||
|
Position: Named
|
||||||
## RELATED LINKS
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
- None
|
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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
## NOTES
|
||||||
|
General notes
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+193
-194
@@ -1,194 +1,193 @@
|
|||||||
---
|
---
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
Module Guid: f7d4c9e4-0298-4f51-ad77-e8e3febebbde
|
Module Guid: f7d4c9e4-0298-4f51-ad77-e8e3febebbde
|
||||||
Download Help Link: https://github.com/EvotecIT/GPOZaurr
|
Download Help Link: {{ Update Download Link }}
|
||||||
Help Version: 1.1.10
|
Help Version: {{ Please enter version of help manually (X.X.X.X) format }}
|
||||||
Locale: en-US
|
Locale: en-US
|
||||||
---
|
---
|
||||||
# GPOZaurr Module
|
|
||||||
## Description
|
# GPOZaurr Module
|
||||||
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.
|
## Description
|
||||||
|
{{ Fill in the Description }}
|
||||||
## GPOZaurr Cmdlets
|
|
||||||
### [Add-GPOPermission](Add-GPOPermission.md)
|
## GPOZaurr Cmdlets
|
||||||
{{ Fill in the Description }}
|
### [Add-GPOPermission](Add-GPOPermission.md)
|
||||||
|
{{ Fill in the Synopsis }}
|
||||||
### [Add-GPOZaurrPermission](Add-GPOZaurrPermission.md)
|
|
||||||
{{ Fill in the Description }}
|
### [Add-GPOZaurrPermission](Add-GPOZaurrPermission.md)
|
||||||
|
{{ Fill in the Synopsis }}
|
||||||
### [Backup-GPOZaurr](Backup-GPOZaurr.md)
|
|
||||||
Provides Backup functionality to Group Policies
|
### [Backup-GPOZaurr](Backup-GPOZaurr.md)
|
||||||
|
Provides Backup functionality to Group Policies
|
||||||
### [Clear-GPOZaurrSysvolDFSR](Clear-GPOZaurrSysvolDFSR.md)
|
|
||||||
Clears the ConflictAndDeleted folder in DFSR for specified GPOs.
|
### [Clear-GPOZaurrSysvolDFSR](Clear-GPOZaurrSysvolDFSR.md)
|
||||||
|
{{ Fill in the Synopsis }}
|
||||||
### [ConvertFrom-CSExtension](ConvertFrom-CSExtension.md)
|
|
||||||
Converts Client-side Extension (CSE) GUIDs to their corresponding names.
|
### [ConvertFrom-CSExtension](ConvertFrom-CSExtension.md)
|
||||||
|
{{ Fill in the Synopsis }}
|
||||||
### [Export-GPOZaurrContent](Export-GPOZaurrContent.md)
|
|
||||||
Exports Group Policy Objects (GPOs) to XML or HTML files.
|
### [Export-GPOZaurrContent](Export-GPOZaurrContent.md)
|
||||||
|
Saves GPOs to XML or HTML files.
|
||||||
### [Find-CSExtension](Find-CSExtension.md)
|
|
||||||
This function retrieves Group Policy Client Side Extensions (CSEs) from a specified Windows computer.
|
### [Find-CSExtension](Find-CSExtension.md)
|
||||||
|
{{ Fill in the Synopsis }}
|
||||||
### [Get-GPOZaurr](Get-GPOZaurr.md)
|
|
||||||
Gets information about all Group Policies. Similar to what Get-GPO provides by default.
|
### [Get-GPOZaurr](Get-GPOZaurr.md)
|
||||||
|
Gets information about all Group Policies.
|
||||||
### [Get-GPOZaurrAD](Get-GPOZaurrAD.md)
|
Similar to what Get-GPO provides by default.
|
||||||
Retrieves Group Policy Objects (GPOs) information from Active Directory.
|
|
||||||
|
### [Get-GPOZaurrAD](Get-GPOZaurrAD.md)
|
||||||
### [Get-GPOZaurrBackupInformation](Get-GPOZaurrBackupInformation.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves backup information from GPOZaurr manifest files.
|
|
||||||
|
### [Get-GPOZaurrBackupInformation](Get-GPOZaurrBackupInformation.md)
|
||||||
### [Get-GPOZaurrBroken](Get-GPOZaurrBroken.md)
|
{{ Fill in the Synopsis }}
|
||||||
Detects broken or otherwise damaged Group Policies
|
|
||||||
|
### [Get-GPOZaurrBroken](Get-GPOZaurrBroken.md)
|
||||||
### [Get-GPOZaurrBrokenLink](Get-GPOZaurrBrokenLink.md)
|
Detects broken or otherwise damaged Group Policies
|
||||||
Finds any GPO link that doesn't have a matching GPO (already removed GPO).
|
|
||||||
|
### [Get-GPOZaurrBrokenLink](Get-GPOZaurrBrokenLink.md)
|
||||||
### [Get-GPOZaurrDictionary](Get-GPOZaurrDictionary.md)
|
Finds any GPO link that doesn't have a matching GPO (already removed GPO).
|
||||||
Retrieves a dictionary of Group Policy Objects (GPOs) with their associated types and paths.
|
|
||||||
|
### [Get-GPOZaurrDictionary](Get-GPOZaurrDictionary.md)
|
||||||
### [Get-GPOZaurrDuplicateObject](Get-GPOZaurrDuplicateObject.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves duplicate Group Policy Objects (GPOs) within a specified forest.
|
|
||||||
|
### [Get-GPOZaurrDuplicateObject](Get-GPOZaurrDuplicateObject.md)
|
||||||
### [Get-GPOZaurrFiles](Get-GPOZaurrFiles.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves information about Group Policy Objects (GPOs) stored in SYSVOL and NETLOGON folders.
|
|
||||||
|
### [Get-GPOZaurrFiles](Get-GPOZaurrFiles.md)
|
||||||
### [Get-GPOZaurrFilesPolicyDefinition](Get-GPOZaurrFilesPolicyDefinition.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves policy definitions for Group Policy Objects (GPOs) within specified domains.
|
|
||||||
|
### [Get-GPOZaurrFilesPolicyDefinition](Get-GPOZaurrFilesPolicyDefinition.md)
|
||||||
### [Get-GPOZaurrFolders](Get-GPOZaurrFolders.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves information about GPO folders within specified domains.
|
|
||||||
|
### [Get-GPOZaurrFolders](Get-GPOZaurrFolders.md)
|
||||||
### [Get-GPOZaurrInheritance](Get-GPOZaurrInheritance.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves inheritance information for Group Policy Objects (GPOs) within specified Organizational Units (OUs).
|
|
||||||
|
### [Get-GPOZaurrInheritance](Get-GPOZaurrInheritance.md)
|
||||||
### [Get-GPOZaurrLegacyFiles](Get-GPOZaurrLegacyFiles.md)
|
Short description
|
||||||
Retrieves legacy Group Policy Object (GPO) files from the SYSVOL directory of specified domains within a forest.
|
|
||||||
|
### [Get-GPOZaurrLegacyFiles](Get-GPOZaurrLegacyFiles.md)
|
||||||
### [Get-GPOZaurrLink](Get-GPOZaurrLink.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves Group Policy Object (GPO) links based on specified criteria.
|
|
||||||
|
### [Get-GPOZaurrLink](Get-GPOZaurrLink.md)
|
||||||
### [Get-GPOZaurrLinkSummary](Get-GPOZaurrLinkSummary.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves a summary of GPO links based on specified criteria.
|
|
||||||
|
### [Get-GPOZaurrLinkSummary](Get-GPOZaurrLinkSummary.md)
|
||||||
### [Get-GPOZaurrMissingFiles](Get-GPOZaurrMissingFiles.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves information about missing files in Group Policy Objects (GPOs) within a specified forest.
|
|
||||||
|
### [Get-GPOZaurrNetLogon](Get-GPOZaurrNetLogon.md)
|
||||||
### [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)
|
||||||
### [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)
|
||||||
### [Get-GPOZaurrOwner](Get-GPOZaurrOwner.md)
|
Gets owners of GPOs from Active Directory and SYSVOL
|
||||||
Gets owners of GPOs from Active Directory and SYSVOL
|
|
||||||
|
### [Get-GPOZaurrPassword](Get-GPOZaurrPassword.md)
|
||||||
### [Get-GPOZaurrPassword](Get-GPOZaurrPassword.md)
|
Tries to find CPassword in Group Policies or given path and translate it to readable value
|
||||||
Tries to find CPassword in Group Policies or given path and translate it to readable value
|
|
||||||
|
### [Get-GPOZaurrPermission](Get-GPOZaurrPermission.md)
|
||||||
### [Get-GPOZaurrPermission](Get-GPOZaurrPermission.md)
|
{{ Fill in the Synopsis }}
|
||||||
{{ Fill in the Description }}
|
|
||||||
|
### [Get-GPOZaurrPermissionAnalysis](Get-GPOZaurrPermissionAnalysis.md)
|
||||||
### [Get-GPOZaurrPermissionAnalysis](Get-GPOZaurrPermissionAnalysis.md)
|
{{ Fill in the Synopsis }}
|
||||||
Analyzes permissions for Group Policy Objects (GPOs) and administrative groups.
|
|
||||||
|
### [Get-GPOZaurrPermissionConsistency](Get-GPOZaurrPermissionConsistency.md)
|
||||||
### [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)
|
||||||
### [Get-GPOZaurrPermissionIssue](Get-GPOZaurrPermissionIssue.md)
|
Detects Group Policy missing Authenticated Users permission while not having higher permissions.
|
||||||
Detects Group Policy missing Authenticated Users permission while not having higher permissions.
|
|
||||||
|
### [Get-GPOZaurrPermissionRoot](Get-GPOZaurrPermissionRoot.md)
|
||||||
### [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)
|
||||||
### [Get-GPOZaurrPermissionSummary](Get-GPOZaurrPermissionSummary.md)
|
{{ Fill in the Synopsis }}
|
||||||
Retrieves a summary of Group Policy Object (GPO) permissions based on specified criteria.
|
|
||||||
|
### [Get-GPOZaurrSysvolDFSR](Get-GPOZaurrSysvolDFSR.md)
|
||||||
### [Get-GPOZaurrRedirect](Get-GPOZaurrRedirect.md)
|
Gets DFSR information from the SYSVOL DFSR
|
||||||
Command to detect if GPOs have correct path in SYSVOL, or someone changed it manually.
|
|
||||||
|
### [Get-GPOZaurrUpdates](Get-GPOZaurrUpdates.md)
|
||||||
### [Get-GPOZaurrSysvolDFSR](Get-GPOZaurrSysvolDFSR.md)
|
Gets the list of GPOs created or updated in the last X number of days.
|
||||||
Gets DFSR information from the SYSVOL DFSR
|
|
||||||
|
### [Get-GPOZaurrWMI](Get-GPOZaurrWMI.md)
|
||||||
### [Get-GPOZaurrUpdates](Get-GPOZaurrUpdates.md)
|
Get Group Policy WMI filter
|
||||||
Gets the list of GPOs created or updated in the last X number of days.
|
|
||||||
|
### [Invoke-GPOZaurr](Invoke-GPOZaurr.md)
|
||||||
### [Get-GPOZaurrWMI](Get-GPOZaurrWMI.md)
|
Single cmdlet that provides 360 degree overview of Group Policies in Active Directory Forest.
|
||||||
Get Group Policy WMI filter
|
|
||||||
|
### [Invoke-GPOZaurrContent](Invoke-GPOZaurrContent.md)
|
||||||
### [Invoke-GPOZaurr](Invoke-GPOZaurr.md)
|
{{ Fill in the Synopsis }}
|
||||||
Single cmdlet that provides 360 degree overview of Group Policies in Active Directory Forest.
|
|
||||||
|
### [Invoke-GPOZaurrPermission](Invoke-GPOZaurrPermission.md)
|
||||||
### [Invoke-GPOZaurrContent](Invoke-GPOZaurrContent.md)
|
{{ Fill in the Synopsis }}
|
||||||
Invokes GPOZaurrContent function to retrieve Group Policy Objects information.
|
|
||||||
|
### [Invoke-GPOZaurrSupport](Invoke-GPOZaurrSupport.md)
|
||||||
### [Invoke-GPOZaurrPermission](Invoke-GPOZaurrPermission.md)
|
{{ Fill in the Synopsis }}
|
||||||
{{ Fill in the Description }}
|
|
||||||
|
### [New-GPOZaurrWMI](New-GPOZaurrWMI.md)
|
||||||
### [Invoke-GPOZaurrSupport](Invoke-GPOZaurrSupport.md)
|
{{ Fill in the Synopsis }}
|
||||||
Invokes GPOZaurrSupport function to retrieve Group Policy information.
|
|
||||||
|
### [Optimize-GPOZaurr](Optimize-GPOZaurr.md)
|
||||||
### [New-GPOZaurrWMI](New-GPOZaurrWMI.md)
|
Enables or disables user/computer section of group policy based on it's content.
|
||||||
Creates a new WMI filter based on a WMI filter query.
|
|
||||||
|
### [Remove-GPOPermission](Remove-GPOPermission.md)
|
||||||
### [Optimize-GPOZaurr](Optimize-GPOZaurr.md)
|
{{ Fill in the Synopsis }}
|
||||||
Enables or disables user/computer section of group policy based on it's content.
|
|
||||||
|
### [Remove-GPOZaurr](Remove-GPOZaurr.md)
|
||||||
### [Remove-GPOPermission](Remove-GPOPermission.md)
|
{{ Fill in the Synopsis }}
|
||||||
{{ Fill in the Description }}
|
|
||||||
|
### [Remove-GPOZaurrBroken](Remove-GPOZaurrBroken.md)
|
||||||
### [Remove-GPOZaurr](Remove-GPOZaurr.md)
|
Finds and removes broken Group Policies from SYSVOL or AD or both.
|
||||||
Removes Group Policy Objects based on specified criteria.
|
|
||||||
|
### [Remove-GPOZaurrDuplicateObject](Remove-GPOZaurrDuplicateObject.md)
|
||||||
### [Remove-GPOZaurrBroken](Remove-GPOZaurrBroken.md)
|
{{ Fill in the Synopsis }}
|
||||||
Finds and removes broken Group Policies from SYSVOL or AD or both.
|
|
||||||
|
### [Remove-GPOZaurrFolders](Remove-GPOZaurrFolders.md)
|
||||||
### [Remove-GPOZaurrDuplicateObject](Remove-GPOZaurrDuplicateObject.md)
|
{{ Fill in the Synopsis }}
|
||||||
Removes duplicate Group Policy Objects (GPOs) identified by the Get-GPOZaurrDuplicateObject function.
|
|
||||||
|
### [Remove-GPOZaurrLegacyFiles](Remove-GPOZaurrLegacyFiles.md)
|
||||||
### [Remove-GPOZaurrFolders](Remove-GPOZaurrFolders.md)
|
{{ Fill in the Synopsis }}
|
||||||
Removes specified GPOZaurr folders and backs them up to a specified path.
|
|
||||||
|
### [Remove-GPOZaurrLinkEmptyOU](Remove-GPOZaurrLinkEmptyOU.md)
|
||||||
### [Remove-GPOZaurrLegacyFiles](Remove-GPOZaurrLegacyFiles.md)
|
{{ Fill in the Synopsis }}
|
||||||
Removes legacy Group Policy Objects (GPO) files from specified domains.
|
|
||||||
|
### [Remove-GPOZaurrPermission](Remove-GPOZaurrPermission.md)
|
||||||
### [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-GPOZaurrWMI](Remove-GPOZaurrWMI.md)
|
||||||
### [Remove-GPOZaurrPermission](Remove-GPOZaurrPermission.md)
|
{{ Fill in the Synopsis }}
|
||||||
{{ Fill in the Description }}
|
|
||||||
|
### [Repair-GPOZaurrBrokenLink](Repair-GPOZaurrBrokenLink.md)
|
||||||
### [Remove-GPOZaurrWMI](Remove-GPOZaurrWMI.md)
|
Removes any link to GPO that no longer exists.
|
||||||
Removes Group Policy WMI filters based on specified criteria.
|
|
||||||
|
### [Repair-GPOZaurrNetLogonOwner](Repair-GPOZaurrNetLogonOwner.md)
|
||||||
### [Repair-GPOZaurrBrokenLink](Repair-GPOZaurrBrokenLink.md)
|
Sets new owner to each file in NetLogon share.
|
||||||
Removes any link to GPO that no longer exists.
|
|
||||||
|
### [Repair-GPOZaurrPermission](Repair-GPOZaurrPermission.md)
|
||||||
### [Repair-GPOZaurrNetLogonOwner](Repair-GPOZaurrNetLogonOwner.md)
|
{{ Fill in the Synopsis }}
|
||||||
Sets new owner to each file in NetLogon share.
|
|
||||||
|
### [Repair-GPOZaurrPermissionConsistency](Repair-GPOZaurrPermissionConsistency.md)
|
||||||
### [Repair-GPOZaurrPermission](Repair-GPOZaurrPermission.md)
|
{{ Fill in the Synopsis }}
|
||||||
Repairs permissions for Group Policy Objects (GPOs) based on specified criteria.
|
|
||||||
|
### [Restore-GPOZaurr](Restore-GPOZaurr.md)
|
||||||
### [Repair-GPOZaurrPermissionConsistency](Repair-GPOZaurrPermissionConsistency.md)
|
{{ Fill in the Synopsis }}
|
||||||
Repairs permission consistency for Group Policy Objects (GPOs) in a specified domain or forest.
|
|
||||||
|
### [Save-GPOZaurrFiles](Save-GPOZaurrFiles.md)
|
||||||
### [Restore-GPOZaurr](Restore-GPOZaurr.md)
|
Exports GPO XML data to files and saves it to a given path
|
||||||
Restores Group Policy Objects (GPOs) from a specified backup folder.
|
|
||||||
|
### [Set-GPOOwner](Set-GPOOwner.md)
|
||||||
### [Save-GPOZaurrFiles](Save-GPOZaurrFiles.md)
|
Used within Invoke-GPOZaurrPermission only.
|
||||||
Exports GPO XML data to files and saves it to a given path
|
Set new group policy owner.
|
||||||
|
|
||||||
### [Set-GPOOwner](Set-GPOOwner.md)
|
### [Set-GPOZaurrOwner](Set-GPOZaurrOwner.md)
|
||||||
Used within Invoke-GPOZaurrPermission only. Set new group policy owner.
|
Sets GPO Owner to Domain Admins or other choosen account
|
||||||
|
|
||||||
### [Set-GPOZaurrOwner](Set-GPOZaurrOwner.md)
|
### [Set-GPOZaurrStatus](Set-GPOZaurrStatus.md)
|
||||||
Sets GPO Owner to Domain Admins or other choosen account
|
Enables or disables user/computer section of Group Policy.
|
||||||
|
|
||||||
### [Set-GPOZaurrStatus](Set-GPOZaurrStatus.md)
|
### [Skip-GroupPolicy](Skip-GroupPolicy.md)
|
||||||
{{ Fill in the Description }}
|
Used within ScriptBlocks only.
|
||||||
|
Allows to exclude Group Policy from being affected by fixes
|
||||||
### [Skip-GroupPolicy](Skip-GroupPolicy.md)
|
|
||||||
Used within ScriptBlocks only. Allows to exclude Group Policy from being affected by fixes
|
|
||||||
|
|||||||
+174
-42
@@ -1,42 +1,174 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOPermission
|
|
||||||
## SYNOPSIS
|
# Remove-GPOPermission
|
||||||
{{ Fill in the Synopsis }}
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
```powershell
|
|
||||||
Remove-GPOPermission
|
## SYNTAX
|
||||||
```
|
|
||||||
|
```
|
||||||
## DESCRIPTION
|
Remove-GPOPermission [[-Type] <String[]>] [[-IncludePermissionType] <GPPermissionType[]>]
|
||||||
{{ Fill in the Description }}
|
[[-ExcludePermissionType] <GPPermissionType[]>] [[-PermitType] <String>] [[-Principal] <String[]>]
|
||||||
|
[[-PrincipalType] <String>] [[-ExcludePrincipal] <String[]>] [[-ExcludePrincipalType] <String>]
|
||||||
## EXAMPLES
|
[<CommonParameters>]
|
||||||
|
```
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## DESCRIPTION
|
||||||
Remove-GPOPermission
|
{{ Fill in the Description }}
|
||||||
```
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
## PARAMETERS
|
### Example 1
|
||||||
|
```powershell
|
||||||
### CommonParameters
|
PS C:\> {{ Add example code here }}
|
||||||
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
|
{{ Add example description here }}
|
||||||
|
|
||||||
- `None`
|
## PARAMETERS
|
||||||
|
|
||||||
## OUTPUTS
|
### -ExcludePermissionType
|
||||||
|
{{ Fill ExcludePermissionType Description }}
|
||||||
- `None`
|
|
||||||
|
```yaml
|
||||||
## RELATED LINKS
|
Type: GPPermissionType[]
|
||||||
|
Parameter Sets: (All)
|
||||||
- None
|
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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+245
-227
@@ -1,227 +1,245 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOZaurr
|
|
||||||
## SYNOPSIS
|
# Remove-GPOZaurr
|
||||||
Removes Group Policy Objects based on specified criteria.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
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>]
|
|
||||||
```
|
```
|
||||||
|
Remove-GPOZaurr [[-ExcludeGroupPolicies] <ScriptBlock>] [-Type] <String[]> [-LimitProcessing <Int32>]
|
||||||
## DESCRIPTION
|
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
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.
|
[-ExtendedForestInformation <IDictionary>] [-GPOPath <String[]>] [-BackupPath <String>] [-BackupDated]
|
||||||
|
[-RequireDays <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
## EXAMPLES
|
```
|
||||||
|
|
||||||
### EXAMPLE 1
|
## DESCRIPTION
|
||||||
```powershell
|
{{ Fill in the Description }}
|
||||||
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.
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
### EXAMPLE 2
|
PS C:\> {{ Add example code here }}
|
||||||
```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
|
||||||
|
|
||||||
## PARAMETERS
|
### -BackupDated
|
||||||
|
{{ Fill BackupDated Description }}
|
||||||
### -BackupDated
|
|
||||||
Indicates whether the backup should be dated.
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: SwitchParameter
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: False
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -BackupPath
|
||||||
```
|
{{ Fill BackupPath Description }}
|
||||||
|
|
||||||
### -BackupPath
|
```yaml
|
||||||
Specifies the path for backing up GPOs before removal.
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -Confirm
|
||||||
Accept wildcard characters: True
|
Prompts you for confirmation before running the cmdlet.
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -ExcludeDomains
|
Type: SwitchParameter
|
||||||
Specifies the domains to exclude from GPO removal.
|
Parameter Sets: (All)
|
||||||
|
Aliases: cf
|
||||||
```yaml
|
|
||||||
Type: String[]
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: Named
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: named
|
|
||||||
Default value: None
|
### -ExcludeDomains
|
||||||
Accept pipeline input: False
|
{{ Fill ExcludeDomains Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -ExcludeGroupPolicies
|
Parameter Sets: (All)
|
||||||
Specifies the Group Policies to exclude from removal.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: ScriptBlock
|
Position: Named
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 1
|
### -ExcludeGroupPolicies
|
||||||
Default value: None
|
{{ Fill ExcludeGroupPolicies Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: ScriptBlock
|
||||||
|
Parameter Sets: (All)
|
||||||
### -ExtendedForestInformation
|
Aliases:
|
||||||
Specifies additional information about the forest.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: 1
|
||||||
Type: IDictionary
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -ExtendedForestInformation
|
||||||
Position: named
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: IDictionary
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -Forest
|
|
||||||
Specifies the forest to target for GPO removal.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases: ForestName
|
```
|
||||||
Possible values:
|
|
||||||
|
### -Forest
|
||||||
Required: False
|
{{ Fill Forest Description }}
|
||||||
Position: named
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases: ForestName
|
||||||
|
|
||||||
### -GPOPath
|
Required: False
|
||||||
Specifies the path to the GPOs to be removed.
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: String[]
|
Accept wildcard characters: False
|
||||||
Parameter Sets: __AllParameterSets
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -GPOPath
|
||||||
|
{{ Fill GPOPath Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: String[]
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -IncludeDomains
|
Position: Named
|
||||||
Specifies the domains to include for GPO removal.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: String[]
|
```
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: Domain, Domains
|
### -IncludeDomains
|
||||||
Possible values:
|
{{ Fill IncludeDomains Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: String[]
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases: Domain, Domains
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -LimitProcessing
|
Default value: None
|
||||||
Specifies the maximum number of GPOs to process before stopping.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: Int32
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -LimitProcessing
|
||||||
Aliases:
|
{{ Fill LimitProcessing Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: Int32
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: 0
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: None
|
||||||
### -RequireDays
|
Accept pipeline input: False
|
||||||
Specifies the number of days before GPO removal is required.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: Int32
|
### -RequireDays
|
||||||
Parameter Sets: __AllParameterSets
|
{{ Fill RequireDays Description }}
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: Int32
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: named
|
Aliases:
|
||||||
Default value: 0
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -Type
|
Accept wildcard characters: False
|
||||||
Specifies the type of GPOs to target for removal. Valid values are 'Empty', 'Unlinked', 'Disabled', 'NoApplyPermission'.
|
```
|
||||||
|
|
||||||
```yaml
|
### -Type
|
||||||
Type: String[]
|
{{ Fill Type Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values: Empty, Unlinked, Disabled, NoApplyPermission
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: True
|
Aliases:
|
||||||
Position: 0
|
Accepted values: Empty, Unlinked, Disabled, NoApplyPermission
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: True
|
||||||
Accept wildcard characters: True
|
Position: 0
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### CommonParameters
|
Accept wildcard characters: False
|
||||||
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
|
### -WhatIf
|
||||||
|
Shows what would happen if the cmdlet runs.
|
||||||
- `None`
|
The cmdlet is not run.
|
||||||
|
|
||||||
## OUTPUTS
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
- `None`
|
Parameter Sets: (All)
|
||||||
|
Aliases: wi
|
||||||
## RELATED LINKS
|
|
||||||
|
Required: False
|
||||||
- None
|
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
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+210
-186
@@ -1,186 +1,210 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOZaurrBroken
|
|
||||||
## SYNOPSIS
|
# Remove-GPOZaurrBroken
|
||||||
Finds and removes broken Group Policies from SYSVOL or AD or both.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Finds and removes broken Group Policies from SYSVOL or AD or both.
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Remove-GPOZaurrBroken [-Type] <string[]> [-BackupPath <string>] [-BackupDated] [-LimitProcessing <int>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Remove-GPOZaurrBroken [-Type] <String[]> [-BackupPath <String>] [-BackupDated] [-LimitProcessing <Int32>]
|
||||||
## DESCRIPTION
|
[-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
Finds and removes broken Group Policies from SYSVOL or AD or both. Assesment is based on Get-GPOZaurrBroken and there are 3 supported types:
|
[-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
- 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
|
## DESCRIPTION
|
||||||
|
Finds and removes broken Group Policies from SYSVOL or AD or both.
|
||||||
## EXAMPLES
|
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
|
||||||
### EXAMPLE 1
|
- SYSVOL - meaning GPOs which have no AD content will be deleted from SYSVOL
|
||||||
```powershell
|
- ObjectClass - meaning GPOs which have ObjectClass category of Container rather than groupPolicyContainer will be deleted from AD & SYSVOL
|
||||||
PS > Remove-GPOZaurrBroken -Verbose -WhatIf -Type AD, SYSVOL
|
|
||||||
```
|
## EXAMPLES
|
||||||
|
|
||||||
|
### EXAMPLE 1
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
Remove-GPOZaurrBroken -Verbose -WhatIf -Type AD, SYSVOL
|
||||||
PS > Remove-GPOZaurrBroken -Verbose -WhatIf -Type AD, SYSVOL -IncludeDomains 'ad.evotec.pl' -LimitProcessing 2
|
```
|
||||||
```
|
|
||||||
|
### EXAMPLE 2
|
||||||
|
```
|
||||||
### EXAMPLE 3
|
Remove-GPOZaurrBroken -Verbose -WhatIf -Type AD, SYSVOL -IncludeDomains 'ad.evotec.pl' -LimitProcessing 2
|
||||||
```powershell
|
```
|
||||||
PS > Remove-GPOZaurrBroken -Verbose -IncludeDomains 'ad.evotec.xyz' -BackupPath $Env:UserProfile\Desktop\MyBackup1 -WhatIf -Type AD, SYSVOL
|
|
||||||
```
|
### EXAMPLE 3
|
||||||
|
```
|
||||||
|
Remove-GPOZaurrBroken -Verbose -IncludeDomains 'ad.evotec.xyz' -BackupPath $Env:UserProfile\Desktop\MyBackup1 -WhatIf -Type AD, SYSVOL
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -BackupDated
|
## PARAMETERS
|
||||||
Forces backup to be created within folder that has date in it
|
|
||||||
|
### -Type
|
||||||
```yaml
|
Choose one or more types to delete.
|
||||||
Type: SwitchParameter
|
Options are AD, ObjectClass, SYSVOL
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: named
|
|
||||||
Default value: False
|
Required: True
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -BackupPath
|
```
|
||||||
Path to optional backup of SYSVOL content before deletion
|
|
||||||
|
### -BackupPath
|
||||||
```yaml
|
Path to optional backup of SYSVOL content before deletion
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
### -BackupDated
|
||||||
|
Forces backup to be created within folder that has date in it
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: SwitchParameter
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: False
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -ExtendedForestInformation
|
### -LimitProcessing
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
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
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: Int32
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: 2147483647
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -Forest
|
### -Forest
|
||||||
Target different Forest, by default current forest is used
|
Target different Forest, by default current forest is used
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: ForestName
|
Aliases: ForestName
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -ExcludeDomains
|
||||||
### -IncludeDomains
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Include only specific domains, by default whole forest is scanned
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases: Domain, Domains
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: None
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -IncludeDomains
|
||||||
|
Include only specific domains, by default whole forest is scanned
|
||||||
### -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: String[]
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: Int32
|
Aliases: Domain, Domains
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: 2147483647
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -ExtendedForestInformation
|
||||||
```
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
### -Type
|
```yaml
|
||||||
Choose one or more types to delete. Options are AD, ObjectClass, SYSVOL
|
Type: IDictionary
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: Named
|
||||||
Possible values: SYSVOL, AD, ObjectClass
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: True
|
Accept wildcard characters: False
|
||||||
Position: 0
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -WhatIf
|
||||||
Accept wildcard characters: True
|
Shows what would happen if the cmdlet runs.
|
||||||
```
|
The cmdlet is not run.
|
||||||
|
|
||||||
### CommonParameters
|
```yaml
|
||||||
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).
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
## INPUTS
|
Aliases: wi
|
||||||
|
|
||||||
- `None`
|
Required: False
|
||||||
|
Position: Named
|
||||||
## OUTPUTS
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
- `None`
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
## RELATED LINKS
|
|
||||||
|
### -Confirm
|
||||||
- None
|
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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
## NOTES
|
||||||
|
General notes
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
@@ -1,125 +1,153 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOZaurrDuplicateObject
|
|
||||||
## SYNOPSIS
|
# Remove-GPOZaurrDuplicateObject
|
||||||
Removes duplicate Group Policy Objects (GPOs) identified by the Get-GPOZaurrDuplicateObject function.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Remove-GPOZaurrDuplicateObject [[-LimitProcessing] <int>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Remove-GPOZaurrDuplicateObject [[-LimitProcessing] <Int32>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm]
|
||||||
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.
|
[<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Remove-GPOZaurrDuplicateObject -Forest "contoso.com" -IncludeDomains "domain1.com", "domain2.com" -ExcludeDomains "domain3.com" -LimitProcessing 5
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### Example 1
|
||||||
Description:
|
```powershell
|
||||||
Removes duplicate GPOs from the forest "contoso.com" for domains "domain1.com" and "domain2.com", excluding "domain3.com", processing only the first 5 duplicates.
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
## PARAMETERS
|
|
||||||
|
{{ Add example description here }}
|
||||||
### -ExcludeDomains
|
|
||||||
Specifies an array of domains to exclude from the duplicate GPO removal process.
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -Confirm
|
||||||
Type: String[]
|
Prompts you for confirmation before running the cmdlet.
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: cf
|
||||||
Position: 2
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Specifies additional information about the forest.
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
{{ Fill ExcludeDomains Description }}
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 4
|
Required: False
|
||||||
Default value: None
|
Position: 2
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Specifies the forest where the duplicate GPOs are located.
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: IDictionary
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 4
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -Forest
|
||||||
Specifies an array of domains to include in the duplicate GPO removal process.
|
{{ Fill Forest Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases: ForestName
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 1
|
||||||
Position: 3
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -IncludeDomains
|
||||||
### -LimitProcessing
|
{{ Fill IncludeDomains Description }}
|
||||||
Specifies the maximum number of duplicate GPOs to process. Default is set to [int32]::MaxValue.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: Int32
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases: Domain, Domains
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 3
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 0
|
Accept pipeline input: False
|
||||||
Default value: 2147483647
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -LimitProcessing
|
||||||
|
{{ Fill LimitProcessing Description }}
|
||||||
### 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).
|
```yaml
|
||||||
|
Type: Int32
|
||||||
## INPUTS
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
- `None`
|
|
||||||
|
Required: False
|
||||||
## OUTPUTS
|
Position: 0
|
||||||
|
Default value: None
|
||||||
- `None`
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
## RELATED LINKS
|
```
|
||||||
|
|
||||||
- None
|
### -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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+231
-204
@@ -1,204 +1,231 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOZaurrFolders
|
|
||||||
## SYNOPSIS
|
# Remove-GPOZaurrFolders
|
||||||
Removes specified GPOZaurr folders and backs them up to a specified path.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Remove-GPOZaurrFolders [[-BackupPath] <string>] [[-Type] <string[]>] [-FolderType] <string> [[-FolderName] <string[]>] [[-LimitProcessing] <int>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-BackupDated] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Remove-GPOZaurrFolders [[-BackupPath] <String>] [-BackupDated] [[-Type] <String[]>] [-FolderType] <String>
|
||||||
## DESCRIPTION
|
[[-FolderName] <String[]>] [[-LimitProcessing] <Int32>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
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.
|
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm]
|
||||||
|
[<CommonParameters>]
|
||||||
## EXAMPLES
|
```
|
||||||
|
|
||||||
### EXAMPLE 1
|
## DESCRIPTION
|
||||||
```powershell
|
{{ Fill in the Description }}
|
||||||
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.
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
## PARAMETERS
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
### -BackupDated
|
|
||||||
Indicates whether the backup path should include a timestamp.
|
{{ Add example description here }}
|
||||||
|
|
||||||
```yaml
|
## PARAMETERS
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -BackupDated
|
||||||
Aliases:
|
{{ Fill BackupDated Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: SwitchParameter
|
||||||
Position: named
|
Parameter Sets: (All)
|
||||||
Default value: False
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: Named
|
||||||
|
Default value: None
|
||||||
### -BackupPath
|
Accept pipeline input: False
|
||||||
The path where the GPOZaurr folders will be backed up.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String
|
### -BackupPath
|
||||||
Parameter Sets: __AllParameterSets
|
{{ Fill BackupPath Description }}
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 0
|
Aliases:
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 0
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -ExcludeDomains
|
Accept wildcard characters: False
|
||||||
Specifies domains to exclude from processing.
|
```
|
||||||
|
|
||||||
```yaml
|
### -Confirm
|
||||||
Type: String[]
|
Prompts you for confirmation before running the cmdlet.
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: cf
|
||||||
Position: 6
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: Named
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Specifies additional forest information.
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
{{ Fill ExcludeDomains Description }}
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 8
|
Required: False
|
||||||
Default value: None
|
Position: 6
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -FolderName
|
|
||||||
Specifies the name of the folder to remove.
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: IDictionary
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 3
|
Position: 8
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -FolderType
|
### -FolderName
|
||||||
Specifies the type of folders to remove. Options are 'NTFRS' or 'Empty'.
|
{{ Fill FolderName Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values: NTFRS, Empty
|
|
||||||
|
Required: False
|
||||||
Required: True
|
Position: 3
|
||||||
Position: 2
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -FolderType
|
||||||
### -Forest
|
{{ Fill FolderType Description }}
|
||||||
Specifies the forest to target.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String
|
||||||
Type: String
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases: ForestName
|
Accepted values: NTFRS, Empty
|
||||||
Possible values:
|
|
||||||
|
Required: True
|
||||||
Required: False
|
Position: 2
|
||||||
Position: 5
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -Forest
|
||||||
### -IncludeDomains
|
{{ Fill Forest Description }}
|
||||||
Specifies domains to include in processing.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases: ForestName
|
||||||
Aliases: Domain, Domains
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 5
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 7
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -IncludeDomains
|
||||||
|
{{ Fill IncludeDomains Description }}
|
||||||
### -LimitProcessing
|
|
||||||
Limits the number of folders to process.
|
```yaml
|
||||||
|
Type: String[]
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: Int32
|
Aliases: Domain, Domains
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: 7
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 4
|
Accept wildcard characters: False
|
||||||
Default value: 2147483647
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -LimitProcessing
|
||||||
```
|
{{ Fill LimitProcessing Description }}
|
||||||
|
|
||||||
### -Type
|
```yaml
|
||||||
Specifies the type of folders to remove. Options are 'All', 'Netlogon', or 'Sysvol'.
|
Type: Int32
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases:
|
Position: 4
|
||||||
Possible values: All, Netlogon, Sysvol
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 1
|
```
|
||||||
Default value: All
|
|
||||||
Accept pipeline input: False
|
### -Type
|
||||||
Accept wildcard characters: True
|
{{ Fill Type Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### CommonParameters
|
Type: String[]
|
||||||
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).
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
## INPUTS
|
Accepted values: All, Netlogon, Sysvol
|
||||||
|
|
||||||
- `None`
|
Required: False
|
||||||
|
Position: 1
|
||||||
## OUTPUTS
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
- `None`
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
## RELATED LINKS
|
|
||||||
|
### -WhatIf
|
||||||
- None
|
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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+183
-156
@@ -1,156 +1,183 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOZaurrLegacyFiles
|
|
||||||
## SYNOPSIS
|
# Remove-GPOZaurrLegacyFiles
|
||||||
Removes legacy Group Policy Objects (GPO) files from specified domains.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Remove-GPOZaurrLegacyFiles [[-BackupPath] <string>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-LimitProcessing] <int>] [-BackupDated] [-RemoveEmptyFolders] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Remove-GPOZaurrLegacyFiles [[-BackupPath] <String>] [-BackupDated] [-RemoveEmptyFolders] [[-Forest] <String>]
|
||||||
## DESCRIPTION
|
[[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>] [[-LimitProcessing] <Int32>] [-WhatIf]
|
||||||
The Remove-GPOZaurrLegacyFiles function removes legacy GPO files from specified domains. It can back up the files before removal and optionally remove empty folders.
|
[-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Remove-GPOZaurrLegacyFiles -BackupPath "C:\GPOBackups" -BackupDated -RemoveEmptyFolders -Forest "Contoso" -IncludeDomains "Domain1", "Domain2" -ExcludeDomains "Domain3" -LimitProcessing 100
|
## EXAMPLES
|
||||||
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.
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -BackupDated
|
{{ Add example description here }}
|
||||||
Indicates whether backup files should be timestamped with the current date and time.
|
|
||||||
|
## PARAMETERS
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
### -BackupDated
|
||||||
Parameter Sets: __AllParameterSets
|
{{ Fill BackupDated Description }}
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: named
|
Aliases:
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -BackupPath
|
Accept wildcard characters: False
|
||||||
Specifies the path where backup files will be stored.
|
```
|
||||||
|
|
||||||
```yaml
|
### -BackupPath
|
||||||
Type: String
|
{{ Fill BackupPath Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: 0
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 0
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExcludeDomains
|
```
|
||||||
Specifies an array of domains to exclude from processing.
|
|
||||||
|
### -Confirm
|
||||||
```yaml
|
Prompts you for confirmation before running the cmdlet.
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: SwitchParameter
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases: cf
|
||||||
Required: False
|
|
||||||
Position: 2
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Specifies the forest where the GPO files are located.
|
### -ExcludeDomains
|
||||||
|
{{ Fill ExcludeDomains Description }}
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 2
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -Forest
|
||||||
Specifies an array of domains to include for processing.
|
{{ Fill Forest Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases: ForestName
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 1
|
||||||
Position: 3
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -IncludeDomains
|
||||||
### -LimitProcessing
|
{{ Fill IncludeDomains Description }}
|
||||||
Specifies the maximum number of GPO files to process.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: Int32
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases: Domain, Domains
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 3
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 4
|
Accept pipeline input: False
|
||||||
Default value: 2147483647
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -LimitProcessing
|
||||||
|
{{ Fill LimitProcessing Description }}
|
||||||
### -RemoveEmptyFolders
|
|
||||||
Indicates whether empty folders should be removed after GPO files are deleted.
|
```yaml
|
||||||
|
Type: Int32
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: SwitchParameter
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: 4
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: False
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -RemoveEmptyFolders
|
||||||
```
|
{{ Fill RemoveEmptyFolders Description }}
|
||||||
|
|
||||||
### CommonParameters
|
```yaml
|
||||||
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).
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
## INPUTS
|
Aliases:
|
||||||
|
|
||||||
- `None`
|
Required: False
|
||||||
|
Position: Named
|
||||||
## OUTPUTS
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
- `None`
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
## RELATED LINKS
|
|
||||||
|
### -WhatIf
|
||||||
- None
|
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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+168
-140
@@ -1,140 +1,168 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOZaurrLinkEmptyOU
|
|
||||||
## SYNOPSIS
|
# Remove-GPOZaurrLinkEmptyOU
|
||||||
Removes Group Policy Object (GPO) links from empty Organizational Units (OUs) in a specified forest.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Remove-GPOZaurrLinkEmptyOU [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-ExcludeOrganizationalUnit] <string[]>] [[-LimitProcessing] <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Remove-GPOZaurrLinkEmptyOU [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [[-ExcludeOrganizationalUnit] <String[]>]
|
||||||
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.
|
[[-LimitProcessing] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Remove-GPOZaurrLinkEmptyOU -Forest "ContosoForest" -IncludeDomains @("domain1", "domain2") -ExcludeDomains @("domain3") -ExtendedForestInformation $info -ExcludeOrganizationalUnit @("OU=TestOU,DC=contoso,DC=com") -LimitProcessing 100
|
## EXAMPLES
|
||||||
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.
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -ExcludeDomains
|
{{ Add example description here }}
|
||||||
Specifies an array of domains to exclude from processing.
|
|
||||||
|
## PARAMETERS
|
||||||
```yaml
|
|
||||||
Type: String[]
|
### -Confirm
|
||||||
Parameter Sets: __AllParameterSets
|
Prompts you for confirmation before running the cmdlet.
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 1
|
Aliases: cf
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -ExcludeOrganizationalUnit
|
Accept wildcard characters: False
|
||||||
Specifies an array of OUs to exclude from processing.
|
```
|
||||||
|
|
||||||
```yaml
|
### -ExcludeDomains
|
||||||
Type: String[]
|
{{ Fill ExcludeDomains Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: 4
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Specifies additional information about the forest.
|
|
||||||
|
### -ExcludeOrganizationalUnit
|
||||||
```yaml
|
{{ Fill ExcludeOrganizationalUnit Description }}
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 3
|
Required: False
|
||||||
Default value: None
|
Position: 4
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Specifies the name of the forest to target for processing.
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: IDictionary
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 0
|
Position: 3
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -Forest
|
||||||
Specifies an array of domains to include for processing.
|
{{ Fill Forest Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: String
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases: ForestName
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 0
|
||||||
Position: 2
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -IncludeDomains
|
||||||
### -LimitProcessing
|
{{ Fill IncludeDomains Description }}
|
||||||
Specifies the maximum number of OUs to process.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String[]
|
||||||
Type: Int32
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases: Domain, Domains
|
||||||
Aliases:
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 2
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 5
|
Accept pipeline input: False
|
||||||
Default value: 2147483647
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -LimitProcessing
|
||||||
|
{{ Fill LimitProcessing Description }}
|
||||||
### 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).
|
```yaml
|
||||||
|
Type: Int32
|
||||||
## INPUTS
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
- `None`
|
|
||||||
|
Required: False
|
||||||
## OUTPUTS
|
Position: 5
|
||||||
|
Default value: None
|
||||||
- `None`
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
## RELATED LINKS
|
```
|
||||||
|
|
||||||
- None
|
### -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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
@@ -1,42 +1,313 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOZaurrPermission
|
|
||||||
## SYNOPSIS
|
# Remove-GPOZaurrPermission
|
||||||
{{ Fill in the Synopsis }}
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
```powershell
|
|
||||||
Remove-GPOZaurrPermission
|
## SYNTAX
|
||||||
```
|
|
||||||
|
### Global (Default)
|
||||||
## DESCRIPTION
|
```
|
||||||
{{ Fill in the Description }}
|
Remove-GPOZaurrPermission [-Principal <String[]>] [-PrincipalType <String>] [-Type <String[]>]
|
||||||
|
[-IncludePermissionType <GPPermissionType[]>] [-ExcludePermissionType <GPPermissionType[]>] [-SkipWellKnown]
|
||||||
## EXAMPLES
|
[-SkipAdministrative] [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
|
[-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf] [-Confirm]
|
||||||
### EXAMPLE 1
|
[<CommonParameters>]
|
||||||
```powershell
|
```
|
||||||
Remove-GPOZaurrPermission
|
|
||||||
```
|
### GPOName
|
||||||
|
```
|
||||||
|
Remove-GPOZaurrPermission -GPOName <String> [-Principal <String[]>] [-PrincipalType <String>]
|
||||||
## PARAMETERS
|
[-Type <String[]>] [-IncludePermissionType <GPPermissionType[]>] [-ExcludePermissionType <GPPermissionType[]>]
|
||||||
|
[-SkipWellKnown] [-SkipAdministrative] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
### CommonParameters
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
|
||||||
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).
|
[-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
## INPUTS
|
|
||||||
|
### GPOGUID
|
||||||
- `None`
|
```
|
||||||
|
Remove-GPOZaurrPermission -GPOGuid <String> [-Principal <String[]>] [-PrincipalType <String>]
|
||||||
## OUTPUTS
|
[-Type <String[]>] [-IncludePermissionType <GPPermissionType[]>] [-ExcludePermissionType <GPPermissionType[]>]
|
||||||
|
[-SkipWellKnown] [-SkipAdministrative] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
- `None`
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
|
||||||
|
[-Confirm] [<CommonParameters>]
|
||||||
## RELATED LINKS
|
```
|
||||||
|
|
||||||
- None
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
|
{{ 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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+168
-151
@@ -1,151 +1,168 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Remove-GPOZaurrWMI
|
|
||||||
## SYNOPSIS
|
# Remove-GPOZaurrWMI
|
||||||
Removes Group Policy WMI filters based on specified criteria.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Remove-GPOZaurrWMI [[-Guid] <guid[]>] [[-Name] <string[]>] [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Remove-GPOZaurrWMI [[-Guid] <Guid[]>] [[-Name] <String[]>] [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [-WhatIf] [-Confirm]
|
||||||
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.
|
[<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Remove-GPOZaurrWMI -Guid "12345678-1234-1234-1234-123456789012"
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### Example 1
|
||||||
Description
|
```powershell
|
||||||
-----------
|
PS C:\> {{ Add example code here }}
|
||||||
Removes the WMI filter with the specified GUID.
|
```
|
||||||
|
|
||||||
### EXAMPLE 2
|
{{ Add example description here }}
|
||||||
```powershell
|
|
||||||
PS > Remove-GPOZaurrWMI -Name "TestWMIFilter"
|
## PARAMETERS
|
||||||
```
|
|
||||||
|
### -Confirm
|
||||||
Description
|
Prompts you for confirmation before running the cmdlet.
|
||||||
-----------
|
|
||||||
Removes the WMI filter with the specified name.
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
## PARAMETERS
|
Parameter Sets: (All)
|
||||||
|
Aliases: cf
|
||||||
### -ExcludeDomains
|
|
||||||
Specifies an array of domains to exclude from the removal process.
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String[]
|
Accept pipeline input: False
|
||||||
Parameter Sets: __AllParameterSets
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### -ExcludeDomains
|
||||||
Required: False
|
{{ Fill ExcludeDomains Description }}
|
||||||
Position: 3
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String[]
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases:
|
||||||
|
|
||||||
### -ExtendedForestInformation
|
Required: False
|
||||||
Specifies additional information about the forest.
|
Position: 3
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: IDictionary
|
Accept wildcard characters: False
|
||||||
Parameter Sets: __AllParameterSets
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -ExtendedForestInformation
|
||||||
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Required: False
|
|
||||||
Position: 5
|
```yaml
|
||||||
Default value: None
|
Type: IDictionary
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -Forest
|
Position: 5
|
||||||
Specifies the forest name where the WMI filters are located.
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: String
|
```
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases: ForestName
|
### -Forest
|
||||||
Possible values:
|
{{ Fill Forest Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: 2
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases: ForestName
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: 2
|
||||||
### -Guid
|
Default value: None
|
||||||
Specifies an array of GUIDs of the WMI filters to be removed.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: Guid[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -Guid
|
||||||
Aliases:
|
{{ Fill Guid Description }}
|
||||||
Possible values:
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: Guid[]
|
||||||
Position: 0
|
Parameter Sets: (All)
|
||||||
Default value: None
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: 0
|
||||||
|
Default value: None
|
||||||
### -IncludeDomains
|
Accept pipeline input: False
|
||||||
Specifies an array of domains to include in the removal process.
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
```yaml
|
|
||||||
Type: String[]
|
### -IncludeDomains
|
||||||
Parameter Sets: __AllParameterSets
|
{{ Fill IncludeDomains Description }}
|
||||||
Aliases: Domain, Domains
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: String[]
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 4
|
Aliases: Domain, Domains
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: 4
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -Name
|
Accept wildcard characters: False
|
||||||
Specifies an array of names of the WMI filters to be removed.
|
```
|
||||||
|
|
||||||
```yaml
|
### -Name
|
||||||
Type: String[]
|
{{ Fill Name Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: 1
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
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).
|
|
||||||
|
### -WhatIf
|
||||||
## INPUTS
|
Shows what would happen if the cmdlet runs.
|
||||||
|
The cmdlet is not run.
|
||||||
- `None`
|
|
||||||
|
```yaml
|
||||||
## OUTPUTS
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
- `None`
|
Aliases: wi
|
||||||
|
|
||||||
## RELATED LINKS
|
Required: False
|
||||||
|
Position: Named
|
||||||
- None
|
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
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+156
-129
@@ -1,129 +1,156 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Repair-GPOZaurrBrokenLink
|
|
||||||
## SYNOPSIS
|
# Repair-GPOZaurrBrokenLink
|
||||||
Removes any link to GPO that no longer exists.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Removes any link to GPO that no longer exists.
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Repair-GPOZaurrBrokenLink [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Repair-GPOZaurrBrokenLink [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <Int32>] [-WhatIf] [-Confirm]
|
||||||
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.
|
[<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
Removes any link to GPO that no longer exists.
|
||||||
```powershell
|
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.
|
||||||
PS > Repair-GPOZaurrBrokenLink -Verbose -LimitProcessing 1 -WhatIf
|
|
||||||
```
|
## EXAMPLES
|
||||||
|
|
||||||
|
### EXAMPLE 1
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
Repair-GPOZaurrBrokenLink -Verbose -LimitProcessing 1 -WhatIf
|
||||||
PS > Repair-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl -LimitProcessing 1 -WhatIf
|
```
|
||||||
```
|
|
||||||
|
### EXAMPLE 2
|
||||||
|
```
|
||||||
## PARAMETERS
|
Repair-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl -LimitProcessing 1 -WhatIf
|
||||||
|
```
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -Forest
|
||||||
Type: String[]
|
Target different Forest, by default current forest is used
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: ForestName
|
||||||
Position: 1
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 3
|
Required: False
|
||||||
Default value: None
|
Position: 2
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Target different Forest, by default current forest is used
|
### -IncludeDomains
|
||||||
|
Include only specific domains, by default whole forest is scanned
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 0
|
Position: 3
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -ExtendedForestInformation
|
||||||
Include only specific domains, by default whole forest is scanned
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: IDictionary
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 4
|
||||||
Position: 2
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -LimitProcessing
|
||||||
### -LimitProcessing
|
Allows to specify maximum number of items that will be fixed in a single run.
|
||||||
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
|
It doesn't affect amount of GPOs processed
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: Int32
|
Type: Int32
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 5
|
||||||
Position: 4
|
Default value: 0
|
||||||
Default value: 0
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -WhatIf
|
||||||
### CommonParameters
|
Shows what would happen if the cmdlet runs.
|
||||||
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).
|
The cmdlet is not run.
|
||||||
|
|
||||||
## INPUTS
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
- `None`
|
Parameter Sets: (All)
|
||||||
|
Aliases: wi
|
||||||
## OUTPUTS
|
|
||||||
|
Required: False
|
||||||
- `None`
|
Position: Named
|
||||||
|
Default value: None
|
||||||
## RELATED LINKS
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
- None
|
```
|
||||||
|
|
||||||
|
### -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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
## NOTES
|
||||||
|
General notes
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
@@ -1,139 +1,166 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Repair-GPOZaurrNetLogonOwner
|
|
||||||
## SYNOPSIS
|
# Repair-GPOZaurrNetLogonOwner
|
||||||
Sets new owner to each file in NetLogon share.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Sets new owner to each file in NetLogon share.
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Repair-GPOZaurrNetLogonOwner [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Principal] <string>] [[-LimitProcessing] <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Repair-GPOZaurrNetLogonOwner [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [[-Principal] <String>] [[-LimitProcessing] <Int32>] [-WhatIf]
|
||||||
Sets new owner to each file in NetLogon share.
|
[-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
Sets new owner to each file in NetLogon share.
|
||||||
```powershell
|
|
||||||
PS > Repair-GPOZaurrNetLogonOwner -WhatIf -Verbose -IncludeDomains ad.evotec.pl
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
## PARAMETERS
|
Repair-GPOZaurrNetLogonOwner -WhatIf -Verbose -IncludeDomains ad.evotec.pl
|
||||||
|
```
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
## PARAMETERS
|
||||||
|
|
||||||
```yaml
|
### -Forest
|
||||||
Type: String[]
|
Target different Forest, by default current forest is used
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases: ForestName
|
||||||
Position: 1
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 1
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -ExtendedForestInformation
|
```
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
|
||||||
|
### -ExcludeDomains
|
||||||
```yaml
|
Exclude domain from search, by default whole forest is scanned
|
||||||
Type: IDictionary
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String[]
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 3
|
Required: False
|
||||||
Default value: None
|
Position: 2
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -Forest
|
|
||||||
Target different Forest, by default current forest is used
|
### -IncludeDomains
|
||||||
|
Include only specific domains, by default whole forest is scanned
|
||||||
```yaml
|
|
||||||
Type: String
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases: ForestName
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 0
|
Position: 3
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -IncludeDomains
|
### -ExtendedForestInformation
|
||||||
Include only specific domains, by default whole forest is scanned
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String[]
|
Type: IDictionary
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases: Domain, Domains
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 4
|
||||||
Position: 2
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -Principal
|
||||||
### -LimitProcessing
|
Provide named owner.
|
||||||
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
|
If not provided default S-1-5-32-544 is used.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: Int32
|
Type: String
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 5
|
||||||
Position: 5
|
Default value: S-1-5-32-544
|
||||||
Default value: 2147483647
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -LimitProcessing
|
||||||
### -Principal
|
Allows to specify maximum number of items that will be fixed in a single run.
|
||||||
Provide named owner. If not provided default S-1-5-32-544 is used.
|
It doesn't affect amount of GPOs processed
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: Int32
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 6
|
||||||
Position: 4
|
Default value: 2147483647
|
||||||
Default value: S-1-5-32-544
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -WhatIf
|
||||||
### CommonParameters
|
Shows what would happen if the cmdlet runs.
|
||||||
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).
|
The cmdlet is not run.
|
||||||
|
|
||||||
## INPUTS
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
- `None`
|
Parameter Sets: (All)
|
||||||
|
Aliases: wi
|
||||||
## OUTPUTS
|
|
||||||
|
Required: False
|
||||||
- `None`
|
Position: Named
|
||||||
|
Default value: None
|
||||||
## RELATED LINKS
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
- None
|
```
|
||||||
|
|
||||||
|
### -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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
## NOTES
|
||||||
|
General notes
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+169
-140
@@ -1,140 +1,169 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Repair-GPOZaurrPermission
|
|
||||||
## SYNOPSIS
|
# Repair-GPOZaurrPermission
|
||||||
Repairs permissions for Group Policy Objects (GPOs) based on specified criteria.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Repair-GPOZaurrPermission [-Type] <string[]> [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Repair-GPOZaurrPermission [-Type] <String[]> [[-Forest] <String>] [[-ExcludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-IncludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [[-LimitProcessing] <Int32>]
|
||||||
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.
|
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
{{ Fill in the Description }}
|
||||||
```powershell
|
|
||||||
PS > Repair-GPOZaurrPermission -Type 'All' -Forest 'ContosoForest' -IncludeDomains @('Domain1', 'Domain2') -ExcludeDomains @('Domain3') -ExtendedForestInformation $info -LimitProcessing 100
|
## EXAMPLES
|
||||||
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.
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -ExcludeDomains
|
{{ Add example description here }}
|
||||||
Specifies an array of domains to exclude from the analysis.
|
|
||||||
|
## PARAMETERS
|
||||||
```yaml
|
|
||||||
Type: String[]
|
### -Confirm
|
||||||
Parameter Sets: __AllParameterSets
|
Prompts you for confirmation before running the cmdlet.
|
||||||
Aliases:
|
|
||||||
Possible values:
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
Required: False
|
Parameter Sets: (All)
|
||||||
Position: 2
|
Aliases: cf
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
Required: False
|
||||||
Accept wildcard characters: True
|
Position: Named
|
||||||
```
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
### -ExtendedForestInformation
|
Accept wildcard characters: False
|
||||||
Specifies additional information about the forest.
|
```
|
||||||
|
|
||||||
```yaml
|
### -ExcludeDomains
|
||||||
Type: IDictionary
|
{{ Fill ExcludeDomains Description }}
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
```yaml
|
||||||
Possible values:
|
Type: String[]
|
||||||
|
Parameter Sets: (All)
|
||||||
Required: False
|
Aliases:
|
||||||
Position: 4
|
|
||||||
Default value: None
|
Required: False
|
||||||
Accept pipeline input: False
|
Position: 2
|
||||||
Accept wildcard characters: True
|
Default value: None
|
||||||
```
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
### -Forest
|
```
|
||||||
Specifies the forest name to analyze GPO permissions.
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
```yaml
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases: ForestName
|
Type: IDictionary
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: False
|
|
||||||
Position: 1
|
Required: False
|
||||||
Default value: None
|
Position: 4
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -IncludeDomains
|
|
||||||
Specifies an array of domains to include in the analysis.
|
### -Forest
|
||||||
|
{{ Fill Forest Description }}
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String
|
||||||
Aliases: Domain, Domains
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases: ForestName
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 3
|
Position: 1
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -LimitProcessing
|
### -IncludeDomains
|
||||||
Specifies the maximum number of GPOs to process.
|
{{ Fill IncludeDomains Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: Int32
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: Domain, Domains
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 3
|
||||||
Position: 5
|
Default value: None
|
||||||
Default value: 2147483647
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -LimitProcessing
|
||||||
### -Type
|
{{ Fill LimitProcessing Description }}
|
||||||
Specifies the type of permissions to repair. Valid values are 'AuthenticatedUsers', 'Unknown', 'System', 'Administrative', and 'All'.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: Int32
|
||||||
Type: String[]
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases:
|
|
||||||
Possible values: AuthenticatedUsers, Unknown, System, Administrative, All
|
Required: False
|
||||||
|
Position: 5
|
||||||
Required: True
|
Default value: None
|
||||||
Position: 0
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -Type
|
||||||
|
{{ Fill Type Description }}
|
||||||
### 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).
|
```yaml
|
||||||
|
Type: String[]
|
||||||
## INPUTS
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
- `None`
|
Accepted values: AuthenticatedUsers, Unknown, System, Administrative, All
|
||||||
|
|
||||||
## OUTPUTS
|
Required: True
|
||||||
|
Position: 0
|
||||||
- `None`
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
## RELATED LINKS
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
- None
|
|
||||||
|
### -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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
@@ -1,173 +1,198 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Repair-GPOZaurrPermissionConsistency
|
|
||||||
## SYNOPSIS
|
# Repair-GPOZaurrPermissionConsistency
|
||||||
Repairs permission consistency for Group Policy Objects (GPOs) in a specified domain or forest.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### Default (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Repair-GPOZaurrPermissionConsistency [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
|
||||||
```
|
### Default (Default)
|
||||||
|
```
|
||||||
### GPOName
|
Repair-GPOZaurrPermissionConsistency [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
```powershell
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
|
||||||
Repair-GPOZaurrPermissionConsistency [-GPOName <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
### GPOGUID
|
### GPOName
|
||||||
```powershell
|
```
|
||||||
Repair-GPOZaurrPermissionConsistency [-GPOGuid <string>] [-Forest <string>] [-ExcludeDomains <string[]>] [-IncludeDomains <string[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <int>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
Repair-GPOZaurrPermissionConsistency [-GPOName <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
```
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
|
||||||
|
[-Confirm] [<CommonParameters>]
|
||||||
## 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.
|
|
||||||
|
### GPOGUID
|
||||||
## EXAMPLES
|
```
|
||||||
|
Repair-GPOZaurrPermissionConsistency [-GPOGuid <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
### EXAMPLE 1
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-LimitProcessing <Int32>] [-WhatIf]
|
||||||
```powershell
|
[-Confirm] [<CommonParameters>]
|
||||||
PS > Repair-GPOZaurrPermissionConsistency -GPOName "ExampleGPO" -Forest "example.com"
|
```
|
||||||
Repairs permission consistency for the GPO named "ExampleGPO" in the "example.com" forest.
|
|
||||||
```
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
|
|
||||||
### EXAMPLE 2
|
## EXAMPLES
|
||||||
```powershell
|
|
||||||
PS > Repair-GPOZaurrPermissionConsistency -GPOGuid "12345678-1234-1234-1234-1234567890AB" -ExcludeDomains @("domain1", "domain2") -LimitProcessing 5
|
### Example 1
|
||||||
Repairs permission consistency for the GPO with the specified GUID, excluding domains "domain1" and "domain2", and processing a maximum of 5 GPOs.
|
```powershell
|
||||||
```
|
PS C:\> {{ Add example code here }}
|
||||||
|
```
|
||||||
|
|
||||||
## PARAMETERS
|
{{ Add example description here }}
|
||||||
|
|
||||||
### -ExcludeDomains
|
## PARAMETERS
|
||||||
Specifies an array of domains to exclude from the repair process.
|
|
||||||
|
### -Confirm
|
||||||
```yaml
|
Prompts you for confirmation before running the cmdlet.
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
```yaml
|
||||||
Aliases:
|
Type: SwitchParameter
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases: cf
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -ExtendedForestInformation
|
|
||||||
Specifies additional information about the forest.
|
### -ExcludeDomains
|
||||||
|
{{ Fill ExcludeDomains Description }}
|
||||||
```yaml
|
|
||||||
Type: IDictionary
|
```yaml
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
Type: String[]
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: named
|
Position: Named
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -Forest
|
### -ExtendedForestInformation
|
||||||
Specifies the forest where the GPOs are located.
|
{{ Fill ExtendedForestInformation Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: IDictionary
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
Parameter Sets: (All)
|
||||||
Aliases: ForestName
|
Aliases:
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: Named
|
||||||
Position: named
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -Forest
|
||||||
### -GPOGuid
|
{{ Fill Forest Description }}
|
||||||
Specifies the GUID of the GPO to repair.
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: String
|
||||||
Type: String
|
Parameter Sets: (All)
|
||||||
Parameter Sets: GPOGUID
|
Aliases: ForestName
|
||||||
Aliases: GUID, GPOID
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: Named
|
||||||
Required: False
|
Default value: None
|
||||||
Position: named
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -GPOGuid
|
||||||
|
{{ Fill GPOGuid Description }}
|
||||||
### -GPOName
|
|
||||||
Specifies the name of the GPO to repair.
|
```yaml
|
||||||
|
Type: String
|
||||||
```yaml
|
Parameter Sets: GPOGUID
|
||||||
Type: String
|
Aliases: GUID, GPOID
|
||||||
Parameter Sets: GPOName
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -GPOName
|
||||||
```
|
{{ Fill GPOName Description }}
|
||||||
|
|
||||||
### -IncludeDomains
|
```yaml
|
||||||
Specifies an array of domains to include in the repair process.
|
Type: String
|
||||||
|
Parameter Sets: GPOName
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
Required: False
|
||||||
Aliases: Domain, Domains
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -IncludeDomains
|
||||||
Accept wildcard characters: True
|
{{ Fill IncludeDomains Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -LimitProcessing
|
Type: String[]
|
||||||
Specifies the maximum number of GPOs to process.
|
Parameter Sets: (All)
|
||||||
|
Aliases: Domain, Domains
|
||||||
```yaml
|
|
||||||
Type: Int32
|
Required: False
|
||||||
Parameter Sets: Default, GPOName, GPOGUID
|
Position: Named
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: named
|
|
||||||
Default value: 2147483647
|
### -LimitProcessing
|
||||||
Accept pipeline input: False
|
{{ Fill LimitProcessing Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: Int32
|
||||||
### CommonParameters
|
Parameter Sets: (All)
|
||||||
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).
|
Aliases:
|
||||||
|
|
||||||
## INPUTS
|
Required: False
|
||||||
|
Position: Named
|
||||||
- `None`
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
## OUTPUTS
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
- `None`
|
|
||||||
|
### -WhatIf
|
||||||
## RELATED LINKS
|
Shows what would happen if the cmdlet runs.
|
||||||
|
The cmdlet is not run.
|
||||||
- None
|
|
||||||
|
```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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
### System.Object
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+121
-129
@@ -1,129 +1,121 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Restore-GPOZaurr
|
|
||||||
## SYNOPSIS
|
# Restore-GPOZaurr
|
||||||
Restores Group Policy Objects (GPOs) from a specified backup folder.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
{{ Fill in the Synopsis }}
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Restore-GPOZaurr [-BackupFolder] <string> [[-DisplayName] <string>] [[-NewDisplayName] <string>] [[-Domain] <string>] [-SkipBackupSummary] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Restore-GPOZaurr [-BackupFolder] <String> [[-DisplayName] <String>] [[-NewDisplayName] <String>]
|
||||||
## DESCRIPTION
|
[[-Domain] <String>] [-SkipBackupSummary] [<CommonParameters>]
|
||||||
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
|
## DESCRIPTION
|
||||||
|
{{ Fill in the Description }}
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Restore-GPOZaurr -BackupFolder 'C:\GPOBackups' -DisplayName 'TestGPO'
|
|
||||||
```
|
### Example 1
|
||||||
|
```powershell
|
||||||
|
PS C:\> {{ Add example code here }}
|
||||||
### EXAMPLE 2
|
```
|
||||||
```powershell
|
|
||||||
PS > Restore-GPOZaurr -BackupFolder 'C:\GPOBackups' -DisplayName 'TestGPO' -NewDisplayName 'NewTestGPO' -Domain 'example.com'
|
{{ Add example description here }}
|
||||||
```
|
|
||||||
|
## PARAMETERS
|
||||||
|
|
||||||
## PARAMETERS
|
### -BackupFolder
|
||||||
|
{{ Fill BackupFolder Description }}
|
||||||
### -BackupFolder
|
|
||||||
The path to the folder containing the GPO backups.
|
```yaml
|
||||||
|
Type: String
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: True
|
||||||
Possible values:
|
Position: 0
|
||||||
|
Default value: None
|
||||||
Required: True
|
Accept pipeline input: False
|
||||||
Position: 0
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -DisplayName
|
||||||
```
|
{{ Fill DisplayName Description }}
|
||||||
|
|
||||||
### -DisplayName
|
```yaml
|
||||||
The display name of the GPO to be restored.
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases: Name
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases: Name
|
Position: 1
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 1
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### -Domain
|
||||||
Accept wildcard characters: True
|
{{ Fill Domain Description }}
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -Domain
|
Type: String
|
||||||
(Optional) The domain name where the GPO should be restored.
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: String
|
Required: False
|
||||||
Parameter Sets: __AllParameterSets
|
Position: 3
|
||||||
Aliases:
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: 3
|
|
||||||
Default value: None
|
### -NewDisplayName
|
||||||
Accept pipeline input: False
|
{{ Fill NewDisplayName Description }}
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String
|
||||||
### -NewDisplayName
|
Parameter Sets: (All)
|
||||||
(Optional) The new display name for the restored GPO.
|
Aliases:
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: String
|
Position: 2
|
||||||
Parameter Sets: __AllParameterSets
|
Default value: None
|
||||||
Aliases:
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: 2
|
### -SkipBackupSummary
|
||||||
Default value: None
|
{{ Fill SkipBackupSummary Description }}
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
### -SkipBackupSummary
|
Aliases:
|
||||||
(Switch) Skip displaying the backup summary information.
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: Named
|
||||||
Type: SwitchParameter
|
Default value: None
|
||||||
Parameter Sets: __AllParameterSets
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### CommonParameters
|
||||||
Position: named
|
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).
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
## INPUTS
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### None
|
||||||
|
|
||||||
### CommonParameters
|
## OUTPUTS
|
||||||
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).
|
|
||||||
|
### System.Object
|
||||||
## INPUTS
|
## NOTES
|
||||||
|
|
||||||
- `None`
|
## RELATED LINKS
|
||||||
|
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+132
-139
@@ -1,139 +1,132 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Save-GPOZaurrFiles
|
|
||||||
## SYNOPSIS
|
# Save-GPOZaurrFiles
|
||||||
Exports GPO XML data to files and saves it to a given path
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Exports GPO XML data to files and saves it to a given path
|
||||||
### __AllParameterSets
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
Save-GPOZaurrFiles [[-Forest] <string>] [[-ExcludeDomains] <string[]>] [[-IncludeDomains] <string[]>] [[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <string[]>] [-DeleteExisting] [<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
Save-GPOZaurrFiles [[-Forest] <String>] [[-ExcludeDomains] <String[]>] [[-IncludeDomains] <String[]>]
|
||||||
## DESCRIPTION
|
[[-ExtendedForestInformation] <IDictionary>] [[-GPOPath] <String[]>] [-DeleteExisting] [<CommonParameters>]
|
||||||
Exports GPO XML data to files and saves it to a given path
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
Exports GPO XML data to files and saves it to a given path
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
## EXAMPLES
|
||||||
PS > Save-GPOZaurrFiles -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportEvotec' -DeleteExisting -Verbose
|
|
||||||
```
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
|
Save-GPOZaurrFiles -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExportEvotec' -DeleteExisting -Verbose
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### -DeleteExisting
|
## PARAMETERS
|
||||||
Delete existing files before saving new ones
|
|
||||||
|
### -Forest
|
||||||
```yaml
|
Target different Forest, by default current forest is used
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: __AllParameterSets
|
```yaml
|
||||||
Aliases:
|
Type: String
|
||||||
Possible values:
|
Parameter Sets: (All)
|
||||||
|
Aliases: ForestName
|
||||||
Required: False
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: False
|
Position: 1
|
||||||
Accept pipeline input: False
|
Default value: None
|
||||||
Accept wildcard characters: True
|
Accept pipeline input: False
|
||||||
```
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
### -ExcludeDomains
|
||||||
|
Exclude domain from search, by default whole forest is scanned
|
||||||
```yaml
|
|
||||||
Type: String[]
|
```yaml
|
||||||
Parameter Sets: __AllParameterSets
|
Type: String[]
|
||||||
Aliases:
|
Parameter Sets: (All)
|
||||||
Possible values:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 1
|
Position: 2
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: True
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -ExtendedForestInformation
|
### -IncludeDomains
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
Include only specific domains, by default whole forest is scanned
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: IDictionary
|
Type: String[]
|
||||||
Parameter Sets: __AllParameterSets
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: Domain, Domains
|
||||||
Possible values:
|
|
||||||
|
Required: False
|
||||||
Required: False
|
Position: 3
|
||||||
Position: 3
|
Default value: None
|
||||||
Default value: None
|
Accept pipeline input: False
|
||||||
Accept pipeline input: False
|
Accept wildcard characters: False
|
||||||
Accept wildcard characters: True
|
```
|
||||||
```
|
|
||||||
|
### -ExtendedForestInformation
|
||||||
### -Forest
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
Target different Forest, by default current forest is used
|
|
||||||
|
```yaml
|
||||||
```yaml
|
Type: IDictionary
|
||||||
Type: String
|
Parameter Sets: (All)
|
||||||
Parameter Sets: __AllParameterSets
|
Aliases:
|
||||||
Aliases: ForestName
|
|
||||||
Possible values:
|
Required: False
|
||||||
|
Position: 4
|
||||||
Required: False
|
Default value: None
|
||||||
Position: 0
|
Accept pipeline input: False
|
||||||
Default value: None
|
Accept wildcard characters: False
|
||||||
Accept pipeline input: False
|
```
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
### -GPOPath
|
||||||
|
Path where to save XML files from GPOReport
|
||||||
### -GPOPath
|
|
||||||
Path where to save XML files from GPOReport
|
```yaml
|
||||||
|
Type: String[]
|
||||||
```yaml
|
Parameter Sets: (All)
|
||||||
Type: String[]
|
Aliases:
|
||||||
Parameter Sets: __AllParameterSets
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: 5
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: 4
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -DeleteExisting
|
||||||
```
|
Delete existing files before saving new ones
|
||||||
|
|
||||||
### -IncludeDomains
|
```yaml
|
||||||
Include only specific domains, by default whole forest is scanned
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases:
|
||||||
Type: String[]
|
|
||||||
Parameter Sets: __AllParameterSets
|
Required: False
|
||||||
Aliases: Domain, Domains
|
Position: Named
|
||||||
Possible values:
|
Default value: False
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: 2
|
```
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
### CommonParameters
|
||||||
Accept wildcard characters: True
|
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
|
||||||
### 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).
|
## OUTPUTS
|
||||||
|
|
||||||
## INPUTS
|
## NOTES
|
||||||
|
General notes
|
||||||
- `None`
|
|
||||||
|
## RELATED LINKS
|
||||||
## OUTPUTS
|
|
||||||
|
|
||||||
- `None`
|
|
||||||
|
|
||||||
## RELATED LINKS
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|||||||
+81
-80
@@ -1,80 +1,81 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Set-GPOOwner
|
|
||||||
## SYNOPSIS
|
# Set-GPOOwner
|
||||||
Used within Invoke-GPOZaurrPermission only. Set new group policy owner.
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Used within Invoke-GPOZaurrPermission only.
|
||||||
### __AllParameterSets
|
Set new group policy owner.
|
||||||
```powershell
|
|
||||||
Set-GPOOwner [[-Type] <string>] [[-Principal] <string>] [<CommonParameters>]
|
## SYNTAX
|
||||||
```
|
|
||||||
|
```
|
||||||
## DESCRIPTION
|
Set-GPOOwner [[-Type] <String>] [[-Principal] <String>] [<CommonParameters>]
|
||||||
Used within Invoke-GPOZaurrPermission only. Set new group policy owner.
|
```
|
||||||
|
|
||||||
## EXAMPLES
|
## DESCRIPTION
|
||||||
|
Used within Invoke-GPOZaurrPermission only.
|
||||||
### EXAMPLE 1
|
Set new group policy owner.
|
||||||
```powershell
|
|
||||||
PS > Invoke-GPOZaurrPermission -Verbose -SearchBase 'OU=Computers,OU=Production,DC=ad,DC=evotec,DC=xyz' {
|
## EXAMPLES
|
||||||
Set-GPOOwner -Type Administrative
|
|
||||||
Remove-GPOPermission -Type NotAdministrative, NotWellKnownAdministrative -IncludePermissionType GpoEdit, GpoEditDeleteModifySecurity
|
### EXAMPLE 1
|
||||||
Add-GPOPermission -Type Administrative -IncludePermissionType GpoEditDeleteModifySecurity
|
```
|
||||||
Add-GPOPermission -Type WellKnownAdministrative -IncludePermissionType GpoEditDeleteModifySecurity
|
Invoke-GPOZaurrPermission -Verbose -SearchBase 'OU=Computers,OU=Production,DC=ad,DC=evotec,DC=xyz' {
|
||||||
} -WhatIf
|
```
|
||||||
```
|
|
||||||
|
Set-GPOOwner -Type Administrative
|
||||||
|
Remove-GPOPermission -Type NotAdministrative, NotWellKnownAdministrative -IncludePermissionType GpoEdit, GpoEditDeleteModifySecurity
|
||||||
## PARAMETERS
|
Add-GPOPermission -Type Administrative -IncludePermissionType GpoEditDeleteModifySecurity
|
||||||
|
Add-GPOPermission -Type WellKnownAdministrative -IncludePermissionType GpoEditDeleteModifySecurity
|
||||||
### -Principal
|
} -WhatIf
|
||||||
Choose Owner Name to set for Group Policy
|
|
||||||
|
## PARAMETERS
|
||||||
```yaml
|
|
||||||
Type: String
|
### -Type
|
||||||
Parameter Sets: __AllParameterSets
|
Choose Owner Type.
|
||||||
Aliases:
|
When chosing Administrative Type, owner will be set to Domain Admins for current GPO domain.
|
||||||
Possible values:
|
When Default is set Owner will be set to Principal given in another parameter.
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: 1
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: 1
|
||||||
### -Type
|
Default value: Default
|
||||||
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.
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String
|
|
||||||
Parameter Sets: __AllParameterSets
|
### -Principal
|
||||||
Aliases:
|
Choose Owner Name to set for Group Policy
|
||||||
Possible values: Administrative, Default
|
|
||||||
|
```yaml
|
||||||
Required: False
|
Type: String
|
||||||
Position: 0
|
Parameter Sets: (All)
|
||||||
Default value: Default
|
Aliases:
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
Required: False
|
||||||
```
|
Position: 2
|
||||||
|
Default value: None
|
||||||
### CommonParameters
|
Accept pipeline input: False
|
||||||
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).
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
## INPUTS
|
|
||||||
|
### CommonParameters
|
||||||
- `None`
|
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).
|
||||||
|
|
||||||
## OUTPUTS
|
## INPUTS
|
||||||
|
|
||||||
- `None`
|
## OUTPUTS
|
||||||
|
|
||||||
## RELATED LINKS
|
## NOTES
|
||||||
|
General notes
|
||||||
- None
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+289
-260
@@ -1,260 +1,289 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Set-GPOZaurrOwner
|
|
||||||
## SYNOPSIS
|
# Set-GPOZaurrOwner
|
||||||
Sets GPO Owner to Domain Admins or other choosen account
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Sets GPO Owner to Domain Admins or other choosen account
|
||||||
### Type (Default)
|
|
||||||
```powershell
|
## SYNTAX
|
||||||
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>]
|
|
||||||
```
|
### Type (Default)
|
||||||
|
```
|
||||||
### Named
|
Set-GPOZaurrOwner -Type <String> [-Forest <String>] [-ExcludeDomains <String[]>] [-IncludeDomains <String[]>]
|
||||||
```powershell
|
[-ExtendedForestInformation <IDictionary>] [-Principal <String>] [-SkipSysvol] [-LimitProcessing <Int32>]
|
||||||
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>]
|
[-ApprovedOwner <String[]>] [-Action <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
### Named
|
||||||
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.
|
```
|
||||||
|
Set-GPOZaurrOwner [-GPOName <String>] [-GPOGuid <String>] [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
## EXAMPLES
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Principal <String>] [-SkipSysvol]
|
||||||
|
[-LimitProcessing <Int32>] [-ApprovedOwner <String[]>] [-Action <String>] [-Force] [-WhatIf] [-Confirm]
|
||||||
### EXAMPLE 1
|
[<CommonParameters>]
|
||||||
```powershell
|
```
|
||||||
PS > Set-GPOZaurrOwner -Type All -Verbose -WhatIf -LimitProcessing 2
|
|
||||||
```
|
## DESCRIPTION
|
||||||
|
Sets GPO Owner to Domain Admins or other choosen account.
|
||||||
|
GPO Owner is set in AD and SYSVOL unless specified otherwise.
|
||||||
## PARAMETERS
|
If account doesn't require change, no change is done.
|
||||||
|
|
||||||
### -Action
|
## EXAMPLES
|
||||||
{{ Fill Action Description }}
|
|
||||||
|
### EXAMPLE 1
|
||||||
```yaml
|
```
|
||||||
Type: String
|
Set-GPOZaurrOwner -Type All -Verbose -WhatIf -LimitProcessing 2
|
||||||
Parameter Sets: Type, Named
|
```
|
||||||
Aliases:
|
|
||||||
Possible values: OnlyAD, OnlyFileSystem
|
## PARAMETERS
|
||||||
|
|
||||||
Required: False
|
### -Type
|
||||||
Position: named
|
Unknown - finds unknown Owners and sets them to Administrative (Domain Admins) or chosen principal
|
||||||
Default value: None
|
NotMatching - find administrative groups only and if sysvol and gpo doesn't match - replace with chosen principal or Domain Admins if not specified
|
||||||
Accept pipeline input: False
|
Inconsistent - same as not NotMatching
|
||||||
Accept wildcard characters: True
|
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
|
||||||
### -ApprovedOwner
|
|
||||||
{{ Fill ApprovedOwner Description }}
|
```yaml
|
||||||
|
Type: String
|
||||||
```yaml
|
Parameter Sets: Type
|
||||||
Type: String[]
|
Aliases:
|
||||||
Parameter Sets: Type, Named
|
|
||||||
Aliases: Exclusion, Exclusions
|
Required: True
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -GPOName
|
||||||
```
|
Name of GPO.
|
||||||
|
By default all GPOs are targetted
|
||||||
### -ExcludeDomains
|
|
||||||
Exclude domain from search, by default whole forest is scanned
|
```yaml
|
||||||
|
Type: String
|
||||||
```yaml
|
Parameter Sets: Named
|
||||||
Type: String[]
|
Aliases:
|
||||||
Parameter Sets: Type, Named
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -GPOGuid
|
||||||
```
|
GUID of GPO.
|
||||||
|
By default all GPOs are targetted
|
||||||
### -ExtendedForestInformation
|
|
||||||
Ability to provide Forest Information from another command to speed up processing
|
```yaml
|
||||||
|
Type: String
|
||||||
```yaml
|
Parameter Sets: Named
|
||||||
Type: IDictionary
|
Aliases: GUID, GPOID
|
||||||
Parameter Sets: Type, Named
|
|
||||||
Aliases:
|
Required: False
|
||||||
Possible values:
|
Position: Named
|
||||||
|
Default value: None
|
||||||
Required: False
|
Accept pipeline input: False
|
||||||
Position: named
|
Accept wildcard characters: False
|
||||||
Default value: None
|
```
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
### -Forest
|
||||||
```
|
Target different Forest, by default current forest is used
|
||||||
|
|
||||||
### -Force
|
```yaml
|
||||||
Pushes new owner regardless if it's already set or not
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
```yaml
|
Aliases: ForestName
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: Type, Named
|
Required: False
|
||||||
Aliases:
|
Position: Named
|
||||||
Possible values:
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
Required: False
|
Accept wildcard characters: False
|
||||||
Position: named
|
```
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
### -ExcludeDomains
|
||||||
Accept wildcard characters: True
|
Exclude domain from search, by default whole forest is scanned
|
||||||
```
|
|
||||||
|
```yaml
|
||||||
### -Forest
|
Type: String[]
|
||||||
Target different Forest, by default current forest is used
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
```yaml
|
|
||||||
Type: String
|
Required: False
|
||||||
Parameter Sets: Type, Named
|
Position: Named
|
||||||
Aliases: ForestName
|
Default value: None
|
||||||
Possible values:
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
Required: False
|
```
|
||||||
Position: named
|
|
||||||
Default value: None
|
### -IncludeDomains
|
||||||
Accept pipeline input: False
|
Include only specific domains, by default whole forest is scanned
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
```yaml
|
||||||
|
Type: String[]
|
||||||
### -GPOGuid
|
Parameter Sets: (All)
|
||||||
GUID of GPO. By default all GPOs are targetted
|
Aliases: Domain, Domains
|
||||||
|
|
||||||
```yaml
|
Required: False
|
||||||
Type: String
|
Position: Named
|
||||||
Parameter Sets: Named
|
Default value: None
|
||||||
Aliases: GUID, GPOID
|
Accept pipeline input: False
|
||||||
Possible values:
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
Required: False
|
|
||||||
Position: named
|
### -ExtendedForestInformation
|
||||||
Default value: None
|
Ability to provide Forest Information from another command to speed up processing
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: True
|
```yaml
|
||||||
```
|
Type: IDictionary
|
||||||
|
Parameter Sets: (All)
|
||||||
### -GPOName
|
Aliases:
|
||||||
Name of GPO. By default all GPOs are targetted
|
|
||||||
|
Required: False
|
||||||
```yaml
|
Position: Named
|
||||||
Type: String
|
Default value: None
|
||||||
Parameter Sets: Named
|
Accept pipeline input: False
|
||||||
Aliases:
|
Accept wildcard characters: False
|
||||||
Possible values:
|
```
|
||||||
|
|
||||||
Required: False
|
### -Principal
|
||||||
Position: named
|
Parameter description
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: String
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -IncludeDomains
|
|
||||||
Include only specific domains, by default whole forest is scanned
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: None
|
||||||
Type: String[]
|
Accept pipeline input: False
|
||||||
Parameter Sets: Type, Named
|
Accept wildcard characters: False
|
||||||
Aliases: Domain, Domains
|
```
|
||||||
Possible values:
|
|
||||||
|
### -SkipSysvol
|
||||||
Required: False
|
Set GPO Owner only in Active Directory.
|
||||||
Position: named
|
By default GPO Owner is being set in both places
|
||||||
Default value: None
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: SwitchParameter
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -LimitProcessing
|
|
||||||
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: False
|
||||||
Type: Int32
|
Accept pipeline input: False
|
||||||
Parameter Sets: Type, Named
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### -LimitProcessing
|
||||||
Required: False
|
Allows to specify maximum number of items that will be fixed in a single run.
|
||||||
Position: named
|
It doesn't affect amount of GPOs processed
|
||||||
Default value: 2147483647
|
|
||||||
Accept pipeline input: False
|
```yaml
|
||||||
Accept wildcard characters: True
|
Type: Int32
|
||||||
```
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
### -Principal
|
|
||||||
Parameter description
|
Required: False
|
||||||
|
Position: Named
|
||||||
```yaml
|
Default value: 2147483647
|
||||||
Type: String
|
Accept pipeline input: False
|
||||||
Parameter Sets: Type, Named
|
Accept wildcard characters: False
|
||||||
Aliases:
|
```
|
||||||
Possible values:
|
|
||||||
|
### -ApprovedOwner
|
||||||
Required: False
|
{{ Fill ApprovedOwner Description }}
|
||||||
Position: named
|
|
||||||
Default value: None
|
```yaml
|
||||||
Accept pipeline input: False
|
Type: String[]
|
||||||
Accept wildcard characters: True
|
Parameter Sets: (All)
|
||||||
```
|
Aliases: Exclusion, Exclusions
|
||||||
|
|
||||||
### -SkipSysvol
|
Required: False
|
||||||
Set GPO Owner only in Active Directory. By default GPO Owner is being set in both places
|
Position: Named
|
||||||
|
Default value: None
|
||||||
```yaml
|
Accept pipeline input: False
|
||||||
Type: SwitchParameter
|
Accept wildcard characters: False
|
||||||
Parameter Sets: Type, Named
|
```
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -Action
|
||||||
|
{{ Fill Action Description }}
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: False
|
Type: String
|
||||||
Accept pipeline input: False
|
Parameter Sets: (All)
|
||||||
Accept wildcard characters: True
|
Aliases:
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -Type
|
Position: Named
|
||||||
Unknown - finds unknown Owners and sets them to Administrative (Domain Admins) or chosen principal
|
Default value: None
|
||||||
NotMatching - find administrative groups only and if sysvol and gpo doesn't match - replace with chosen principal or Domain Admins if not specified
|
Accept pipeline input: False
|
||||||
Inconsistent - same as not NotMatching
|
Accept wildcard characters: False
|
||||||
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
|
|
||||||
|
### -Force
|
||||||
```yaml
|
Pushes new owner regardless if it's already set or not
|
||||||
Type: String
|
|
||||||
Parameter Sets: Type
|
```yaml
|
||||||
Aliases:
|
Type: SwitchParameter
|
||||||
Possible values: Unknown, NotAdministrative, NotMatching, Inconsistent, All
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
Required: True
|
|
||||||
Position: named
|
Required: False
|
||||||
Default value: None
|
Position: Named
|
||||||
Accept pipeline input: False
|
Default value: False
|
||||||
Accept wildcard characters: True
|
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).
|
### -WhatIf
|
||||||
|
Shows what would happen if the cmdlet runs.
|
||||||
## INPUTS
|
The cmdlet is not run.
|
||||||
|
|
||||||
- `None`
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
## OUTPUTS
|
Parameter Sets: (All)
|
||||||
|
Aliases: wi
|
||||||
- `None`
|
|
||||||
|
Required: False
|
||||||
## RELATED LINKS
|
Position: Named
|
||||||
|
Default value: None
|
||||||
- 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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
## NOTES
|
||||||
|
General notes
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+193
-42
@@ -1,42 +1,193 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Set-GPOZaurrStatus
|
|
||||||
## SYNOPSIS
|
# Set-GPOZaurrStatus
|
||||||
{{ Fill in the Synopsis }}
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Enables or disables user/computer section of Group Policy.
|
||||||
```powershell
|
|
||||||
Set-GPOZaurrStatus
|
## SYNTAX
|
||||||
```
|
|
||||||
|
### GPOName (Default)
|
||||||
## DESCRIPTION
|
```
|
||||||
{{ Fill in the Description }}
|
Set-GPOZaurrStatus -GPOName <String> -Status <GpoStatus> [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm]
|
||||||
## EXAMPLES
|
[<CommonParameters>]
|
||||||
|
```
|
||||||
### EXAMPLE 1
|
|
||||||
```powershell
|
### GPOGUID
|
||||||
Set-GPOZaurrStatus
|
```
|
||||||
```
|
Set-GPOZaurrStatus -GPOGuid <String> -Status <GpoStatus> [-Forest <String>] [-ExcludeDomains <String[]>]
|
||||||
|
[-IncludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-WhatIf] [-Confirm]
|
||||||
|
[<CommonParameters>]
|
||||||
## PARAMETERS
|
```
|
||||||
|
|
||||||
### CommonParameters
|
## DESCRIPTION
|
||||||
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).
|
Enables or disables user/computer section of Group Policy.
|
||||||
|
|
||||||
## INPUTS
|
## EXAMPLES
|
||||||
|
|
||||||
- `None`
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
## OUTPUTS
|
Set-GPOZaurrStatus -Name 'TEST | Empty GPO - AD.EVOTEC.PL CrossDomain GPO' -Status AllSettingsEnabled -Verbose
|
||||||
|
```
|
||||||
- `None`
|
|
||||||
|
### EXAMPLE 2
|
||||||
## RELATED LINKS
|
```
|
||||||
|
Set-GPOZaurrStatus -Name 'TEST | Empty GPO - AD.EVOTEC.PL CrossDomain GPO' -DomainName ad.evotec.pl -Status AllSettingsEnabled -Verbose
|
||||||
- None
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
## NOTES
|
||||||
|
General notes
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
+110
-108
@@ -1,108 +1,110 @@
|
|||||||
---
|
---
|
||||||
external help file: GPOZaurr-help.xml
|
external help file: GPOZaurr-help.xml
|
||||||
Module Name: GPOZaurr
|
Module Name: GPOZaurr
|
||||||
online version: https://github.com/EvotecIT/GPOZaurr
|
online version:
|
||||||
schema: 2.0.0
|
schema: 2.0.0
|
||||||
---
|
---
|
||||||
# Skip-GroupPolicy
|
|
||||||
## SYNOPSIS
|
# Skip-GroupPolicy
|
||||||
Used within ScriptBlocks only. Allows to exclude Group Policy from being affected by fixes
|
|
||||||
|
## SYNOPSIS
|
||||||
## SYNTAX
|
Used within ScriptBlocks only.
|
||||||
### Name (Default)
|
Allows to exclude Group Policy from being affected by fixes
|
||||||
```powershell
|
|
||||||
Skip-GroupPolicy [-Name <string>] [-DomaiName <string>] [<CommonParameters>]
|
## SYNTAX
|
||||||
```
|
|
||||||
|
### Name (Default)
|
||||||
### Guid
|
```
|
||||||
```powershell
|
Skip-GroupPolicy [-Name <String>] [-DomaiName <String>] [<CommonParameters>]
|
||||||
Skip-GroupPolicy [-GUID <string>] [-DomaiName <string>] [<CommonParameters>]
|
```
|
||||||
```
|
|
||||||
|
### Guid
|
||||||
## 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.
|
Skip-GroupPolicy [-GUID <String>] [-DomaiName <String>] [<CommonParameters>]
|
||||||
|
```
|
||||||
## EXAMPLES
|
|
||||||
|
## DESCRIPTION
|
||||||
### EXAMPLE 1
|
Used within ScriptBlocks only.
|
||||||
```powershell
|
Allows to exclude Group Policy from being affected by fixes.
|
||||||
PS > Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
|
Only some commands support it.
|
||||||
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
|
The goal is to support all cmdlets.
|
||||||
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
|
|
||||||
}
|
## EXAMPLES
|
||||||
```
|
|
||||||
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
### EXAMPLE 2
|
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
|
||||||
```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 1'
|
||||||
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2' -DomaiName 'ad.evotec.pl'
|
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
|
||||||
}
|
}
|
||||||
```
|
|
||||||
|
### EXAMPLE 2
|
||||||
|
```
|
||||||
## PARAMETERS
|
Remove-GPOZaurr -Type Empty, Unlinked -BackupPath "$Env:UserProfile\Desktop\GPO" -BackupDated -LimitProcessing 2 -Verbose -WhatIf {
|
||||||
|
```
|
||||||
### -DomaiName
|
|
||||||
Define DomainName where Group Policy is located. Otherwise each domain will be checked and skipped if found with same name.
|
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
|
||||||
|
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2' -DomaiName 'ad.evotec.pl'
|
||||||
```yaml
|
}
|
||||||
Type: String
|
|
||||||
Parameter Sets: Name, Guid
|
## PARAMETERS
|
||||||
Aliases:
|
|
||||||
Possible values:
|
### -Name
|
||||||
|
Define Group Policy Name to skip
|
||||||
Required: False
|
|
||||||
Position: named
|
```yaml
|
||||||
Default value: None
|
Type: String
|
||||||
Accept pipeline input: False
|
Parameter Sets: Name
|
||||||
Accept wildcard characters: True
|
Aliases: GpoName, DisplayName
|
||||||
```
|
|
||||||
|
Required: False
|
||||||
### -GUID
|
Position: Named
|
||||||
{{ Fill GUID Description }}
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
```yaml
|
Accept wildcard characters: False
|
||||||
Type: String
|
```
|
||||||
Parameter Sets: Guid
|
|
||||||
Aliases: ID
|
### -GUID
|
||||||
Possible values:
|
{{ Fill GUID Description }}
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: Guid
|
||||||
Accept pipeline input: False
|
Aliases: ID
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### -Name
|
Default value: None
|
||||||
Define Group Policy Name to skip
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
```yaml
|
```
|
||||||
Type: String
|
|
||||||
Parameter Sets: Name
|
### -DomaiName
|
||||||
Aliases: GpoName, DisplayName
|
Define DomainName where Group Policy is located.
|
||||||
Possible values:
|
Otherwise each domain will be checked and skipped if found with same name.
|
||||||
|
|
||||||
Required: False
|
```yaml
|
||||||
Position: named
|
Type: String
|
||||||
Default value: None
|
Parameter Sets: (All)
|
||||||
Accept pipeline input: False
|
Aliases:
|
||||||
Accept wildcard characters: True
|
|
||||||
```
|
Required: False
|
||||||
|
Position: Named
|
||||||
### CommonParameters
|
Default value: None
|
||||||
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).
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
## INPUTS
|
```
|
||||||
|
|
||||||
- `None`
|
### 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).
|
||||||
## OUTPUTS
|
|
||||||
|
## INPUTS
|
||||||
- `None`
|
|
||||||
|
## OUTPUTS
|
||||||
## RELATED LINKS
|
|
||||||
|
## NOTES
|
||||||
- None
|
General notes
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
||||||
|
|
||||||
|
|
||||||
|
#$O = Invoke-GPOZaurrContent -GPOName "Test-RestrictedGroups" -Verbose
|
||||||
|
#$O
|
||||||
|
|
||||||
|
Invoke-GPOZaurr -Online -Type GPOBroken, GPOBrokenLink -Verbose -SplitReports
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
#$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPODefender'
|
#$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPODefender'
|
||||||
$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -Type WindowsHelloForBusiness
|
$Output = Invoke-GPOZaurrContent -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -Type WindowsHelloForBusiness
|
||||||
$Output | Format-Table
|
$Output | Format-Table
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#$Objects = Get-GPOZaurrInheritance
|
#$Objects = Get-GPOZaurrInheritance
|
||||||
#$Objects | Format-Table
|
#$Objects | Format-Table
|
||||||
|
|
||||||
# Get same output DN, CanonicalName, BlockInheritance (True/False) + Users/Computers + UsersCount/ComputerCount for those with Blocked Inheritance
|
# Get same output DN, CanonicalName, BlockInheritance (True/False) + Users/Computers + UsersCount/ComputerCount for those with Blocked Inhertiance
|
||||||
# This is so you can have a list what machines are affected
|
# This is so you can have a list what machines are affected
|
||||||
$ExcludedOU = @(
|
$ExcludedOU = @(
|
||||||
# Works on OU/
|
# Works on OU/
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
$OUs = Get-GPOZaurrOrganizationalUnit
|
$OUs = Get-GPOZaurrOrganizationalUnit
|
||||||
$Ous | Format-Table
|
$Ous | Format-Table
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink -Exclusions @(
|
Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink -Exclusions @(
|
||||||
'OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl'
|
'OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl'
|
||||||
) | Format-Table
|
) | Format-Table
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
Import-Module .\GPOZaurr.psd1 -Force
|
||||||
|
|
||||||
|
$DirectoryPath = "C:\Support\GitHub\GpoZaurr\Data\ADMXTemplates"
|
||||||
|
$Paths = @(
|
||||||
|
[PSCustomObject] @{ Name = "Citrix"; Path = "C:\Program Files (x86)\Citrix\ICA Client\Configuration"; ExportFile = "Citrix" }
|
||||||
|
[PSCustomObject] @{ Name = "Remote Desktop Manager"; Path = "C:\Program Files\Devolutions\Remote Desktop Manager\Policies" ; ExportFile = "Remote Desktop Manager" }
|
||||||
|
[PSCustomObject] @{ Name = "Microsoft Windows 2022 Security Baseline"; Path = "C:\Users\przemyslaw.klys\Downloads\GPO\Windows Server 2022 Security Baseline\Windows Server-2022-Security-Baseline-FINAL\Templates" ; ExportFile = "Windows Server 2022 Security Baseline" }
|
||||||
|
[PSCustomObject] @{ Name = "Microsoft OneDrive"; Path = "C:\Program Files\Microsoft OneDrive\24.216.1027.0003\adm" ; ExportFile = "Microsoft OneDrive" }
|
||||||
|
[PSCustomObject] @{ Name = "Microsoft PowerShell 7 Core"; Path = "C:\Program Files\PowerShell\7" ; ExportFile = "Microsoft PowerShell 7" }
|
||||||
|
[PSCustomObject] @{ Name = "Microsoft Windows 11 (24H2) September 2024"; Path = "C:\Program Files (x86)\Microsoft Group Policy\Windows 11 Sep 2024 Update (24H2)" ; ExportFile = "Microsoft Windows11 24H2 September 2024" }
|
||||||
|
)
|
||||||
|
foreach ($Path in $Paths) {
|
||||||
|
$InitializeGPOZaurrTemplateSplat = @{
|
||||||
|
Path = $Path.Path
|
||||||
|
Name = $Path.Name
|
||||||
|
ExportPath = "$DirectoryPath\$($Path.ExportFile).json"
|
||||||
|
}
|
||||||
|
$List = Initialize-GPOZaurrTemplate @InitializeGPOZaurrTemplateSplat -Verbose
|
||||||
|
}
|
||||||
+37
-39
@@ -1,40 +1,38 @@
|
|||||||
@{
|
@{
|
||||||
AliasesToExport = @('Get-GPOZaurrSysvol', 'Get-GPOZaurrFilesPolicyDefinitions', 'Show-GPOZaurr', 'Show-GPO', 'Find-GPO', 'Remove-GPOZaurrOrphaned')
|
AliasesToExport = @('Get-GPOZaurrSysvol', 'Get-GPOZaurrFilesPolicyDefinitions', 'Show-GPOZaurr', 'Show-GPO', 'Find-GPO', 'Remove-GPOZaurrOrphaned')
|
||||||
Author = 'Przemyslaw Klys'
|
Author = 'Przemyslaw Klys'
|
||||||
CmdletsToExport = @()
|
CmdletsToExport = @()
|
||||||
CompanyName = 'Evotec'
|
CompanyName = 'Evotec'
|
||||||
CompatiblePSEditions = @('Desktop')
|
CompatiblePSEditions = @('Desktop')
|
||||||
Copyright = '(c) 2011 - 2026 Przemyslaw Klys @ Evotec. All rights reserved.'
|
Copyright = '(c) 2011 - 2024 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.'
|
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')
|
FunctionsToExport = @('Add-GPOPermission', 'Add-GPOZaurrPermission', 'Backup-GPOZaurr', 'Clear-GPOZaurrSysvolDFSR', 'ConvertFrom-CSExtension', 'Export-GPOZaurrContent', 'Find-CSExtension', 'Get-GPOZaurr', 'Get-GPOZaurrAD', 'Get-GPOZaurrTemplates', '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', 'Initialize-GPOZaurrTemplate', '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'
|
GUID = 'f7d4c9e4-0298-4f51-ad77-e8e3febebbde'
|
||||||
ModuleVersion = '1.1.10'
|
ModuleVersion = '1.1.9'
|
||||||
PowerShellVersion = '5.1'
|
PowerShellVersion = '5.1'
|
||||||
PrivateData = @{
|
PrivateData = @{
|
||||||
PSData = @{
|
PSData = @{
|
||||||
ExternalModuleDependencies = @('CimCmdlets')
|
ExternalModuleDependencies = @('CimCmdlets', 'Microsoft.PowerShell.Management', 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Security')
|
||||||
ProjectUri = 'https://github.com/EvotecIT/GPOZaurr'
|
ProjectUri = 'https://github.com/EvotecIT/GPOZaurr'
|
||||||
RequireLicenseAcceptance = $false
|
Tags = @('Windows', 'ActiveDirectory', 'GPO', 'GroupPolicy')
|
||||||
Tags = @('Windows', 'ActiveDirectory', 'GPO', 'GroupPolicy')
|
}
|
||||||
}
|
}
|
||||||
}
|
RequiredModules = @(@{
|
||||||
RequiredModules = @(@{
|
Guid = '0b0ba5c5-ec85-4c2b-a718-874e55a8bc3f'
|
||||||
Guid = '0b0ba5c5-ec85-4c2b-a718-874e55a8bc3f'
|
ModuleName = 'PSWriteColor'
|
||||||
ModuleName = 'PSWriteColor'
|
ModuleVersion = '1.0.1'
|
||||||
ModuleVersion = '1.0.3'
|
}, @{
|
||||||
}, @{
|
Guid = 'ee272aa8-baaa-4edf-9f45-b6d6f7d844fe'
|
||||||
Guid = 'ee272aa8-baaa-4edf-9f45-b6d6f7d844fe'
|
ModuleName = 'PSSharedGoods'
|
||||||
ModuleName = 'PSSharedGoods'
|
ModuleVersion = '0.0.300'
|
||||||
ModuleVersion = '0.0.312'
|
}, @{
|
||||||
}, @{
|
Guid = '9fc9fd61-7f11-4f4b-a527-084086f1905f'
|
||||||
Guid = '9fc9fd61-7f11-4f4b-a527-084086f1905f'
|
ModuleName = 'ADEssentials'
|
||||||
ModuleName = 'ADEssentials'
|
ModuleVersion = '0.0.226'
|
||||||
ModuleVersion = '1.0.4'
|
}, @{
|
||||||
}, @{
|
Guid = 'a7bdf640-f5cb-4acf-9de0-365b322d245c'
|
||||||
Guid = 'a7bdf640-f5cb-4acf-9de0-365b322d245c'
|
ModuleName = 'PSWriteHTML'
|
||||||
ModuleName = 'PSWriteHTML'
|
ModuleVersion = '1.27.0'
|
||||||
ModuleVersion = '1.41.0'
|
}, 'CimCmdlets', 'Microsoft.PowerShell.Management', 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Security')
|
||||||
})
|
RootModule = 'GPOZaurr.psm1'
|
||||||
RootModule = 'GPOZaurr.psm1'
|
|
||||||
ScriptsToProcess = @()
|
|
||||||
}
|
}
|
||||||
+53
-53
@@ -1,54 +1,54 @@
|
|||||||
#Get public and private function definition files.
|
#Get public and private function definition files.
|
||||||
$Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue -Recurse )
|
$Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue -Recurse )
|
||||||
$Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue -Recurse )
|
$Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue -Recurse )
|
||||||
|
|
||||||
$AssemblyFolders = Get-ChildItem -Path $PSScriptRoot\Lib -Directory -ErrorAction SilentlyContinue
|
$AssemblyFolders = Get-ChildItem -Path $PSScriptRoot\Lib -Directory -ErrorAction SilentlyContinue
|
||||||
if ($AssemblyFolders.BaseName -contains 'Standard') {
|
if ($AssemblyFolders.BaseName -contains 'Standard') {
|
||||||
$Assembly = @( Get-ChildItem -Path $PSScriptRoot\Lib\Standard\*.dll -ErrorAction SilentlyContinue )
|
$Assembly = @( Get-ChildItem -Path $PSScriptRoot\Lib\Standard\*.dll -ErrorAction SilentlyContinue )
|
||||||
} else {
|
} else {
|
||||||
if ($PSEdition -eq 'Core') {
|
if ($PSEdition -eq 'Core') {
|
||||||
$Assembly = @( Get-ChildItem -Path $PSScriptRoot\Lib\Core\*.dll -ErrorAction SilentlyContinue )
|
$Assembly = @( Get-ChildItem -Path $PSScriptRoot\Lib\Core\*.dll -ErrorAction SilentlyContinue )
|
||||||
} else {
|
} else {
|
||||||
$Assembly = @( Get-ChildItem -Path $PSScriptRoot\Lib\Default\*.dll -ErrorAction SilentlyContinue )
|
$Assembly = @( Get-ChildItem -Path $PSScriptRoot\Lib\Default\*.dll -ErrorAction SilentlyContinue )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$FoundErrors = @(
|
$FoundErrors = @(
|
||||||
foreach ($Import in @($Assembly)) {
|
Foreach ($Import in @($Assembly)) {
|
||||||
try {
|
try {
|
||||||
Add-Type -Path $Import.Fullname -ErrorAction Stop
|
Add-Type -Path $Import.Fullname -ErrorAction Stop
|
||||||
} catch [System.Reflection.ReflectionTypeLoadException] {
|
} catch [System.Reflection.ReflectionTypeLoadException] {
|
||||||
Write-Warning "Processing $($Import.Name) Exception: $($_.Exception.Message)"
|
Write-Warning "Processing $($Import.Name) Exception: $($_.Exception.Message)"
|
||||||
$LoaderExceptions = $($_.Exception.LoaderExceptions) | Sort-Object -Unique
|
$LoaderExceptions = $($_.Exception.LoaderExceptions) | Sort-Object -Unique
|
||||||
foreach ($E in $LoaderExceptions) {
|
foreach ($E in $LoaderExceptions) {
|
||||||
Write-Warning "Processing $($Import.Name) LoaderExceptions: $($E.Message)"
|
Write-Warning "Processing $($Import.Name) LoaderExceptions: $($E.Message)"
|
||||||
}
|
}
|
||||||
$true
|
$true
|
||||||
#Write-Error -Message "StackTrace: $($_.Exception.StackTrace)"
|
#Write-Error -Message "StackTrace: $($_.Exception.StackTrace)"
|
||||||
} catch {
|
} catch {
|
||||||
Write-Warning "Processing $($Import.Name) Exception: $($_.Exception.Message)"
|
Write-Warning "Processing $($Import.Name) Exception: $($_.Exception.Message)"
|
||||||
$LoaderExceptions = $($_.Exception.LoaderExceptions) | Sort-Object -Unique
|
$LoaderExceptions = $($_.Exception.LoaderExceptions) | Sort-Object -Unique
|
||||||
foreach ($E in $LoaderExceptions) {
|
foreach ($E in $LoaderExceptions) {
|
||||||
Write-Warning "Processing $($Import.Name) LoaderExceptions: $($E.Message)"
|
Write-Warning "Processing $($Import.Name) LoaderExceptions: $($E.Message)"
|
||||||
}
|
}
|
||||||
$true
|
$true
|
||||||
#Write-Error -Message "StackTrace: $($_.Exception.StackTrace)"
|
#Write-Error -Message "StackTrace: $($_.Exception.StackTrace)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#Dot source the files
|
#Dot source the files
|
||||||
foreach ($Import in @($Private + $Public)) {
|
Foreach ($Import in @($Private + $Public)) {
|
||||||
try {
|
Try {
|
||||||
. $Import.Fullname
|
. $Import.Fullname
|
||||||
} catch {
|
} Catch {
|
||||||
Write-Error -Message "Failed to import functions from $($import.Fullname): $_"
|
Write-Error -Message "Failed to import functions from $($import.Fullname): $_"
|
||||||
$true
|
$true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if ($FoundErrors.Count -gt 0) {
|
if ($FoundErrors.Count -gt 0) {
|
||||||
$ModuleName = (Get-ChildItem $PSScriptRoot\*.psd1).BaseName
|
$ModuleName = (Get-ChildItem $PSScriptRoot\*.psd1).BaseName
|
||||||
Write-Warning "Importing module $ModuleName failed. Fix errors before continuing."
|
Write-Warning "Importing module $ModuleName failed. Fix errors before continuing."
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
Export-ModuleMember -Function '*' -Alias '*'
|
Export-ModuleMember -Function '*' -Alias '*'
|
||||||
@@ -92,26 +92,7 @@
|
|||||||
|
|
||||||
#>
|
#>
|
||||||
if ($Value.Value.Element) {
|
if ($Value.Value.Element) {
|
||||||
[Array] $ElementValues = foreach ($Element in @($Value.Value.Element)) {
|
$Settings["$SubName"] = $Value.Value.Element.Data -join '; '
|
||||||
if (-not $Element) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
$ElementName = [string] $Element.Name
|
|
||||||
$ElementData = [string] $Element.Data
|
|
||||||
|
|
||||||
if (-not [string]::IsNullOrWhiteSpace($ElementName) -and ($ElementData -eq '' -or $ElementData -eq '0')) {
|
|
||||||
$ElementName
|
|
||||||
} elseif (-not [string]::IsNullOrWhiteSpace($ElementName) -and -not [string]::IsNullOrWhiteSpace($ElementData) -and $ElementName -ne $ElementData) {
|
|
||||||
"$ElementName ($ElementData)"
|
|
||||||
} elseif (-not [string]::IsNullOrWhiteSpace($ElementData)) {
|
|
||||||
$ElementData
|
|
||||||
} elseif (-not [string]::IsNullOrWhiteSpace($ElementName)) {
|
|
||||||
$ElementName
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($ElementValues.Count -gt 0) {
|
|
||||||
$Settings["$SubName"] = $ElementValues -join '; '
|
|
||||||
}
|
|
||||||
} elseif ($null -eq $Value.Value.Name) {
|
} elseif ($null -eq $Value.Value.Name) {
|
||||||
# Shouldn't happen but lets see
|
# Shouldn't happen but lets see
|
||||||
Write-Verbose "Tracking $Value"
|
Write-Verbose "Tracking $Value"
|
||||||
@@ -193,26 +174,7 @@
|
|||||||
|
|
||||||
#>
|
#>
|
||||||
if ($Value.Value.Element) {
|
if ($Value.Value.Element) {
|
||||||
[Array] $ElementValues = foreach ($Element in @($Value.Value.Element)) {
|
$CreateGPO["$SubName"] = $Value.Value.Element.Data -join '; '
|
||||||
if (-not $Element) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
$ElementName = [string] $Element.Name
|
|
||||||
$ElementData = [string] $Element.Data
|
|
||||||
|
|
||||||
if (-not [string]::IsNullOrWhiteSpace($ElementName) -and ($ElementData -eq '' -or $ElementData -eq '0')) {
|
|
||||||
$ElementName
|
|
||||||
} elseif (-not [string]::IsNullOrWhiteSpace($ElementName) -and -not [string]::IsNullOrWhiteSpace($ElementData) -and $ElementName -ne $ElementData) {
|
|
||||||
"$ElementName ($ElementData)"
|
|
||||||
} elseif (-not [string]::IsNullOrWhiteSpace($ElementData)) {
|
|
||||||
$ElementData
|
|
||||||
} elseif (-not [string]::IsNullOrWhiteSpace($ElementName)) {
|
|
||||||
$ElementName
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($ElementValues.Count -gt 0) {
|
|
||||||
$CreateGPO["$SubName"] = $ElementValues -join '; '
|
|
||||||
}
|
|
||||||
} elseif ($null -eq $Value.Value.Name) {
|
} elseif ($null -eq $Value.Value.Name) {
|
||||||
# Shouldn't happen but lets see
|
# Shouldn't happen but lets see
|
||||||
Write-Verbose "Tracking $Value"
|
Write-Verbose "Tracking $Value"
|
||||||
@@ -242,4 +204,4 @@
|
|||||||
#}
|
#}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
function ConvertTo-XMLRegistryDefenderOnReport {
|
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Converts Defender-related raw registry settings from the RegistrySettings report.
|
|
||||||
|
|
||||||
.DESCRIPTION
|
|
||||||
This function is used as a fallback for Defender settings that are not exposed as
|
|
||||||
policy categories but are still present in RegistrySettings output.
|
|
||||||
|
|
||||||
.PARAMETER GPO
|
|
||||||
RegistrySettings report object generated by ConvertTo-XMLRegistrySettings -SingleObject.
|
|
||||||
#>
|
|
||||||
[cmdletBinding()]
|
|
||||||
param(
|
|
||||||
[PSCustomObject] $GPO
|
|
||||||
)
|
|
||||||
|
|
||||||
[Array] $RegistrySettings = @()
|
|
||||||
if ($GPO.Settings) {
|
|
||||||
$RegistrySettings = $GPO.Settings
|
|
||||||
} elseif ($GPO.DataSet) {
|
|
||||||
# This path supports direct use from dictionary code where RegistrySettings is not requested explicitly.
|
|
||||||
[Array] $DataSet = $GPO.DataSet
|
|
||||||
if ($DataSet.Count -gt 0 -and (
|
|
||||||
$DataSet[0].PSObject.Properties.Name -contains 'Properties' -or
|
|
||||||
$DataSet[0].PSObject.Properties.Name -contains 'Registry' -or
|
|
||||||
$DataSet[0].PSObject.Properties.Name -contains 'Collection'
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
$RegistrySettings = Get-XMLNestedRegistry -GPO $GPO -DataSet $GPO.DataSet
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$UsedNames = [System.Collections.Generic.List[string]]::new()
|
|
||||||
$CreateGPO = [ordered] @{
|
|
||||||
DisplayName = $GPO.DisplayName
|
|
||||||
DomainName = $GPO.DomainName
|
|
||||||
GUID = $GPO.GUID
|
|
||||||
GpoType = $GPO.GpoType
|
|
||||||
}
|
|
||||||
$DefenderSettings = 0
|
|
||||||
|
|
||||||
foreach ($Registry in $RegistrySettings) {
|
|
||||||
if ($Registry.Key -like 'SOFTWARE\Microsoft\Windows Defender*') {
|
|
||||||
$DefenderSettings++
|
|
||||||
$SettingName = if ($Registry.Name) { $Registry.Name } else { $Registry.Key }
|
|
||||||
$PropertyName = Format-ToTitleCase -Text $SettingName -RemoveWhiteSpace -RemoveChar ',', '-', "'", '\(', '\)', ':'
|
|
||||||
|
|
||||||
if ($PropertyName -in $UsedNames) {
|
|
||||||
$UsedNames.Add($PropertyName)
|
|
||||||
$TimesUsed = ($UsedNames | Group-Object | Where-Object { $_.Name -eq $PropertyName }).Count
|
|
||||||
$PropertyName = -join ($PropertyName, "$TimesUsed")
|
|
||||||
} else {
|
|
||||||
$UsedNames.Add($PropertyName)
|
|
||||||
}
|
|
||||||
|
|
||||||
$SettingValue = $Registry.Value
|
|
||||||
if ($null -eq $SettingValue -or "$SettingValue" -eq '') {
|
|
||||||
$SettingValue = $Registry.Name
|
|
||||||
}
|
|
||||||
$CreateGPO[$PropertyName] = $SettingValue
|
|
||||||
|
|
||||||
# Some Defender data can be encoded in either value or value-name depending on setting type.
|
|
||||||
if ($Registry.Name -and "$SettingValue" -ne "$($Registry.Name)") {
|
|
||||||
$CreateGPO["$($PropertyName)ValueName"] = $Registry.Name
|
|
||||||
}
|
|
||||||
if ($Registry.Key) {
|
|
||||||
$CreateGPO["$($PropertyName)RegistryKey"] = $Registry.Key
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($DefenderSettings -gt 0) {
|
|
||||||
$CreateGPO['Linked'] = $GPO.Linked
|
|
||||||
$CreateGPO['LinksCount'] = $GPO.LinksCount
|
|
||||||
$CreateGPO['Links'] = $GPO.Links
|
|
||||||
[PSCustomObject] $CreateGPO
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
function Get-ADAdministrativeGroups {
|
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Retrieves administrative groups information from Active Directory.
|
|
||||||
|
|
||||||
.DESCRIPTION
|
|
||||||
Retrieves the Domain Admins and Enterprise Admins groups for the requested
|
|
||||||
forest and returns lookup dictionaries keyed by domain, NetBIOS name, and SID.
|
|
||||||
|
|
||||||
.PARAMETER Type
|
|
||||||
Specifies the type of administrative groups to retrieve. Valid values are
|
|
||||||
'DomainAdmins' and 'EnterpriseAdmins'.
|
|
||||||
|
|
||||||
.PARAMETER Forest
|
|
||||||
Specifies the name of the forest to query for administrative groups.
|
|
||||||
|
|
||||||
.PARAMETER ExcludeDomains
|
|
||||||
Specifies an array of domains to exclude from the query.
|
|
||||||
|
|
||||||
.PARAMETER IncludeDomains
|
|
||||||
Specifies an array of domains to include in the query.
|
|
||||||
|
|
||||||
.PARAMETER ExtendedForestInformation
|
|
||||||
Specifies additional information about the forest to include in the query.
|
|
||||||
#>
|
|
||||||
[cmdletBinding()]
|
|
||||||
param(
|
|
||||||
[parameter(Mandatory)][validateSet('DomainAdmins', 'EnterpriseAdmins')][string[]] $Type,
|
|
||||||
[alias('ForestName')][string] $Forest,
|
|
||||||
[string[]] $ExcludeDomains,
|
|
||||||
[alias('Domain', 'Domains')][string[]] $IncludeDomains,
|
|
||||||
[System.Collections.IDictionary] $ExtendedForestInformation
|
|
||||||
)
|
|
||||||
|
|
||||||
$ADDictionary = [ordered] @{
|
|
||||||
ByNetBIOS = [ordered] @{}
|
|
||||||
BySID = [ordered] @{}
|
|
||||||
}
|
|
||||||
|
|
||||||
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
|
||||||
|
|
||||||
foreach ($Domain in $ForestInformation.Domains) {
|
|
||||||
$ADDictionary[$Domain] = [ordered] @{}
|
|
||||||
$QueryServer = $ForestInformation['QueryServers'][$Domain]['HostName'][0]
|
|
||||||
$DomainInformation = Get-ADDomain -Server $QueryServer
|
|
||||||
|
|
||||||
if ($Type -contains 'DomainAdmins') {
|
|
||||||
Get-ADGroup -Filter "SID -eq '$($DomainInformation.DomainSID)-512'" -Server $QueryServer -ErrorAction SilentlyContinue | ForEach-Object {
|
|
||||||
$ADDictionary['ByNetBIOS']["$($DomainInformation.NetBIOSName)\$($_.Name)"] = $_
|
|
||||||
$ADDictionary[$Domain]['DomainAdmins'] = "$($DomainInformation.NetBIOSName)\$($_.Name)"
|
|
||||||
$ADDictionary['BySID'][$_.SID.Value] = $_
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($Domain in $ForestInformation.Forest.Domains) {
|
|
||||||
if (-not $ADDictionary[$Domain]) {
|
|
||||||
$ADDictionary[$Domain] = [ordered] @{}
|
|
||||||
}
|
|
||||||
if ($Type -contains 'EnterpriseAdmins') {
|
|
||||||
$QueryServer = $ForestInformation['QueryServers'][$Domain]['HostName'][0]
|
|
||||||
$DomainInformation = Get-ADDomain -Server $QueryServer
|
|
||||||
|
|
||||||
Get-ADGroup -Filter "SID -eq '$($DomainInformation.DomainSID)-519'" -Server $QueryServer -ErrorAction SilentlyContinue | ForEach-Object {
|
|
||||||
$ADDictionary['ByNetBIOS']["$($DomainInformation.NetBIOSName)\$($_.Name)"] = $_
|
|
||||||
$ADDictionary[$Domain]['EnterpriseAdmins'] = "$($DomainInformation.NetBIOSName)\$($_.Name)"
|
|
||||||
$ADDictionary['BySID'][$_.SID.Value] = $_
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$ADDictionary
|
|
||||||
}
|
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
[System.Collections.IDictionary] $ADAdministrativeGroups
|
[System.Collections.IDictionary] $ADAdministrativeGroups
|
||||||
)
|
)
|
||||||
if (-not $ADAdministrativeGroups) {
|
if (-not $ADAdministrativeGroups) {
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
}
|
}
|
||||||
$AdministrativeExists = [ordered] @{
|
$AdministrativeExists = [ordered] @{
|
||||||
DisplayName = $GPOPermissions[0].DisplayName
|
DisplayName = $GPOPermissions[0].DisplayName
|
||||||
|
|||||||
+54
-54
@@ -354,58 +354,58 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$GPOOutput = [PsCustomObject] @{
|
$GPOOutput = [PsCustomObject] @{
|
||||||
'DisplayName' = $XMLContent.GPO.Name
|
'DisplayName' = $XMLContent.GPO.Name
|
||||||
'DomainName' = $XMLContent.GPO.Identifier.Domain.'#text'
|
'DomainName' = $XMLContent.GPO.Identifier.Domain.'#text'
|
||||||
'GUID' = $XMLContent.GPO.Identifier.Identifier.InnerText -replace '{' -replace '}'
|
'GUID' = $XMLContent.GPO.Identifier.Identifier.InnerText -replace '{' -replace '}'
|
||||||
'Days' = (New-TimeSpan -Start ([DateTime] $XMLContent.GPO.ModifiedTime) -End (Get-Date)).Days
|
'Days' = (New-TimeSpan -Start ([DateTime] $XMLContent.GPO.ModifiedTime) -End (Get-Date)).Days
|
||||||
'Empty' = $Empty
|
'Empty' = $Empty
|
||||||
'Linked' = $Linked
|
'Linked' = $Linked
|
||||||
'Enabled' = $EnabledBool
|
'Enabled' = $EnabledBool
|
||||||
'Optimized' = $Optimized
|
'Optimized' = $Optimized
|
||||||
'Problem' = $Problem
|
'Problem' = $Problem
|
||||||
'ApplyPermission' = $null
|
'ApplyPermission' = $null
|
||||||
'Exclude' = $Exclude
|
'Exclude' = $Exclude
|
||||||
'SizeMB' = [Math]::Round($TotalSize / 1MB, 2)
|
'SizeMB' = [Math]::Round($TotalSize / 1MB, 2)
|
||||||
'Size' = $TotalSize
|
'Size' = $TotalSize
|
||||||
'Description' = $GPO.Description
|
'Description' = $GPO.Description
|
||||||
'ComputerPolicies' = $XMLContent.GPO.Computer.ExtensionData.Name -join ", "
|
'ComputerPolicies' = $XMLContent.GPO.Computer.ExtensionData.Name -join ", "
|
||||||
'UserPolicies' = $XMLContent.GPO.User.ExtensionData.Name -join ", "
|
'UserPolicies' = $XMLContent.GPO.User.ExtensionData.Name -join ", "
|
||||||
'FilesCount' = $FilesCount
|
'FilesCount' = $FilesCount
|
||||||
'LinksCount' = $LinksTotalCount
|
'LinksCount' = $LinksTotalCount
|
||||||
'LinksEnabledCount' = $LinksEnabledCount
|
'LinksEnabledCount' = $LinksEnabledCount
|
||||||
'LinksDisabledCount' = $LinksDisabledCount
|
'LinksDisabledCount' = $LinksDisabledCount
|
||||||
'EnabledDetails' = $Enabled
|
'EnabledDetails' = $Enabled
|
||||||
'ComputerProblem' = $ComputerProblem
|
'ComputerProblem' = $ComputerProblem
|
||||||
'ComputerOptimized' = $ComputerOptimized
|
'ComputerOptimized' = $ComputerOptimized
|
||||||
'UserProblem' = $UserProblem
|
'UserProblem' = $UserProblem
|
||||||
'UserOptimized' = $UserOptimized
|
'UserOptimized' = $UserOptimized
|
||||||
'ComputerSettingsAvailable' = $ComputerSettingsAvailable
|
'ComputerSettingsAvailable' = $ComputerSettingsAvailable
|
||||||
'UserSettingsAvailable' = $UserSettingsAvailable
|
'UserSettingsAvailable' = $UserSettingsAvailable
|
||||||
#'ComputerSettingsAvailableReal' = $ComputerSettingsAvailableReal
|
#'ComputerSettingsAvailableReal' = $ComputerSettingsAvailableReal
|
||||||
#'UserSettingsAvailableReal' = $UserSettingsAvailableReal
|
#'UserSettingsAvailableReal' = $UserSettingsAvailableReal
|
||||||
'ComputerSettingsTypes' = $OutputComputer.Name -join ", "
|
'ComputerSettingsTypes' = $OutputComputer.Name -join ", "
|
||||||
'UserSettingsTypes' = $OutputUser.Name -join ", "
|
'UserSettingsTypes' = $OutputUser.Name -join ", "
|
||||||
'ComputerEnabled' = $ComputerEnabled
|
'ComputerEnabled' = $ComputerEnabled
|
||||||
'UserEnabled' = $UserEnabled
|
'UserEnabled' = $UserEnabled
|
||||||
'ComputerSettingsStatus' = if ($XMLContent.GPO.Computer.VersionDirectory -eq 0 -and $XMLContent.GPO.Computer.VersionSysvol -eq 0) { "NeverModified" } else { "Modified" }
|
'ComputerSettingsStatus' = if ($XMLContent.GPO.Computer.VersionDirectory -eq 0 -and $XMLContent.GPO.Computer.VersionSysvol -eq 0) { "NeverModified" } else { "Modified" }
|
||||||
'ComputerSettingsVersionIdentical' = if ($XMLContent.GPO.Computer.VersionDirectory -eq $XMLContent.GPO.Computer.VersionSysvol) { $true } else { $false }
|
'ComputerSetttingsVersionIdentical' = if ($XMLContent.GPO.Computer.VersionDirectory -eq $XMLContent.GPO.Computer.VersionSysvol) { $true } else { $false }
|
||||||
'ComputerSettings' = $XMLContent.GPO.Computer.ExtensionData.Extension
|
'ComputerSettings' = $XMLContent.GPO.Computer.ExtensionData.Extension
|
||||||
'UserSettingsStatus' = if ($XMLContent.GPO.User.VersionDirectory -eq 0 -and $XMLContent.GPO.User.VersionSysvol -eq 0) { "NeverModified" } else { "Modified" }
|
'UserSettingsStatus' = if ($XMLContent.GPO.User.VersionDirectory -eq 0 -and $XMLContent.GPO.User.VersionSysvol -eq 0) { "NeverModified" } else { "Modified" }
|
||||||
'UserSettingsVersionIdentical' = if ($XMLContent.GPO.User.VersionDirectory -eq $XMLContent.GPO.User.VersionSysvol) { $true } else { $false }
|
'UserSettingsVersionIdentical' = if ($XMLContent.GPO.User.VersionDirectory -eq $XMLContent.GPO.User.VersionSysvol) { $true } else { $false }
|
||||||
'UserSettings' = $XMLContent.GPO.User.ExtensionData.Extension
|
'UserSettings' = $XMLContent.GPO.User.ExtensionData.Extension
|
||||||
'NoSettings' = $NoSettings
|
'NoSettings' = $NoSettings
|
||||||
'CreationTime' = [DateTime] $XMLContent.GPO.CreatedTime
|
'CreationTime' = [DateTime] $XMLContent.GPO.CreatedTime
|
||||||
'ModificationTime' = [DateTime] $XMLContent.GPO.ModifiedTime
|
'ModificationTime' = [DateTime] $XMLContent.GPO.ModifiedTime
|
||||||
'ReadTime' = [DateTime] $XMLContent.GPO.ReadTime
|
'ReadTime' = [DateTime] $XMLContent.GPO.ReadTime
|
||||||
'WMIFilter' = $GPO.WmiFilter.name
|
'WMIFilter' = $GPO.WmiFilter.name
|
||||||
'WMIFilterDescription' = $GPO.WmiFilter.Description
|
'WMIFilterDescription' = $GPO.WmiFilter.Description
|
||||||
'GPODistinguishedName' = $GPO.Path
|
'GPODistinguishedName' = $GPO.Path
|
||||||
'GPOSysvolPath' = $SysvolGpoPath
|
'GPOSysvolPath' = $SysvolGpoPath
|
||||||
'SDDL' = if ($Splitter -ne '') { $XMLContent.GPO.SecurityDescriptor.SDDL.'#text' -join $Splitter } else { $XMLContent.GPO.SecurityDescriptor.SDDL.'#text' }
|
'SDDL' = if ($Splitter -ne '') { $XMLContent.GPO.SecurityDescriptor.SDDL.'#text' -join $Splitter } else { $XMLContent.GPO.SecurityDescriptor.SDDL.'#text' }
|
||||||
'Owner' = $XMLContent.GPO.SecurityDescriptor.Owner.Name.'#text'
|
'Owner' = $XMLContent.GPO.SecurityDescriptor.Owner.Name.'#text'
|
||||||
'OwnerSID' = $XMLContent.GPO.SecurityDescriptor.Owner.SID.'#text'
|
'OwnerSID' = $XMLContent.GPO.SecurityDescriptor.Owner.SID.'#text'
|
||||||
'OwnerType' = $OwnerType
|
'OwnerType' = $OwnerType
|
||||||
'ACL' = @(
|
'ACL' = @(
|
||||||
[PsCustomObject] @{
|
[PsCustomObject] @{
|
||||||
'Name' = $XMLContent.GPO.SecurityDescriptor.Owner.Name.'#text'
|
'Name' = $XMLContent.GPO.SecurityDescriptor.Owner.Name.'#text'
|
||||||
'Sid' = $XMLContent.GPO.SecurityDescriptor.Owner.SID.'#text'
|
'Sid' = $XMLContent.GPO.SecurityDescriptor.Owner.SID.'#text'
|
||||||
@@ -425,10 +425,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
'Auditing' = if ($XMLContent.GPO.SecurityDescriptor.AuditingPresent.'#text' -eq 'true') { $true } else { $false }
|
'Auditing' = if ($XMLContent.GPO.SecurityDescriptor.AuditingPresent.'#text' -eq 'true') { $true } else { $false }
|
||||||
'Links' = $Links
|
'Links' = $Links
|
||||||
'LinksObjects' = $LinksObjects
|
'LinksObjects' = $LinksObjects
|
||||||
'GPOObject' = $GPO
|
'GPOObject' = $GPO
|
||||||
}
|
}
|
||||||
if ($GPOOutput.ACL) {
|
if ($GPOOutput.ACL) {
|
||||||
$GPOOutput.ApplyPermission = $false
|
$GPOOutput.ApplyPermission = $false
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$GPOZaurrBlockedInheritance = [ordered] @{
|
$GPOZaurrBlockedInheritance = [ordered] @{
|
||||||
Name = 'Group Policy Blocked Inheritance'
|
Name = 'Group Policy Blocked Inhertiance'
|
||||||
Enabled = $true
|
Enabled = $true
|
||||||
ActionRequired = $null
|
ActionRequired = $null
|
||||||
Data = $null
|
Data = $null
|
||||||
|
|||||||
@@ -494,15 +494,12 @@
|
|||||||
Settings = 'Policy'
|
Settings = 'Policy'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
GPOPath = @(
|
GPOPath = 'Policies -> Administrative Templates -> LAPS'
|
||||||
'Policies -> Administrative Templates -> LAPS'
|
|
||||||
'Policies -> Administrative Templates -> System -> LAPS'
|
|
||||||
)
|
|
||||||
Code = {
|
Code = {
|
||||||
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'LAPS', 'System/LAPS*'
|
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'LAPS'
|
||||||
}
|
}
|
||||||
CodeSingle = {
|
CodeSingle = {
|
||||||
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'LAPS', 'System/LAPS*' -SingleObject
|
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'LAPS' -SingleObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Lithnet = @{
|
Lithnet = @{
|
||||||
@@ -1172,26 +1169,13 @@
|
|||||||
Category = 'RegistrySettings'
|
Category = 'RegistrySettings'
|
||||||
Settings = 'Policy'
|
Settings = 'Policy'
|
||||||
}
|
}
|
||||||
@{
|
|
||||||
Category = 'RegistrySettings'
|
|
||||||
Settings = 'RegistrySettings'
|
|
||||||
}
|
|
||||||
)
|
|
||||||
GPOPath = @(
|
|
||||||
'Policies -> Administrative Templates -> Windows Components/Windows Defender'
|
|
||||||
'Policies -> Administrative Templates -> Windows Components/Microsoft Defender Antivirus'
|
|
||||||
)
|
)
|
||||||
|
GPOPath = 'Policies -> Administrative Templates -> Windows Components/Windows Defender'
|
||||||
Code = {
|
Code = {
|
||||||
@(
|
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Windows Defender*'
|
||||||
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Windows Defender*', 'Windows Components/Microsoft Defender Antivirus*'
|
|
||||||
ConvertTo-XMLRegistryDefenderOnReport -GPO $GPO
|
|
||||||
) | Where-Object { $_ }
|
|
||||||
}
|
}
|
||||||
CodeSingle = {
|
CodeSingle = {
|
||||||
@(
|
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Windows Defender*' -SingleObject
|
||||||
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Windows Defender*', 'Windows Components/Microsoft Defender Antivirus*' -SingleObject
|
|
||||||
ConvertTo-XMLRegistryDefenderOnReport -GPO $GPO
|
|
||||||
) | Where-Object { $_ }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
WindowsDefenderExploitGuard = @{
|
WindowsDefenderExploitGuard = @{
|
||||||
@@ -1202,15 +1186,12 @@
|
|||||||
Settings = 'Policy'
|
Settings = 'Policy'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
GPOPath = @(
|
GPOPath = 'Policies -> Administrative Templates -> Windows Components/Microsoft Defender Antivirus/Microsoft Defender Exploit Guard'
|
||||||
'Policies -> Administrative Templates -> Windows Components/Windows Defender/Windows Defender Exploit Guard'
|
|
||||||
'Policies -> Administrative Templates -> Windows Components/Microsoft Defender Antivirus/Microsoft Defender Exploit Guard'
|
|
||||||
)
|
|
||||||
Code = {
|
Code = {
|
||||||
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Windows Defender*/Windows Defender Exploit Guard*', 'Windows Components/Microsoft Defender Antivirus/Microsoft Defender Exploit Guard*', 'Windows Components/Microsoft Defender Antivirus/Windows Defender Exploit Guard*'
|
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Microsoft Defender Antivirus/Microsoft Defender Exploit Guard*'
|
||||||
}
|
}
|
||||||
CodeSingle = {
|
CodeSingle = {
|
||||||
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Windows Defender*/Windows Defender Exploit Guard*', 'Windows Components/Microsoft Defender Antivirus/Microsoft Defender Exploit Guard*', 'Windows Components/Microsoft Defender Antivirus/Windows Defender Exploit Guard*' -SingleObject
|
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Microsoft Defender Antivirus/Microsoft Defender Exploit Guard*' -SingleObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# WindowsFirewall = @{
|
# WindowsFirewall = @{
|
||||||
@@ -1447,4 +1428,4 @@
|
|||||||
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Windows Update*', 'Windows Components/Delivery Optimization*' -SingleObject
|
ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Windows Update*', 'Windows Components/Delivery Optimization*' -SingleObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
)
|
)
|
||||||
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation -Extended
|
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation -Extended
|
||||||
if (-not $ADAdministrativeGroups) {
|
if (-not $ADAdministrativeGroups) {
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
}
|
}
|
||||||
if ($GPOName) {
|
if ($GPOName) {
|
||||||
$Splat = @{
|
$Splat = @{
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
Begin {
|
Begin {
|
||||||
if (-not $ADAdministrativeGroups) {
|
if (-not $ADAdministrativeGroups) {
|
||||||
Write-Verbose "Get-GPOZaurr - Getting ADAdministrativeGroups"
|
Write-Verbose "Get-GPOZaurr - Getting ADAdministrativeGroups"
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
}
|
}
|
||||||
if (-not $GPOPath) {
|
if (-not $GPOPath) {
|
||||||
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
$Splat['Filter'] = -join ($Splat['Filter'], ' -and ((WhenChanged -ge $DateFrom -and WhenChanged -le $DateTo) -or (WhenCreated -ge $DateFrom -and WhenCreated -le $DateTo))')
|
$Splat['Filter'] = -join ($Splat['Filter'], ' -and ((WhenChanged -ge $DateFrom -and WhenChanged -le $DateTo) -or (WhenCreated -ge $DateFrom -and WhenCreated -le $DateTo))')
|
||||||
} elseif ($DateProperty -eq 'WhenChanged' -or $DateProperty -eq 'WhenCreated') {
|
} elseif ($DateProperty -eq 'WhenChanged' -or $DateProperty -eq 'WhenCreated') {
|
||||||
$Property = $DateProperty[0]
|
$Property = $DateProperty[0]
|
||||||
$Splat['Filter'] = -join ($Splat['Filter'], " -and ($Property -ge `$DateFrom -and $Property -le `$DateTo)")
|
$Splat['Filter'] = -join ($Splat['Filter'], " -and ($Property -ge $DateFrom -and $Property -le $DateTo)")
|
||||||
} else {
|
} else {
|
||||||
Write-Warning -Message "Get-GPOZaurrAD - DateProperty parameter is empty. Provide name and try again."
|
Write-Warning -Message "Get-GPOZaurrAD - DateProperty parameter is empty. Provide name and try again."
|
||||||
continue
|
continue
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
$Splat['Filter'] = -join ($Splat['Filter'], ' -and ((WhenChanged -ge $DateFrom -and WhenChanged -le $DateTo) -or (WhenCreated -ge $DateFrom -and WhenCreated -le $DateTo))')
|
$Splat['Filter'] = -join ($Splat['Filter'], ' -and ((WhenChanged -ge $DateFrom -and WhenChanged -le $DateTo) -or (WhenCreated -ge $DateFrom -and WhenCreated -le $DateTo))')
|
||||||
} elseif ($DateProperty -eq 'WhenChanged' -or $DateProperty -eq 'WhenCreated') {
|
} elseif ($DateProperty -eq 'WhenChanged' -or $DateProperty -eq 'WhenCreated') {
|
||||||
$Property = $DateProperty[0]
|
$Property = $DateProperty[0]
|
||||||
$Splat['Filter'] = -join ($Splat['Filter'], " -and ($Property -ge `$DateFrom -and $Property -le `$DateTo)")
|
$Splat['Filter'] = -join ($Splat['Filter'], " -and ($Property -ge $DateFrom -and $Property -le $DateTo)")
|
||||||
} else {
|
} else {
|
||||||
Write-Warning -Message "Get-GPOZaurrAD - DateProperty parameter is empty. Provide name and try again."
|
Write-Warning -Message "Get-GPOZaurrAD - DateProperty parameter is empty. Provide name and try again."
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
function Get-GPOZaurrTemplates {
|
||||||
|
[CmdletBinding()]
|
||||||
|
param(
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
$SysvolADMXPath = "\\$env:USERDNSDOMAIN\SYSVOL\$env:USERDNSDOMAIN\Policies\PolicyDefinitions"
|
||||||
|
Get-ChildItem -Path $SysvolADMXPath -Filter "*.admx" -Recurse -File | ForEach-Object {
|
||||||
|
[PSCustomObject]@{
|
||||||
|
Name = $_.Name
|
||||||
|
Path = $_.FullName
|
||||||
|
Size = $_.Length
|
||||||
|
LastWriteTime = $_.LastWriteTime
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
Begin {
|
Begin {
|
||||||
$ForestInformation = Get-WinADForestDetails -Extended -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ForestInformation = Get-WinADForestDetails -Extended -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
if (-not $ADAdministrativeGroups) {
|
if (-not $ADAdministrativeGroups) {
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
}
|
}
|
||||||
$Count = 0
|
$Count = 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
Begin {
|
Begin {
|
||||||
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation -Extended
|
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation -Extended
|
||||||
if (-not $ADAdministrativeGroups) {
|
if (-not $ADAdministrativeGroups) {
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
}
|
}
|
||||||
if ($Type -eq 'Unknown') {
|
if ($Type -eq 'Unknown') {
|
||||||
if ($SkipAdministrative -or $SkipWellKnown) {
|
if ($SkipAdministrative -or $SkipWellKnown) {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
[Array] $Permissions
|
[Array] $Permissions
|
||||||
)
|
)
|
||||||
if (-not $ADAdministrativeGroups) {
|
if (-not $ADAdministrativeGroups) {
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-not $Permissions) {
|
if (-not $Permissions) {
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
function Initialize-GPOZaurrTemplate {
|
||||||
|
[CmdletBinding()]
|
||||||
|
param(
|
||||||
|
[Parameter(Mandatory)][string] $Name,
|
||||||
|
[Parameter(Mandatory)][string] $Path,
|
||||||
|
[string] $ExportPath
|
||||||
|
)
|
||||||
|
|
||||||
|
$Files = Get-ChildItem -Path $Path -Filter "*.admx" -Recurse -File
|
||||||
|
$TotalFiles = $Files.Count
|
||||||
|
$ProgressIncrement = [math]::Ceiling($TotalFiles / 10)
|
||||||
|
$CurrentProgress = 0
|
||||||
|
|
||||||
|
$FullList = foreach ($File in $Files) {
|
||||||
|
$CurrentProgress++
|
||||||
|
if ($CurrentProgress % $ProgressIncrement -eq 0) {
|
||||||
|
Write-Verbose ("Initialize-GPOZaurrTemplate - Processing $Name, template file {0} of {1} ({2}%)" -f $CurrentProgress, $TotalFiles, [math]::Round(($CurrentProgress / $TotalFiles) * 100))
|
||||||
|
}
|
||||||
|
$HashInformation = Get-FileHash -LiteralPath $File.FullName
|
||||||
|
$Directories = Get-ChildItem -Path $File.DirectoryName -Directory
|
||||||
|
$Languages = [ordered] @{}
|
||||||
|
foreach ($Directory in $Directories) {
|
||||||
|
$LanguageFile = [io.path]::Combine($Directory.FullName, $File.BaseName + ".adml")
|
||||||
|
$Item = Get-Item -Path $LanguageFile -ErrorAction SilentlyContinue
|
||||||
|
if (Test-Path -Path $LanguageFile) {
|
||||||
|
$HashInformation = Get-FileHash -LiteralPath $LanguageFile
|
||||||
|
$Languages[$Directory.Name] = [PSCustomObject]@{
|
||||||
|
Name = $Directory.Name
|
||||||
|
Hash = $HashInformation.Hash
|
||||||
|
Algorithm = $HashInformation.Algorithm
|
||||||
|
Size = $Item.Length
|
||||||
|
CreationTimeUtc = $Item.CreationTimeUtc
|
||||||
|
LastWriteTimeUtc = $Item.LastWriteTimeUtc
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
[PSCustomObject] @{
|
||||||
|
Name = $File.Name
|
||||||
|
Hash = $HashInformation.Hash
|
||||||
|
Algorithm = $HashInformation.Algorithm
|
||||||
|
Size = $File.Length
|
||||||
|
LanguagesAvailable = $Languages.Keys
|
||||||
|
LanguagesCount = $Languages.Keys.Count
|
||||||
|
CreationTimeUtc = $File.CreationTimeUtc
|
||||||
|
LastWriteTimeUtc = $File.LastWriteTimeUtc
|
||||||
|
LanguageFile = $Languages
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$OutputObject = [PSCustomObject] @{
|
||||||
|
Name = $Name
|
||||||
|
Path = $Path
|
||||||
|
Templates = $FullList
|
||||||
|
}
|
||||||
|
if ($ExportPath) {
|
||||||
|
if ($ExportPath.EndsWith('.xml')) {
|
||||||
|
$ExportType = 'XML'
|
||||||
|
} elseif ($ExportPath.EndsWith('.json')) {
|
||||||
|
$ExportType = 'JSON'
|
||||||
|
} else {
|
||||||
|
$ExportType = 'XML'
|
||||||
|
}
|
||||||
|
if ($ExportType -eq 'XML') {
|
||||||
|
$OutputObject | Export-Clixml -Path $ExportPath -ErrorAction Stop
|
||||||
|
} elseif ($ExportType -eq 'JSON') {
|
||||||
|
$OutputObject | ConvertTo-Json -Depth 10 | Set-Content -Path $ExportPath -ErrorAction Stop
|
||||||
|
} else {
|
||||||
|
Write-Warning "ExportType $ExportType is not supported. Exporting to XML."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$OutputObject
|
||||||
|
}
|
||||||
@@ -126,10 +126,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-not $FilePath) {
|
|
||||||
$FilePath = Get-FileName -Extension 'html' -Temporary -Name "GpoZaurr"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Build data
|
# Build data
|
||||||
foreach ($T in $Script:GPOConfiguration.Keys) {
|
foreach ($T in $Script:GPOConfiguration.Keys) {
|
||||||
if ($Script:GPOConfiguration[$T].Enabled -eq $true) {
|
if ($Script:GPOConfiguration[$T].Enabled -eq $true) {
|
||||||
@@ -205,6 +201,10 @@
|
|||||||
if (-not $SplitReports) {
|
if (-not $SplitReports) {
|
||||||
# Generate pretty HTML
|
# Generate pretty HTML
|
||||||
$TimeLogHTML = Start-TimeLog
|
$TimeLogHTML = Start-TimeLog
|
||||||
|
if (-not $FilePath) {
|
||||||
|
$FilePath = Get-FileName -Extension 'html' -Temporary
|
||||||
|
}
|
||||||
|
|
||||||
New-HTMLReportAll -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML -Type $Type
|
New-HTMLReportAll -FilePath $FilePath -Online:$Online -HideHTML:$HideHTML -Type $Type
|
||||||
|
|
||||||
$TimeLogEndHTML = Stop-TimeLog -Time $TimeLogHTML -Option OneLiner
|
$TimeLogEndHTML = Stop-TimeLog -Time $TimeLogHTML -Option OneLiner
|
||||||
|
|||||||
@@ -59,10 +59,6 @@
|
|||||||
Invoke-GPOZaurrContent -GPOPath "CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=Contoso,DC=com" -Type "All" -OutputType "Object"
|
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.
|
Retrieves all information for a specific Group Policy Object and outputs the result as an object.
|
||||||
|
|
||||||
.EXAMPLE
|
|
||||||
Invoke-GPOZaurrContent -GPOName "Group Policy Test" -SingleObject | ConvertTo-Json -Depth 3
|
|
||||||
Quickly view GPO settings by name in JSON format for easy inspection.
|
|
||||||
|
|
||||||
#>
|
#>
|
||||||
[alias('Find-GPO')]
|
[alias('Find-GPO')]
|
||||||
[cmdletBinding(DefaultParameterSetName = 'Default')]
|
[cmdletBinding(DefaultParameterSetName = 'Default')]
|
||||||
@@ -287,39 +283,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($Output['Reports']['WindowsDefender']) {
|
|
||||||
# Defender can be represented by policy categories and raw registry settings.
|
|
||||||
# Merge entries per GPO so fallback fields do not create duplicated-looking rows.
|
|
||||||
$MergedWindowsDefender = [System.Collections.Generic.List[PSCustomObject]]::new()
|
|
||||||
$GroupedWindowsDefender = $Output['Reports']['WindowsDefender'] | Group-Object -Property DisplayName, DomainName, GUID, GpoType
|
|
||||||
foreach ($Group in $GroupedWindowsDefender) {
|
|
||||||
$MergedObject = [ordered] @{}
|
|
||||||
foreach ($Entry in $Group.Group) {
|
|
||||||
foreach ($Property in $Entry.PSObject.Properties) {
|
|
||||||
if (-not $MergedObject.Contains($Property.Name)) {
|
|
||||||
$MergedObject[$Property.Name] = $Property.Value
|
|
||||||
} else {
|
|
||||||
$CurrentValue = $MergedObject[$Property.Name]
|
|
||||||
$CurrentEmpty = $null -eq $CurrentValue -or ($CurrentValue -is [string] -and $CurrentValue -eq '')
|
|
||||||
$NewEmpty = $null -eq $Property.Value -or ($Property.Value -is [string] -and $Property.Value -eq '')
|
|
||||||
if ($CurrentEmpty -and -not $NewEmpty) {
|
|
||||||
$MergedObject[$Property.Name] = $Property.Value
|
|
||||||
} elseif (-not $CurrentEmpty -and -not $NewEmpty -and "$CurrentValue" -ne "$($Property.Value)") {
|
|
||||||
$PropertyCounter = 2
|
|
||||||
$AlternativeName = -join ($Property.Name, "$PropertyCounter")
|
|
||||||
while ($MergedObject.Contains($AlternativeName)) {
|
|
||||||
$PropertyCounter++
|
|
||||||
$AlternativeName = -join ($Property.Name, "$PropertyCounter")
|
|
||||||
}
|
|
||||||
$MergedObject[$AlternativeName] = $Property.Value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$MergedWindowsDefender.Add([PSCustomObject] $MergedObject)
|
|
||||||
}
|
|
||||||
$Output['Reports']['WindowsDefender'] = $MergedWindowsDefender
|
|
||||||
}
|
|
||||||
# Normalize - meaning that before we return each GPO report we make sure that each entry has the same column names regardless which one is first.
|
# Normalize - meaning that before we return each GPO report we make sure that each entry has the same column names regardless which one is first.
|
||||||
# Normally if you would have a GPO with just 2 entries for given subject (say LAPS), and then another GPO having 5 settings for the same type
|
# Normally if you would have a GPO with just 2 entries for given subject (say LAPS), and then another GPO having 5 settings for the same type
|
||||||
# and you would display them one after another - all entries would be shown using first object which has less properties then 2nd or 3rd object
|
# and you would display them one after another - all entries would be shown using first object which has less properties then 2nd or 3rd object
|
||||||
@@ -385,4 +348,4 @@
|
|||||||
|
|
||||||
$Script:GPODitionary.Keys | Sort-Object | Where-Object { $_ -like "*$wordToComplete*" }
|
$Script:GPODitionary.Keys | Sort-Object | Where-Object { $_ -like "*$wordToComplete*" }
|
||||||
}
|
}
|
||||||
Register-ArgumentCompleter -CommandName Invoke-GPOZaurrContent -ParameterName Type -ScriptBlock $SourcesAutoCompleter
|
Register-ArgumentCompleter -CommandName Invoke-GPOZaurrContent -ParameterName Type -ScriptBlock $SourcesAutoCompleter
|
||||||
@@ -192,9 +192,9 @@
|
|||||||
$ForestInformation = Get-WinADForestDetails -Extended -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ForestInformation = Get-WinADForestDetails -Extended -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
if ($LimitAdministrativeGroupsToDomain) {
|
if ($LimitAdministrativeGroupsToDomain) {
|
||||||
# This will get administrative based on IncludeDomains if given. It means that if GPO has Domain admins added from multiple domains it will only find one, and remove all other Domain Admins (if working with Domain Admins that is)
|
# This will get administrative based on IncludeDomains if given. It means that if GPO has Domain admins added from multiple domains it will only find one, and remove all other Domain Admins (if working with Domain Admins that is)
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ForestInformation
|
||||||
} else {
|
} else {
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest #-IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest #-IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ForestInformation
|
||||||
}
|
}
|
||||||
if ($PSCmdlet.ParameterSetName -ne 'Level') {
|
if ($PSCmdlet.ParameterSetName -ne 'Level') {
|
||||||
$Splat = @{
|
$Splat = @{
|
||||||
|
|||||||
@@ -28,11 +28,11 @@
|
|||||||
Runs the function online to retrieve the latest Group Policy information.
|
Runs the function online to retrieve the latest Group Policy information.
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
Invoke-GPOZaurrSupport -Type HTML -ComputerName "RemoteComputer" -UserName "Admin" -Path (Join-Path $env:TEMP 'GPOReport.html')
|
Invoke-GPOZaurrSupport -Type HTML -ComputerName "RemoteComputer" -UserName "Admin" -Path "C:\Temp\GPOReport.html"
|
||||||
Retrieves Group Policy information in HTML format from a remote computer and saves it to a specified path.
|
Retrieves Group Policy information in HTML format from a remote computer and saves it to a specified path.
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
Invoke-GPOZaurrSupport -Type XML -Path (Join-Path $env:TEMP 'GPOReport.xml') -Online
|
Invoke-GPOZaurrSupport -Type XML -Path "C:\Temp\GPOReport.xml" -Online
|
||||||
Retrieves the latest Group Policy information in XML format and saves it to a specified path.
|
Retrieves the latest Group Policy information in XML format and saves it to a specified path.
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
Begin {
|
Begin {
|
||||||
$Count = 0
|
$Count = 0
|
||||||
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ForestInformation = Get-WinADForestDetails -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ForestInformation
|
||||||
if ($Type -eq 'Unknown') {
|
if ($Type -eq 'Unknown') {
|
||||||
if ($SkipAdministrative -or $SkipWellKnown) {
|
if ($SkipAdministrative -or $SkipWellKnown) {
|
||||||
Write-Warning "Remove-GPOZaurrPermission - Using SkipAdministrative or SkipWellKnown while looking for Unknown doesn't make sense as only Unknown will be displayed."
|
Write-Warning "Remove-GPOZaurrPermission - Using SkipAdministrative or SkipWellKnown while looking for Unknown doesn't make sense as only Unknown will be displayed."
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
[switch] $Force
|
[switch] $Force
|
||||||
)
|
)
|
||||||
Begin {
|
Begin {
|
||||||
$ADAdministrativeGroups = Get-ADAdministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
$ADAdministrativeGroups = Get-ADADministrativeGroups -Type DomainAdmins, EnterpriseAdmins -Forest $Forest -IncludeDomains $IncludeDomains -ExcludeDomains $ExcludeDomains -ExtendedForestInformation $ExtendedForestInformation
|
||||||
}
|
}
|
||||||
Process {
|
Process {
|
||||||
$getGPOZaurrOwnerSplat = @{
|
$getGPOZaurrOwnerSplat = @{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://www.powershellgallery.com/packages/GPOZaurr"><img src="https://img.shields.io/powershellgallery/v/GPOZaurr.svg"></a>
|
<a href="https://www.powershellgallery.com/packages/GPOZaurr"><img src="https://img.shields.io/powershellgallery/v/GPOZaurr.svg"></a>
|
||||||
<a href="https://www.powershellgallery.com/packages/GPOZaurr"><img src="https://img.shields.io/powershellgallery/v/GPOZaurr.svg?label=powershell%20gallery%20preview&colorB=yellow&include_prereleases"></a>
|
<a href="https://www.powershellgallery.com/packages/GPOZaurr"><img src="https://img.shields.io/powershellgallery/vpre/GPOZaurr.svg?label=powershell%20gallery%20preview&colorB=yellow"></a>
|
||||||
<a href="https://github.com/EvotecIT/GPOZaurr"><img src="https://img.shields.io/github/license/EvotecIT/GPOZaurr.svg"></a>
|
<a href="https://github.com/EvotecIT/GPOZaurr"><img src="https://img.shields.io/github/license/EvotecIT/GPOZaurr.svg"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@@ -1,134 +0,0 @@
|
|||||||
Describe 'Defender content detection' {
|
|
||||||
BeforeAll {
|
|
||||||
Import-Module $PSScriptRoot\..\*.psd1 -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
It 'WindowsDefender dictionary supports old and new categories' {
|
|
||||||
InModuleScope GPOZaurr {
|
|
||||||
$Entry = $Script:GPODitionary['WindowsDefender']
|
|
||||||
$Entry.GPOPath | Should -Contain 'Policies -> Administrative Templates -> Windows Components/Windows Defender'
|
|
||||||
$Entry.GPOPath | Should -Contain 'Policies -> Administrative Templates -> Windows Components/Microsoft Defender Antivirus'
|
|
||||||
($Entry.Types | Where-Object { $_.Category -eq 'RegistrySettings' -and $_.Settings -eq 'RegistrySettings' }).Count | Should -BeGreaterOrEqual 1
|
|
||||||
$Entry.Code.ToString() | Should -Match 'ConvertTo-XMLRegistryDefenderOnReport'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
It 'WindowsDefenderExploitGuard supports category variants' {
|
|
||||||
InModuleScope GPOZaurr {
|
|
||||||
$Entry = $Script:GPODitionary['WindowsDefenderExploitGuard']
|
|
||||||
$Entry.GPOPath | Should -Contain 'Policies -> Administrative Templates -> Windows Components/Windows Defender/Windows Defender Exploit Guard'
|
|
||||||
$Entry.GPOPath | Should -Contain 'Policies -> Administrative Templates -> Windows Components/Microsoft Defender Antivirus/Microsoft Defender Exploit Guard'
|
|
||||||
$Entry.Code.ToString() | Should -Match 'Windows Components/Microsoft Defender Antivirus/Windows Defender Exploit Guard\*'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
It 'ConvertTo-XMLRegistryDefenderOnReport returns only Defender registry settings' {
|
|
||||||
InModuleScope GPOZaurr {
|
|
||||||
$GPO = [PSCustomObject] @{
|
|
||||||
DisplayName = 'Test Defender GPO'
|
|
||||||
DomainName = 'contoso.com'
|
|
||||||
GUID = '11111111-1111-1111-1111-111111111111'
|
|
||||||
GpoType = 'Computer'
|
|
||||||
Linked = $true
|
|
||||||
LinksCount = 1
|
|
||||||
Links = @('OU=Workstations,DC=contoso,DC=com')
|
|
||||||
Settings = @(
|
|
||||||
[PSCustomObject] @{
|
|
||||||
Hive = 'HKEY_LOCAL_MACHINE'
|
|
||||||
Key = 'SOFTWARE\Microsoft\Windows Defender\MpEngine'
|
|
||||||
Name = 'MpFolderScanThreadCount'
|
|
||||||
Type = 'REG_DWORD'
|
|
||||||
Value = '4'
|
|
||||||
Changed = [datetime] '2026-02-18T11:15:00'
|
|
||||||
Filters = $null
|
|
||||||
}
|
|
||||||
[PSCustomObject] @{
|
|
||||||
Hive = 'HKEY_LOCAL_MACHINE'
|
|
||||||
Key = 'SOFTWARE\Contoso\Other'
|
|
||||||
Name = 'Setting'
|
|
||||||
Type = 'REG_SZ'
|
|
||||||
Value = 'Value'
|
|
||||||
Changed = [datetime] '2026-02-18T11:15:00'
|
|
||||||
Filters = $null
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
[Array] $Result = ConvertTo-XMLRegistryDefenderOnReport -GPO $GPO
|
|
||||||
$Result.Count | Should -Be 1
|
|
||||||
$Result[0].MpFolderScanThreadCount | Should -Be '4'
|
|
||||||
$Result[0].MpFolderScanThreadCountRegistryKey | Should -Be 'SOFTWARE\Microsoft\Windows Defender\MpEngine'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
It 'ConvertTo-XMLRegistryDefenderOnReport supports raw DataSet input' {
|
|
||||||
InModuleScope GPOZaurr {
|
|
||||||
$GPO = [PSCustomObject] @{
|
|
||||||
DisplayName = 'Test Defender GPO'
|
|
||||||
DomainName = 'contoso.com'
|
|
||||||
GUID = '11111111-1111-1111-1111-111111111111'
|
|
||||||
GpoType = 'Computer'
|
|
||||||
Linked = $true
|
|
||||||
LinksCount = 1
|
|
||||||
Links = @('OU=Workstations,DC=contoso,DC=com')
|
|
||||||
DataSet = ([xml] @"
|
|
||||||
<Root>
|
|
||||||
<Registry changed='2026-02-18T11:15:00' disabled='0'>
|
|
||||||
<Properties action='U' hive='HKEY_LOCAL_MACHINE' key='SOFTWARE\Microsoft\Windows Defender\MpEngine' name='MpFolderScanThreadCount' type='REG_DWORD' value='4' />
|
|
||||||
</Registry>
|
|
||||||
</Root>
|
|
||||||
"@).Root.Registry
|
|
||||||
}
|
|
||||||
|
|
||||||
[Array] $Result = ConvertTo-XMLRegistryDefenderOnReport -GPO $GPO
|
|
||||||
$Result.Count | Should -Be 1
|
|
||||||
$Result[0].MpFolderScanThreadCount | Should -Be '4'
|
|
||||||
$Result[0].MpFolderScanThreadCountRegistryKey | Should -Be 'SOFTWARE\Microsoft\Windows Defender\MpEngine'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
It 'ConvertTo-XMLGenericPolicy prefers list item names over zero-only data' {
|
|
||||||
InModuleScope GPOZaurr {
|
|
||||||
[xml] $ListValue = @"
|
|
||||||
<Value>
|
|
||||||
<Element>
|
|
||||||
<Name>C:\PathOne</Name>
|
|
||||||
<Data>0</Data>
|
|
||||||
</Element>
|
|
||||||
<Element>
|
|
||||||
<Name>D:\PathTwo</Name>
|
|
||||||
<Data>0</Data>
|
|
||||||
</Element>
|
|
||||||
</Value>
|
|
||||||
"@
|
|
||||||
|
|
||||||
$GPO = [PSCustomObject] @{
|
|
||||||
DisplayName = 'Test Defender GPO'
|
|
||||||
DomainName = 'contoso.com'
|
|
||||||
GUID = '11111111-1111-1111-1111-111111111111'
|
|
||||||
GpoType = 'Computer'
|
|
||||||
Linked = $true
|
|
||||||
LinksCount = 1
|
|
||||||
Links = @('OU=Workstations,DC=contoso,DC=com')
|
|
||||||
DataSet = @(
|
|
||||||
[PSCustomObject] @{
|
|
||||||
Category = 'Windows Components/Microsoft Defender Antivirus/Exclusions'
|
|
||||||
Name = 'Path Exclusions'
|
|
||||||
State = 'Enabled'
|
|
||||||
ListBox = @(
|
|
||||||
[PSCustomObject] @{
|
|
||||||
Name = 'Path Exclusions'
|
|
||||||
Value = $ListValue.Value
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
$Result = ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'Windows Components/Microsoft Defender Antivirus*'
|
|
||||||
$Result.PathExclusionsPathExclusions | Should -Match 'C:\\PathOne'
|
|
||||||
$Result.PathExclusionsPathExclusions | Should -Match 'D:\\PathTwo'
|
|
||||||
$Result.PathExclusionsPathExclusions | Should -Not -Be '0; 0'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
Describe 'LAPS content detection' {
|
|
||||||
BeforeAll {
|
|
||||||
Import-Module $PSScriptRoot\..\*.psd1 -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
It 'LAPS dictionary supports legacy Microsoft LAPS and Windows LAPS categories' {
|
|
||||||
InModuleScope GPOZaurr {
|
|
||||||
$Entry = $Script:GPODitionary['LAPS']
|
|
||||||
$Entry.GPOPath | Should -Contain 'Policies -> Administrative Templates -> LAPS'
|
|
||||||
$Entry.GPOPath | Should -Contain 'Policies -> Administrative Templates -> System -> LAPS'
|
|
||||||
$Entry.Code.ToString() | Should -Match 'System/LAPS\*'
|
|
||||||
$Entry.CodeSingle.ToString() | Should -Match 'System/LAPS\*'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
It 'ConvertTo-XMLGenericPolicy returns Windows LAPS policies from System/LAPS' {
|
|
||||||
InModuleScope GPOZaurr {
|
|
||||||
$GPO = [PSCustomObject] @{
|
|
||||||
DisplayName = 'Windows LAPS GPO'
|
|
||||||
DomainName = 'contoso.com'
|
|
||||||
GUID = '11111111-1111-1111-1111-111111111111'
|
|
||||||
GpoType = 'Computer'
|
|
||||||
Linked = $true
|
|
||||||
LinksCount = 1
|
|
||||||
Links = @('OU=Workstations,DC=contoso,DC=com')
|
|
||||||
DataSet = @(
|
|
||||||
[PSCustomObject] @{
|
|
||||||
Category = 'System/LAPS'
|
|
||||||
Name = 'Configure password backup directory'
|
|
||||||
State = 'Enabled'
|
|
||||||
DropDownList = @(
|
|
||||||
[PSCustomObject] @{
|
|
||||||
Name = 'Backup Directory'
|
|
||||||
Value = 'Active Directory'
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
$Result = ConvertTo-XMLGenericPolicy -GPO $GPO -Category 'LAPS', 'System/LAPS*'
|
|
||||||
$Result.ConfigurePasswordBackupDirectory | Should -Be 'Enabled'
|
|
||||||
$Result.ConfigurePasswordBackupDirectoryBackupDirectory | Should -Be 'Active Directory'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# GPOZaurr Website Content
|
|
||||||
|
|
||||||
This folder contains curated source content that the Evotec website imports for the GPOZaurr project page.
|
|
||||||
|
|
||||||
## Layout
|
|
||||||
|
|
||||||
- `content/project-docs/` contains short project documentation pages shown under `/projects/gpozaurr/docs/`.
|
|
||||||
- `content/examples/` contains curated website examples shown under `/projects/gpozaurr/examples/`.
|
|
||||||
- `WebsiteArtifacts/` is generated by `Build/Export-WebsiteArtifacts.ps1` at the repository root and is intentionally ignored by Git.
|
|
||||||
|
|
||||||
## Editing Rules
|
|
||||||
|
|
||||||
- Keep this folder intentional and small.
|
|
||||||
- Do not mirror the raw `Examples/` folder into the public website.
|
|
||||||
- Add only examples that have a clear explanation, a small code sample, and a link back to the original source file.
|
|
||||||
- Keep links rooted at `/projects/gpozaurr/` so the same content works on localhost, `evotec.xyz`, and `evotec.pl`.
|
|
||||||
- Run `Build/Export-WebsiteArtifacts.ps1` when API artifacts need to be refreshed.
|
|
||||||
|
|
||||||
The website pipeline prefers this `Website/content/...` layout over legacy root-level content folders.
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
title: "GPOZaurr Examples"
|
|
||||||
description: "Curated examples for common Group Policy administration and cleanup workflows."
|
|
||||||
layout: docs
|
|
||||||
---
|
|
||||||
|
|
||||||
These GPOZaurr examples focus on practical Group Policy review and backup patterns rather than the full raw example set.
|
|
||||||
|
|
||||||
## Featured examples
|
|
||||||
|
|
||||||
<div class="ev-example-card-grid">
|
|
||||||
<a class="ev-example-card" href="./backup-disabled-or-empty-gpos/">
|
|
||||||
<span class="ev-example-card__eyebrow">Safe cleanup</span>
|
|
||||||
<h3>Back up disabled or empty GPOs</h3>
|
|
||||||
<p>Create a focused backup set before removing stale Group Policy Objects.</p>
|
|
||||||
</a>
|
|
||||||
<a class="ev-example-card" href="./find-group-policy-permission-issues/">
|
|
||||||
<span class="ev-example-card__eyebrow">Permission review</span>
|
|
||||||
<h3>Find Group Policy permission issues</h3>
|
|
||||||
<p>List permission problems that should be reviewed before remediation work starts.</p>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Back up disabled or empty GPOs"
|
|
||||||
description: "Back up selected Group Policy Objects and verify the resulting backup set."
|
|
||||||
layout: docs
|
|
||||||
---
|
|
||||||
|
|
||||||
This example shows a practical starting point for cleaning up or reviewing older Group Policy environments before deeper remediation work.
|
|
||||||
|
|
||||||
It comes from the source example at `Examples/Example-01-BackupGPOs.ps1`.
|
|
||||||
|
|
||||||
## When to use this pattern
|
|
||||||
|
|
||||||
- You want to back up stale or disabled GPOs before any cleanup work.
|
|
||||||
- You need a quick inventory of what was actually exported.
|
|
||||||
- You want a repeatable backup step before broader Group Policy review.
|
|
||||||
|
|
||||||
## Example
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
||||||
|
|
||||||
$GPOSummary = Backup-GPOZaurr `
|
|
||||||
-BackupPath "$Env:UserProfile\Desktop\GPO" `
|
|
||||||
-Verbose `
|
|
||||||
-Type Disabled, Empty `
|
|
||||||
-IncludeDomains 'corp.example.com'
|
|
||||||
|
|
||||||
$GPOSummary | Format-Table -AutoSize
|
|
||||||
|
|
||||||
if ($GPOSummary) {
|
|
||||||
Get-GPOZaurrBackupInformation -BackupFolder $GPOSummary[0].BackupDirectory | Format-Table -AutoSize
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## What this demonstrates
|
|
||||||
|
|
||||||
- targeted GPO backup instead of exporting everything blindly
|
|
||||||
- focusing on disabled or empty policies first
|
|
||||||
- validating the produced backup set after the export
|
|
||||||
|
|
||||||
## Source
|
|
||||||
|
|
||||||
- [Example-01-BackupGPOs.ps1](https://github.com/EvotecIT/GPOZaurr/blob/master/Examples/Example-01-BackupGPOs.ps1)
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Find Group Policy permission issues"
|
|
||||||
description: "Use GPOZaurr to list permission problems that should be reviewed before cleanup or remediation."
|
|
||||||
layout: docs
|
|
||||||
---
|
|
||||||
|
|
||||||
This example is a practical first pass for environments where Group Policy permissions have changed over time and nobody is fully sure what still matches the intended model.
|
|
||||||
|
|
||||||
It comes from the source example at `Examples/Example-08-ListingPermissionIssues.ps1`.
|
|
||||||
|
|
||||||
## When to use this pattern
|
|
||||||
|
|
||||||
- You want to identify GPO permission problems before making changes.
|
|
||||||
- You need evidence for a cleanup or remediation plan.
|
|
||||||
- You want a small, repeatable report that can be reviewed by the directory operations team.
|
|
||||||
|
|
||||||
## Example
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
||||||
|
|
||||||
$Issues = Get-GPOZaurrPermissionIssue
|
|
||||||
$Issues | Format-Table -AutoSize
|
|
||||||
```
|
|
||||||
|
|
||||||
## What this demonstrates
|
|
||||||
|
|
||||||
- separating discovery from remediation
|
|
||||||
- getting a reviewable list of permission issues
|
|
||||||
- creating a safer starting point for Group Policy cleanup
|
|
||||||
|
|
||||||
## Source
|
|
||||||
|
|
||||||
- [Example-08-ListingPermissionIssues.ps1](https://github.com/EvotecIT/GPOZaurr/blob/master/Examples/Example-08-ListingPermissionIssues.ps1)
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user