Re: logoff.vbs

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 02/01/05


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


Relevant Pages

  • Re: managing shared folders with wsh
    ... The WMI option is exactly what I was looking for. ... >> I can't set permissions on the share. ... > Local or remote directories ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.wsh)
  • Re: script registry editing
    ... > of remote machines. ... WMI and it's StdRegProv class: ... Documentation in regobj.doc and a remote registry example in registry.vbs ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windows.server.scripting)
  • Re: Executing Class on remote machine
    ... > fine BUT the problem is ..it doesnt connect to remote ... > me that this method or property doesnt exist. ... Subject: ImpersoantionLevel other than impersonate ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.windows.server.scripting)
  • Re: Windows Management Instrumentation
    ... WMI is a DCOM application, and you should do the lockdown on the DCOM side ... Securing Remote Management with WMI ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.security)
  • Re: Win32_QFE and domain auth question
    ... > I just don't know a way to add in authenication credentials... ... For WMI, you can connect connect with explicit user credentials ... Subject: ImpersoantionLevel other than impersonate ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.win32.programmer.wmi)

Quantcast