-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Let's see if we can support Windows computers for shutdown/reboot. It seems that on Linux-based systems Samba knows how to talk to Windows, i.e. net rpc shutdown -I ip.address -U user%password.
I found MS-RSP (remote shutdown protocol) protocol, which describes shutdown commands. It's interface UUID (338CD001-2244-31F1-AAAA-900038001003) is the same as MS-RRP (Windows remote registry protocol).
GitHub has Windows 2000 source code. One may have a look at the code of shutdown.c.
Interesting links, phrases, e.t.c.:
InitiateSystemShutdown,BaseInitiateShutdown,WsdrInitiateShutdown.- Calling RPC functions over SMB
- Windows shutdown command.
- Samba source code,
net_rpc.cfunctionrpc_init_shutdown_internals. - List of MS protocols.