Thanks.
in Powershell
Drop this into a .bat all on one line and schedule it.
powershell -noexit -nologo -noprofile -command "& {(Get-WMIObject -
Computername "COMPUTER" WIN32_OperatingSystem | Where-Object
{$_.Primary}).Shutdown()}"
Use the Task Scheduler to run shutdown.exe at the required time.
More info needed. Did you set up the scheduled task to run as an admin?
Event logs give you any clue? Can you manually run the scheduled task?
FOR /F "skip=1"...
Just make sure to tweak your DSQuery so that you're getting the
computers that you really want to target.
--------------------------------------------
David Hoelzer
Director of Research, Enclave Forensics
http://www.enclaveforensics.com
Incident & Security Response Services
In article <D9377677-7FD9-4E95...@microsoft.com>,