mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-12 19:57:34 +00:00
30 lines
1.3 KiB
PowerShell
30 lines
1.3 KiB
PowerShell
function ConvertTo-Policies {
|
|
[cmdletBinding()]
|
|
param(
|
|
[Array] $GPOList
|
|
)
|
|
foreach ($GPOEntry in $GPOList) {
|
|
$CreateGPO = [ordered]@{
|
|
DisplayName = $GPOEntry.DisplayName #: WO_SEC_NTLM_Auth_Level
|
|
DomainName = $GPOEntry.DomainName #: area1.local
|
|
GUID = $GPOEntry.GUID #: 364B095E-C7BF-4CC1-9BFA-393BD38975E5
|
|
GpoType = $GPOEntry.GpoType #: Computer
|
|
GpoCategory = $GPOEntry.GpoCategory #: SecuritySettings
|
|
GpoSettings = $GPOEntry.GpoSettings #: SecurityOptions
|
|
PolicyName = $GPOEntry.Name
|
|
PolicyState = $GPOEntry.State
|
|
PolicyCategory = $GPOEntry.Category
|
|
PolicySupported = $GPOEntry.Supported
|
|
PolicyExplain = $GPOEntry.Explain
|
|
PolicyText = $GPOEntry.Text
|
|
PolicyCheckBox = $GPOEntry.CheckBox
|
|
PolicyDropDownList = $GPOEntry.DropDownList
|
|
PolicyEditText = $GPOEntry.EditText
|
|
}
|
|
$CreateGPO['Linked'] = $GPOEntry.Linked #: True
|
|
$CreateGPO['LinksCount'] = $GPOEntry.LinksCount #: 1
|
|
$CreateGPO['Links'] = $GPOEntry.Links #: area1.local
|
|
[PSCustomObject] $CreateGPO
|
|
|
|
}
|
|
} |