Just a little Windows remote admin nugget …
If you have File/Printer sharing enabled in a windows PC, you can shut it down or restart it from a Linux PC on the network using the following:
net rpc shutdown -I IPADDRESS -U USERNAME%PASSWORD
You’ll need the samba-common
package for the net
command, and the user being supplied will need admin privileges.