mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-09-01 13:18:03 +00:00
Lithnet update, but most likely to remove
This commit is contained in:
@@ -73,14 +73,14 @@ function ConvertTo-XMLLithnetFilter {
|
|||||||
$UsedNames = [System.Collections.Generic.List[string]]::new()
|
$UsedNames = [System.Collections.Generic.List[string]]::new()
|
||||||
if ($GPO.DataSet.Category -like 'Lithnet/Password Protection for Active Directory*') {
|
if ($GPO.DataSet.Category -like 'Lithnet/Password Protection for Active Directory*') {
|
||||||
foreach ($Policy in $GPO.DataSet) {
|
foreach ($Policy in $GPO.DataSet) {
|
||||||
$Name = Format-ToTitleCase -Text $Policy.Name -RemoveWhiteSpace -RemoveChars ',', '-', "'", '\(', '\)', ':'
|
$Name = Format-ToTitleCase -Text $Policy.Name -RemoveWhiteSpace -RemoveChar ',', '-', "'", '\(', '\)', ':'
|
||||||
$CreateGPO[$Name] = $Policy.State
|
$CreateGPO[$Name] = $Policy.State
|
||||||
|
|
||||||
foreach ($Setting in @('DropDownList', 'Numeric', 'EditText', 'Text', 'CheckBox')) {
|
foreach ($Setting in @('DropDownList', 'Numeric', 'EditText', 'Text', 'CheckBox')) {
|
||||||
if ($Policy.$Setting) {
|
if ($Policy.$Setting) {
|
||||||
foreach ($Value in $Policy.$Setting) {
|
foreach ($Value in $Policy.$Setting) {
|
||||||
if ($Value.Name) {
|
if ($Value.Name) {
|
||||||
$SubName = Format-ToTitleCase -Text $Value.Name -RemoveWhiteSpace -RemoveChars ',', '-', "'", '\(', '\)', ':'
|
$SubName = Format-ToTitleCase -Text $Value.Name -RemoveWhiteSpace -RemoveChar ',', '-', "'", '\(', '\)', ':'
|
||||||
$SubName = -join ($Name, $SubName)
|
$SubName = -join ($Name, $SubName)
|
||||||
if ($SubName -notin $UsedNames) {
|
if ($SubName -notin $UsedNames) {
|
||||||
$UsedNames.Add($SubName)
|
$UsedNames.Add($SubName)
|
||||||
|
|||||||
Reference in New Issue
Block a user