Need Help with adding users to a localgroup

Any ideas why this script will not add the users to the local group? Thanks!

action parameter query “UserID” with description “Enter The Remote User ID”

waithidden net localgroup “Remote Desktop Users” Domain"{parameter “UserID” of action}" /add

try:

RunDetached {pathname of system folder}\net.exe localgroup "Remote Desktop Users" "{parameter "UserID" of action}" /add
1 Like

That seems to be completing at least, but it is still not adding the user into the group

I figured it out. Removing the domain option seems to be working