Re: Finetuning: Remote Shutdown with WMI, some errors occur.
- From: Jason Gurtz <jasonNOgurtz@xxxxxxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 10:06:36 -0500
Joris van der Struijk wrote:
Addon:
Also we would like that a workstation that's locked is also shutdown by this
script. But i have no idea how to accomplice this.
[...]
objOperatingSystem.Win32Shutdown(SHUTDOWN)
Looking at
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_operatingsystem.asp>
I don't see how you could be any more forceful about shutting a machine
down. Maybe test out the shutdown.exe command and see if it can
shutdown a machine even if it's locked (check out the -f flag) You
could then call that from your script instead of the Win32Shutdown
method. I suspect that it probably calls similar methods under the
covers anyway so YMMV.
~Jason
--
.
- References:
- Finetuning: Remote Shutdown with WMI, some errors occur.
- From: Joris van der Struijk
- RE: Finetuning: Remote Shutdown with WMI, some errors occur.
- From: Joris van der Struijk
- Finetuning: Remote Shutdown with WMI, some errors occur.
- Prev by Date: Re: [MSH] `n and extra blank lines
- Next by Date: Need script to add Client for Microsoft Networks & remove NetWare client
- Previous by thread: RE: Finetuning: Remote Shutdown with WMI, some errors occur.
- Next by thread: Re: Finetuning: Remote Shutdown with WMI, some errors occur.
- Index(es):
Relevant Pages
|