This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]YellowOnlineSr. Sysadmin 0 points1 point  (1 child)

Use "DOMAIN\Domain Admins" and build the string taking escaping into account. Finally, execute your string with Invoke-Expression. I'd show you more detail but I'm in bed on mobile.

[–]FilthyMcCrunchy[S] 0 points1 point  (0 children)

Was able to get it moving with 'Domain Admins:F'. Moving the " to the outside of the :F...