Hi all,

I'm trying to find the vbs script written by MS to allow you to log users
off remote machines using alternative credentials. Does anyone know where I
can find it?

I'm using Windows 2000/XP and I've looked through all the resource kits I
have! I just can't find it anywhere... I beginning the think it doesn't
exist! ;)

Any help is much appreciated.

Re: logoff.vbs by Jerold

Jerold
Fri Jan 28 08:03:50 CST 2005

On Thu, 27 Jan 2005 09:35:02 -0800, Tomski <Tomski@discussions.microsoft.com> wrote:

>Hi all,
>
>I'm trying to find the vbs script written by MS to allow you to log users
>off remote machines using alternative credentials. Does anyone know where I
>can find it?
>
>I'm using Windows 2000/XP and I've looked through all the resource kits I
>have! I just can't find it anywhere... I beginning the think it doesn't
>exist! ;)
>
>Any help is much appreciated.


You can use PsShutdown.exe from tip 4086 in the 'Tips & Tricks' at http://www.jsiinc.com

psshutdown -o \\ComputerName


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com

Re: logoff.vbs by Tomski

Tomski
Fri Jan 28 08:25:03 CST 2005

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.

I want our 1st Line Support to be able to log people off locked machines.
They don't have admin rights, but I can create an account that has, embed it
in the script and then encrypt it.



"Jerold Schulman" wrote:

> On Thu, 27 Jan 2005 09:35:02 -0800, Tomski <Tomski@discussions.microsoft.com> wrote:
>
> >Hi all,
> >
> >I'm trying to find the vbs script written by MS to allow you to log users
> >off remote machines using alternative credentials. Does anyone know where I
> >can find it?
> >
> >I'm using Windows 2000/XP and I've looked through all the resource kits I
> >have! I just can't find it anywhere... I beginning the think it doesn't
> >exist! ;)
> >
> >Any help is much appreciated.
>
>
> You can use PsShutdown.exe from tip 4086 in the 'Tips & Tricks' at http://www.jsiinc.com
>
> psshutdown -o \\ComputerName
>
>
> Jerold Schulman
> Windows Server MVP
> JSI, Inc.
> http://www.jsiinc.com
>

Re: logoff.vbs by Torgeir

Torgeir
Mon Jan 31 18:13:15 CST 2005

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