diff --git a/Private/ConvertTo-LocalUserAndGroups.ps1 b/Private/ConvertTo-LocalUserAndGroups.ps1 index 67c0cf8..f8798b6 100644 --- a/Private/ConvertTo-LocalUserAndGroups.ps1 +++ b/Private/ConvertTo-LocalUserAndGroups.ps1 @@ -14,7 +14,7 @@ GpoSettings = $GPOEntry.GpoSettings #: SecurityOptions Changed = [DateTime] $User.Changed GPOSettingOrder = $User.GPOSettingOrder - UserAction = $User.Properties.action #: U + UserAction = $Script:Actions["$($User.Properties.action)"] #: U UserNewName = $User.Properties.newName #: UserFullName = $User.Properties.fullName #: UserDescription = $User.Properties.description #: @@ -67,7 +67,7 @@ #Properties = $Group.Properties #: Properties: Properties Filters = $Group.Filters #:: - GroupAction = $Group.Properties.action #: U + GroupAction = $Script:Actions["$($Group.Properties.action)"] #: U GroupNewName = $Group.Properties.newName #: GroupDescription = $Group.Properties.description #: GroupDeleteAllUsers = $Group.Properties.deleteAllUsers #: 0 diff --git a/Private/Script.Actions.ps1 b/Private/Script.Actions.ps1 new file mode 100644 index 0000000..96d07ee --- /dev/null +++ b/Private/Script.Actions.ps1 @@ -0,0 +1,6 @@ +$Script:Actions = @{ + C = 'Create' + D = 'Delete' + U = 'Update' + R = 'Replace' +} \ No newline at end of file