Re: Remote shutdown of a win2K pro machine
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 08/11/04
- Next message: Håvard Olerud Eriksen: "Re: Reading registry values of external hosts?"
- Previous message: DL: "Re: Windows 2000 Backup & Restore"
- In reply to: Richard: "Remote shutdown of a win2K pro machine"
- Next in thread: RoryD: "Re: Remote shutdown of a win2K pro machine"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 11 Aug 2004 12:08:16 +0200
Richard wrote:
> Is it possible to remotely shutdown a machine running win2K pro using any
> facilites in win2k pro rather than using PSShutdown from sysinternals.
Hi
With VBScript/WMI:
http://groups.google.com/groups?selm=OLQkdMaTEHA.1988%40TK2MSFTNGP12.phx.gbl
If you need to connect with explicit user credentials, use
SWbemLocator.ConnectServer instead of GetObject("winmgmts:...")
IWbemLocator::ConnectServer
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/iwbemlocator_connectserver.asp
Subject: Login with explicit username and password
Newsgroups: microsoft.public.win32.programmer.wmi
http://groups.google.com/groups?th=2b5bcad76f5debaa
Subject: ImpersoantionLevel other than impersonate
Newsgroups: microsoft.public.scripting.wsh
http://groups.google.com/groups?th=89ff50603f12dcfb
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx
- Next message: Håvard Olerud Eriksen: "Re: Reading registry values of external hosts?"
- Previous message: DL: "Re: Windows 2000 Backup & Restore"
- In reply to: Richard: "Remote shutdown of a win2K pro machine"
- Next in thread: RoryD: "Re: Remote shutdown of a win2K pro machine"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|