use Win32; Win32::InitiateSystemShutdown(...);
For documentation on the parameters see "perldoc Win32".
For rebooting the local machine, you have to enable some privileges. See Win32API::Registry for more details. Update, I only mentioned this last part because the "perldoc Win32" doesn't explain this bit but my Win32API::Registry documentation does and provides code for dealing with it. So I thought it might be important for some readers, even if not for the original noder.
- tye (but my friends call me "Tye")In reply to (tye)Re: NT RPC and Shutdown.
by tye
in thread NT RPC and Shutdown.
by joshi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |