[Samba] A way to shut down workstation

Jim McDonough jmcdsmb at maine.rr.com
Tue Jan 21 00:59:01 GMT 2003


On Mon, 2003-01-20 at 19:33, Zoran Ovcin wrote:
>> net rpc shutdown -S <machine name>
...
> I do not get it: who shuts down who?
...
> Is there a command that can be sent to a w2k workstation to shutdown? 
> Can samba give that command?
net rpc shutdown -S <machine name>
shuts down the remote machine (workstation or server) called <machine
name>

You must authenticate it with a user that is known on the remote
machine.  So something like:
net rpc shutdown -S <domain member> -U DOMAIN\Administrator%adminpw

should do it.




More information about the samba mailing list