

- #Shutdown a remoter windows computer in linux install
- #Shutdown a remoter windows computer in linux full
#Shutdown a remoter windows computer in linux full
r Full shutdown and restart (reboot) the computer. On the next boot, restart any registered applications. c Print comment to screen of computer before rebooting or shutting down. '-U user%password' is the local user and his password on the windows machine (the one that has been alloed to do remote shutdown in point A). /m \\computer Specify the target computer. '-t 0' is the delay before doing it (0 means 'right now'). '-f' means 'force' the shutdown (I think it's mandatory) Net rpc shutdown -f -t 0 -C 'message' -U userName%password -I ), the apt-get command can be executed like that:Ģ) To actually shutdown your windowsmachine from the linux one, run the following command: It depends on your linux distribution, but for Debian and derivated (Ubuntu, Linux Mint.

In the program tree, open "Security Settings / Local Policies / User rights Assignment"įind the entry “Force shutdown from a remote system”Įdit the entry, add the CONCRETE user that will be used for shutdown (ex: nouknouk)įind HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/SystemĬreate a new registry DWORD(32) value named "LocalAccountTokenFilterPolicy" and then assign it the value '1' RPC is the way, but there is may be more setup to do, especially for Windows Vista, Windows 7 and further windows versions, to allow remote shutdown: To recap, the shutdown command is used for. Based on the appropriate command parameters for the shutdown command, we’ll therefore type the following into our Notepad document: shutdown -r -f -t 0. Is a program that runs as a service, with local (or domain) Administrator privileges, listening on a port, for a SSL-encrypted, RESTful API call like, Do I need to write something in C#.net, or is there a tool out there for cross-platform triggering of a shutdown of a windows workstation? In our example, we want our batch file to reboot our remote PC, force all open applications to close, and reboot immediately without a time delay.
#Shutdown a remoter windows computer in linux install
I gather one option is to install Cygwin, and OpenSSH, but frankly, that seems bulky. I suppose it's not impossible to have a windows server trigger the workstation shutdown procedure, but that's not ideal. So, I've looked at psexec, which is almost ideal, except only seems triggerable from another windows machine. If you use -h and -H together, the -H option takes priority. The -h (halt and poweroff) option is the same as -P. The -r (reboot) option will take your computer down to the halt state and then restart it. The word "emergency" is in quotes because it's not really an emergency, but still need a mechanism other than simply telling the users to turn the workstations off. The computer is brought down to the halt state and is then powered off. I have a system comprised of, let's say 10 Windows 7 Professional workstations, joined to a domain.Īs part of an "emergency" system shutdown procedure, I'd like a mechanism of triggering a remote shutdown, from a Linux controller (which is in turn, a service orchestration tool).
