OneIdentity / safeguard-ps

One Identity Safeguard PowerShell scripting resources
Apache License 2.0
22 stars 27 forks source link

New-SafeguardDynamicAccountGroup cmdlet throws Exception on Powershell 7.3.4 #485

Closed evetovicsm closed 1 year ago

evetovicsm commented 1 year ago

Environment: Powershell: 7.3.4 safeguard-ps: 7.3.103856

Running the command: New-SafeguardDynamicAccountGroup "Linux Servers" "([Platform startswith 'Linux'])" Output: Exception: Conditions string did not parse into three parts [ObjectAttribute CompareType 'CompareValue']: Name match 'root'

Running it Powershell 5.1 produces the expected output(The command executes successfully)

JeffHarkavy commented 1 year ago

@evetovicsm Thank you for using safeguard-ps. I have confirmed this issue using either powershell 7.3.4 and 7.3.5 and will investigate further.

JeffHarkavy commented 1 year ago

Fix released in safeguard-ps v7.4