Remote call script as administrator
- by drupality
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?