runas command in windows 7

Posted by iva123 on Stack Overflow See other posts from Stack Overflow or by iva123
Published on 2010-05-24T10:21:47Z Indexed on 2010/05/24 10:31 UTC
Read the original article Hit count: 392

Filed under:
|
|
|

Hi,

I'm trying to run a batch file as admin. I found that I can use runas command which corresponds sudo command in Linux I think.

I tried

runas /noprofile /user:computername\adminuser "blah.bat start"

But it gives an error, saying :

Logon failure: user account restriction.. (msdos window doesn't allow me to coppy damn thing I hate dos anyway .. ) is there anyway, I can run this batch file as admin, right click doesn't work me because I can't give any parameter to it.

Any help, I really really apreciated that.

© Stack Overflow or respective owner

Related posts about windows-7

Related posts about batch