
Ever need to reboot or shutdown a Windows machine on your network, from your Linux workstation.
No problem.
apt-get install samba-common package
or
yum install samba-common package
net rpc shutdown -I ipAddressOfWindowsPC -U username%password
or
yum install samba-common package
net rpc shutdown -I ipAddressOfWindowsPC -U username%password
This will issue a shutdown command to the Windows machine. username must be an administrator on the Windows machine.
Other commands are:
net rpc shutdown -r : reboot the Windows machine
net rpc abortshutdown : abort shutdown of the Windows machine
Type:
net rpc
to show all commands
No comments:
Post a Comment