Remote call script as administrator

Posted by drupality on Server Fault See other posts from Server Fault or by drupality
Published on 2012-04-27T15:08:01Z Indexed on 2012/08/30 3:40 UTC
Read the original article Hit count: 498

Filed under:
|
|
|

I created a Windows XP bat script to modify etc/hosts file.

I want to share this script at other machine, then from another computer I want to invoke these script to modify hosts file at first computer (via LAN).

I need some example. I didn't find any example. Is this possible?

I try:

runas/user:username block.bat

On the same machine login as guest but it doesn't work. No errors just "Attempting to call block.bat" and end of invocation. As admin script works ok.

Could someone give me any advice?

© Server Fault or respective owner

Related posts about Windows

Related posts about bash