<?xml version="1.0" encoding="windows-1252"?>
<node id="994284" title="Re: How to execute windows dos command using perl and how to login to another windows machine and execute dos command in that" created="2012-09-18 08:55:18" updated="2012-09-18 08:55:18">
<type id="11">
note</type>
<author id="421013">
fluffyvoidwarrior</author>
<data>
<field name="doctext">
If you have a local windows network connection you can issue remote shell commands&lt;br&gt;&lt;br&gt;

For example we use this to reboot a remote machine&lt;br&gt;
I don't see why you couldn't use perl to issue these commands directly or call a batch file&lt;br&gt;&lt;br&gt;

shutdown /r /m \\wibble-win2003&lt;br&gt;
mstsc -v:wibble-win2003 /F –console&lt;br&gt;&lt;br&gt;

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.
&lt;br&gt;&lt;br&gt;
Note:&lt;br&gt;
Log on to target computer over local network as administrator or it won't reboot cos you don't have permission. </field>
<field name="root_node">
994251</field>
<field name="parent_node">
994251</field>
</data>
</node>
