From 825f9fda4200376f63c8e222ed8643dc4028116c Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Thu, 13 Aug 2020 00:01:19 +0200 Subject: [PATCH] Update --- Examples/Example-30-FindPolicyDefinitions.ps1 | 2 +- Examples/Example-34-GPOSupport.ps1 | 14 ++++++++++++++ GPOZaurr.psd1 | 4 ++-- README.md | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 Examples/Example-34-GPOSupport.ps1 diff --git a/Examples/Example-30-FindPolicyDefinitions.ps1 b/Examples/Example-30-FindPolicyDefinitions.ps1 index c5cb68f..c318282 100644 --- a/Examples/Example-30-FindPolicyDefinitions.ps1 +++ b/Examples/Example-30-FindPolicyDefinitions.ps1 @@ -1,6 +1,6 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -$Policies = Get-GPOZaurrFilesPolicyDefinitions -Signature +$Policies = Get-GPOZaurrFilesPolicyDefinition -Signature $Policies | Format-Table #$Policies.FilesToDelete | Format-Table * $Policies['ad.evotec.xyz'] | Format-Table * \ No newline at end of file diff --git a/Examples/Example-34-GPOSupport.ps1 b/Examples/Example-34-GPOSupport.ps1 new file mode 100644 index 0000000..d223df2 --- /dev/null +++ b/Examples/Example-34-GPOSupport.ps1 @@ -0,0 +1,14 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force +<# +[xml] $Test1 = -join ('
', $Support.ComputerResults.EventsByID.'5312'.GPOinfoList, '
') +[xml] $Test2 = -join ('
', $Support.ComputerResults.EventsByID.'5313'.GPOinfoList, '
') +$Test1 +$Test2 +#> + +#$Support = Invoke-GPOZaurrSupport -ComputerName 'AD2' -UserName 'przemyslaw.klys' -Type Object + + +Invoke-GPOZaurrSupport -ComputerName 'AD2' -UserName 'przemyslaw.klys' -Type HTML +#$Support +# $Support.ComputerResults.GPO | select name, @{LABEL=”LinkOrder“;EXPRESSION={$_.link.linkorder}} | sort linkorder diff --git a/GPOZaurr.psd1 b/GPOZaurr.psd1 index 162232f..36fb34a 100644 --- a/GPOZaurr.psd1 +++ b/GPOZaurr.psd1 @@ -1,11 +1,11 @@ @{ - AliasesToExport = 'Find-GPO' + AliasesToExport = 'Get-GPOZaurrFilesPolicyDefinitions', 'Find-GPO' Author = 'Przemyslaw Klys' CompanyName = 'Evotec' CompatiblePSEditions = 'Desktop' Copyright = '(c) 2011 - 2020 Przemyslaw Klys @ Evotec. All rights reserved.' Description = 'Group Policy Eater is a PowerShell module that aims to gather information about Group Policies but also allows fixing issues that you may find in them.' - FunctionsToExport = 'Add-GPOPermission', 'Add-GPOZaurrPermission', 'Backup-GPOZaurr', 'Clear-GPOZaurrSysvolDFSR', 'Get-GPOZaurr', 'Get-GPOZaurrAD', 'Get-GPOZaurrBackupInformation', 'Get-GPOZaurrDictionary', 'Get-GPOZaurrFiles', 'Get-GPOZaurrFilesPolicyDefinitions', 'Get-GPOZaurrFolders', 'Get-GPOZaurrLegacyFiles', 'Get-GPOZaurrLink', 'Get-GPOZaurrLinkSummary', 'Get-GPOZaurrOwner', 'Get-GPOZaurrPassword', 'Get-GPOZaurrPermission', 'Get-GPOZaurrPermissionConsistency', 'Get-GPOZaurrSysvol', 'Get-GPOZaurrSysvolDFSR', 'Get-GPOZaurrWMI', 'Invoke-GPOZaurr', 'Invoke-GPOZaurrPermission', 'Invoke-GPOZaurrSupport', 'New-GPOZaurrWMI', 'Remove-GPOPermission', 'Remove-GPOZaurr', 'Remove-GPOZaurrFolders', 'Remove-GPOZaurrLegacyFiles', 'Remove-GPOZaurrOrphanedSysvolFolders', 'Remove-GPOZaurrPermission', 'Remove-GPOZaurrWMI', 'Repair-GPOZaurrPermissionConsistency', 'Restore-GPOZaurr', 'Save-GPOZaurrFiles', 'Set-GPOOwner', 'Set-GPOZaurrOwner' + FunctionsToExport = 'Add-GPOPermission', 'Add-GPOZaurrPermission', 'Backup-GPOZaurr', 'Clear-GPOZaurrSysvolDFSR', 'Get-GPOZaurr', 'Get-GPOZaurrAD', 'Get-GPOZaurrBackupInformation', 'Get-GPOZaurrDictionary', 'Get-GPOZaurrFiles', 'Get-GPOZaurrFilesPolicyDefinition', 'Get-GPOZaurrFolders', 'Get-GPOZaurrLegacyFiles', 'Get-GPOZaurrLink', 'Get-GPOZaurrLinkSummary', 'Get-GPOZaurrOwner', 'Get-GPOZaurrPassword', 'Get-GPOZaurrPermission', 'Get-GPOZaurrPermissionConsistency', 'Get-GPOZaurrSysvol', 'Get-GPOZaurrSysvolDFSR', 'Get-GPOZaurrWMI', 'Invoke-GPOZaurr', 'Invoke-GPOZaurrPermission', 'Invoke-GPOZaurrSupport', 'New-GPOZaurrWMI', 'Remove-GPOPermission', 'Remove-GPOZaurr', 'Remove-GPOZaurrFolders', 'Remove-GPOZaurrLegacyFiles', 'Remove-GPOZaurrOrphanedSysvolFolders', 'Remove-GPOZaurrPermission', 'Remove-GPOZaurrWMI', 'Repair-GPOZaurrPermissionConsistency', 'Restore-GPOZaurr', 'Save-GPOZaurrFiles', 'Set-GPOOwner', 'Set-GPOZaurrOwner' GUID = 'f7d4c9e4-0298-4f51-ad77-e8e3febebbde' ModuleVersion = '0.0.52' PowerShellVersion = '5.1' diff --git a/README.md b/README.md index ecdc11b..9df9389 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ That's it. Whenever there's a new version, you run the command, and you can enjo - 0.0.49 - 23.07.2020 - Hidden files were skipped - and people do crazy things with them - 0.0.48 - 21.07.2020 - - Added `Get-GPOZaurrFilesPolicyDefinitions` + - Added `Get-GPOZaurrFilesPolicyDefinition` - Updates to `Invoke-GPOZaurr` - still work in progress - Updates to `Get-GPOZaurrFiles` - still work in progress - Updates to `Remove-GPOZaurrOrphanedSysvolFolders` with backup and support for domains