#1 09 Feb 2006 11:35

flox
Member
From: Marseille, France
Registered: 09 Feb 2006
Posts: 1

RUNAS works differently between W2K and WXP

Hello,

Command RUNAS do not return the same "errorlevel" in W2K and WXP.

In W2K:
- if authentication succeeds: %ERRORLEVEL%=1
- if authentication fails: %ERRORLEVEL%=0

In WXP:
- if authentication succeeds: %ERRORLEVEL%=0
- if authentication fails: %ERRORLEVEL%=1

You can update the documentation to underline this difference.

Now, I should find a way to decide if it is WXP or W2K in my script.
Bye,

--
Florent

Offline

#2 10 Feb 2006 13:17

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,011
Website

Re: RUNAS works differently between W2K and WXP

Thanks for that info - now added to the page

Offline

Board footer

Powered by FluxBB