This commit is contained in:
Przemyslaw Klys
2020-11-05 22:46:10 +01:00
parent 8790be18bb
commit 731ba420b9
15 changed files with 38 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
function Export-GPOZaurr {
[cmdletBinding()]
param(
)
$Output = [ordered] @{}
foreach ($T in $Script:GPOConfiguration.Keys) {
if ($Script:GPOConfiguration[$T].Enabled -eq $true) {
$Output[$T] = [ordered]@{
Action = $Script:GPOConfiguration[$T].Action
Data = $Script:GPOConfiguration[$T].Data
Summary = $Script:GPOConfiguration[$T].Summary
Variables = $Script:GPOConfiguration[$T].Variables
}
}
}
$Output
}
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrAnalysis = [ordered] @{
Name = 'Group Policy Content'
Enabled = $true
Action = $null
Data = $null
Execute = {
Invoke-GPOZaurrContent
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrConsistency = [ordered] @{
Name = 'GPO Permissions Consistency'
Enabled = $true
Action = $null
Data = $null
Execute = { Get-GPOZaurrPermissionConsistency -Type All -VerifyInheritance }
Processing = {
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrDuplicates = [ordered] @{
Name = 'Duplicate (CNF) Group Policies'
Enabled = $true
Action = $null
Data = $null
Execute = {
Get-GPOZaurrDuplicateObject
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrFiles = [ordered] @{
Name = 'SYSVOL (NetLogon) Files List'
Enabled = $true
Action = $null
Data = $null
Execute = {
Get-GPOZaurrFiles
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrList = [ordered] @{
Name = 'Group Policy Empty & Unlinked'
Enabled = $true
Action = $null
Data = $null
Execute = {
Get-GPOZaurr
@@ -1,6 +1,7 @@
$GPOZaurrNetLogonPermissions = [ordered] @{
Name = 'NetLogon Permissions'
Enabled = $true
Action = $null
Data = $null
Execute = {
Get-GPOZaurrNetLogon
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrOrphans = [ordered] @{
Name = 'Orphaned Group Policies'
Enabled = $true
Action = $null
Data = $null
Execute = {
Get-GPOZaurrBroken
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrOwners = [ordered] @{
Name = 'Group Policy Owners'
Enabled = $true
Action = $null
Data = $null
Execute = { Get-GPOZaurrOwner -IncludeSysvol }
Processing = {
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrPassword = [ordered] @{
Name = 'Group Policy Passwords'
Enabled = $true
Action = $null
Data = $null
Execute = {
Get-GPOZaurrPassword
+1
View File
@@ -1,6 +1,7 @@
$GPOZaurrPermissions = [ordered] @{
Name = 'Group Policy Permissions'
Enabled = $true
Action = $null
Data = $null
Execute = {
Get-GPOZaurrPermission -Type All -IncludePermissionType GpoEditDeleteModifySecurity, GpoEdit, GpoCustom #-IncludeOwner
@@ -1,6 +1,7 @@
$GPOZaurrPermissionsRoot = [ordered] @{
Name = 'Group Policies Root Permissions'
Enabled = $true
Action = $null
Data = $null
Execute = {
Get-GPOZaurrPermissionRoot -SkipNames
@@ -1,6 +1,7 @@
$GPOZaurrSysVolLegacyFiles = [ordered] @{
Name = 'SYSVOL Legacy ADM Files'
Enabled = $false
Action = $null
Data = $null
Execute = {
Get-GPOZaurrLegacyFiles
+1
View File
@@ -1,4 +1,5 @@
function New-GPOZaurrReportConsole {
[cmdletBinding()]
param(
[System.Collections.IDictionary] $Results
)
+7 -1
View File
@@ -3,7 +3,8 @@
[cmdletBinding()]
param(
[string] $FilePath,
[string[]] $Type
[string[]] $Type,
[switch] $PassThru
)
Reset-GPOZaurrStatus # This makes sure types are at it's proper status
@@ -102,6 +103,11 @@
}
}
} -Online -ShowHTML -FilePath $FilePath
if ($PassThru) {
$OutputData = Export-GPOZaurr
$OutputData
}
Reset-GPOZaurrStatus # This makes sure types are at it's proper status
}