Re: how do I connect to a computer use WMI
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 01/16/05
- Next message: chinn: "Re: Last Password Changed.."
- Previous message: Al Dunbar [MS-MVP]: "Re: Loop with variable changing"
- In reply to: qq6367707: "how do I connect to a computer use WMI"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 16 Jan 2005 20:31:24 +0100
qq6367707 wrote:
> I have the remote computer's administrator Password, but
> I do not know how to write the string
Hi
You can connect with explicit user credentials (e.g. the local
Administrator account on the remote computer), using
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.co.uk/groups?th=2b5bcad76f5debaa
Subject: ImpersoantionLevel other than impersonate
Newsgroups: microsoft.public.scripting.wsh
http://groups.google.co.uk/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: chinn: "Re: Last Password Changed.."
- Previous message: Al Dunbar [MS-MVP]: "Re: Loop with variable changing"
- In reply to: qq6367707: "how do I connect to a computer use WMI"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|