Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How to execute windows dos command using perl and how to login to another windows machine and execute dos command in that

by fluffyvoidwarrior (Monk)
on Sep 18, 2012 at 12:55 UTC ( #994284=note: print w/ replies, xml ) Need Help??


in reply to How to execute windows dos command using perl and how to login to another windows machine and execute dos command in that

If you have a local windows network connection you can issue remote shell commands

For example we use this to reboot a remote machine
I don't see why you couldn't use perl to issue these commands directly or call a batch file

shutdown /r /m \\wibble-win2003
mstsc -v:wibble-win2003 /F –console

Checkout the windows command reference, it's a very good resource for windows shell scripting. I don't know if it comes with non-server versions but it's downloadable from microsoft.

Note:
Log on to target computer over local network as administrator or it won't reboot cos you don't have permission.


Comment on Re: How to execute windows dos command using perl and how to login to another windows machine and execute dos command in that

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994284]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-09-24 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (246 votes), past polls