mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-08 01:43:12 +00:00
New command Get-GPOZaurrDictionary
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
function Get-GPOZaurrDictionary {
|
||||
[cmdletBinding()]
|
||||
param(
|
||||
[string] $Splitter = [System.Environment]::NewLine
|
||||
)
|
||||
foreach ($Policy in $Script:GPODitionary.Keys) {
|
||||
|
||||
if ($Script:GPODitionary[$Policy].ByReports) {
|
||||
[Array] $Type = foreach ($T in $Script:GPODitionary[$Policy].ByReports ) {
|
||||
$T.Report
|
||||
}
|
||||
|
||||
} else {
|
||||
[Array]$Type = foreach ($T in $Script:GPODitionary[$Policy].Types) {
|
||||
( -join ($T.Category, '/', $T.Settings))
|
||||
}
|
||||
}
|
||||
|
||||
[PSCustomObject] @{
|
||||
Name = $Policy
|
||||
Types = $Type -join $Splitter
|
||||
Path = $Script:GPODitionary[$Policy].GPOPath -join $Splitter
|
||||
#Details = $Script:GPODitionary[$Policy]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user