Les,
Thanks for your frequent attention.
I tried \" for all of them, but that does not work.
When using THREE sets of quotes in a batch file, I have found that the most outer set of quotes is the single quote:
' '
The second most inward set is the double quote:
" "
The third (I can't get four to work) is the slash-quote:
\" \"
Anyway, I gave up on cusrmgr and decided to just bear the criticism and change the group name. I suppose I could have done it earlier, but I am really stubborn and hate to submit to a script that refuses to do what I want.
So now the working script is as follows:
Code:
If InGroup ("XXX_RTP_SalesAndMarketing")
$ADDREMOTE1='runas /u:rtp\rtp_domain_service "net localgroup \"Remote Control Operators\" rtp\CropBizRemoteAdmins /add" |sanur /i logon.txt'
Use Z: "$LOGONSRVR\NETLOGON\SANUR"
Go Z:
Shell "%COMSPEC% /C $ADDREMOTE1"
Use Z: /DELETE
EndIf
Thanks again for the help/suggestions.
Best Regards,
-Jeremy