From 047576ff7040a0bd6823eadf0c657a9050a7e17e Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Thu, 16 Jul 2020 23:11:11 +0200 Subject: [PATCH] Updates --- GPOZaurr.psd1 | 2 +- Private/Invoke-GPOTranslation.ps1 | 20 ++------------------ Public/Invoke-GPOZaurr.ps1 | 2 +- 3 files changed, 4 insertions(+), 20 deletions(-) diff --git a/GPOZaurr.psd1 b/GPOZaurr.psd1 index e2c2fb5..d47e647 100644 --- a/GPOZaurr.psd1 +++ b/GPOZaurr.psd1 @@ -4,7 +4,7 @@ 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 easy fixing for issues that you may expect finding 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', 'Get-GPOZaurr', 'Get-GPOZaurrAD', 'Get-GPOZaurrBackupInformation', 'Get-GPOZaurrFiles', 'Get-GPOZaurrFilesPolicyDefinitions', 'Get-GPOZaurrLegacyFiles', 'Get-GPOZaurrLink', 'Get-GPOZaurrLinkSummary', 'Get-GPOZaurrOwner', 'Get-GPOZaurrPassword', 'Get-GPOZaurrPermission', 'Get-GPOZaurrPermissionConsistency', 'Get-GPOZaurrSysvol', 'Get-WMIFilter', 'Get-GPOZaurrWMI', 'Invoke-GPOZaurr', 'Invoke-GPOZaurrPermission', 'New-GPOZaurrWMI', 'Remove-GPOPermission', 'Remove-GPOZaurr', 'Remove-GPOZaurrLegacyFiles', 'Remove-GPOZaurrOrphanedSysvolFolders', 'Remove-GPOZaurrPermission', 'Remove-GPOZaurrWMI', 'Repair-GPOZaurrPermissionConsistency', 'Restore-GPOZaurr', 'Save-GPOZaurrFiles', 'Select-GPOTranslation', 'Set-GPOOwner', 'Set-GPOZaurrOwner' GUID = 'f7d4c9e4-0298-4f51-ad77-e8e3febebbde' ModuleVersion = '0.0.48' diff --git a/Private/Invoke-GPOTranslation.ps1 b/Private/Invoke-GPOTranslation.ps1 index 879cfb5..af7aa63 100644 --- a/Private/Invoke-GPOTranslation.ps1 +++ b/Private/Invoke-GPOTranslation.ps1 @@ -1,4 +1,4 @@ -function Invoke-GPOTranslationOld { +function Invoke-GPOTranslation { [cmdletBinding()] param( [System.Collections.IDictionary] $InputData, @@ -12,20 +12,4 @@ return & $Script:GPODitionary[$Report]['Code'] } } -} - -function Invoke-GPOTranslation { - [cmdletBinding()] - param( - [Array] $InputData, - [string] $Report, - [string] $Category, - [string] $Settings - ) - if ($Category -and $Settings -and $InputData) { - if ($Script:GPODitionary[$Report]['Code']) { - $Script:GPOList = $InputData - return & $Script:GPODitionary[$Report]['Code'] - } - } -} +} \ No newline at end of file diff --git a/Public/Invoke-GPOZaurr.ps1 b/Public/Invoke-GPOZaurr.ps1 index 3de959e..58ada4e 100644 --- a/Public/Invoke-GPOZaurr.ps1 +++ b/Public/Invoke-GPOZaurr.ps1 @@ -181,7 +181,7 @@ # if (-not $TranslatedOutput[$Category][$Settings]) { # $TranslatedOutput[$Category][$Settings] = [ordered] @{} # } - $TranslatedOutput[$Report] = Invoke-GPOTranslationOld -InputData $Output -Category $Category -Settings $Settings -Report $Report + $TranslatedOutput[$Report] = Invoke-GPOTranslation -InputData $Output -Category $Category -Settings $Settings -Report $Report #} } if ($OutputType -contains 'Object') {