quote:
the lesson learned is that on the third set of quotes (most internal), you must use \" instead of just
Not quite correct.

The '\"' was a requirement of the runas program as documented above.

Once you have your string defined by single quotes, you can add as many double-quotes as you like.
code:
$ADDGROUP= ' "net" "localgroup" "administrators" "domain\desk techs" '
? $ADDGROUP

_________________________
Home page: http://www.kixhelp.com/hb/