Sorry, my bad. Did not notice that

It could be that the macro and the variable are not expanded to the actual value they hold because they are inside quotes.

Maybe something like this would work better (did not test it)
 Code:
SHELL $runaspath + ' /user:' + @wksta + '\Administrator ' + $server + ' /pass:XXXXXX'


Edited by Mart (2008-09-11 03:51 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.