Re: logoff.vbs
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 02/01/05
- Next message: Torgeir Bakken \(MVP\): "Re: Arguments through wsf to vbs"
- Previous message: Torgeir Bakken \(MVP\): "Re: ftp subdirectory,"
- In reply to: Tomski: "Re: logoff.vbs"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 01 Feb 2005 01:13:15 +0100
Tomski wrote:
> Hi Jerold, thanks for the reply.
>
> I'm trying to keep third party tools out of the procedure if possible.
>
> I can log people off remote workstations using WMI, but the script I'm
> looking for in particular allows you to provide credentials so the task could
> be run with higher privileges on the remote system.
Hi
Using WMI, 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: Torgeir Bakken \(MVP\): "Re: Arguments through wsf to vbs"
- Previous message: Torgeir Bakken \(MVP\): "Re: ftp subdirectory,"
- In reply to: Tomski: "Re: logoff.vbs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|