# Windows – Use runas with a domain account on a non-domain machine in Windows 2k/XP/Vista/7

domainrunaswindows

My Windows 7 computer is on LAN in an intranet with a Windows domain, but it is not a member of that domain. However, I need to run some applications under domain accounts while I'm logged on locally as a local admin.

I know you can use the runas utility to start processes under accounts different from the one under which you have logged on. The thing is that Windows needs to know or authenticate the account under which a process is starting.

When I do something like:

runas /user:DOMAIN\USERNAME cmd.exe


(and put in a correct password afterwards) I get this kind of error:

RUNAS ERROR: Unable to run - cmd.exe


Does anybody know how to cope with this?

The runas command has an extra option /netonly that allows running local apps as a domain user, on a non-domain machine. It worked for me when I ran on Windows 7 Professional - but it does require an elevated Command Prompt.
runas /netonly /user:domain\user command