Re: WMI Problem

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 07/15/04


Date: Thu, 15 Jul 2004 12:44:10 +0200

Gordon Price wrote:

> Torgeir,
> thanks for all the help today. So while I am banging my head on WMI, is
> there a way to query the domain for all machines currently logged on, or
> better yet all machines whose names start with 'WKS_' that arelogged on? I
> want to do a script that will log off all workstations, but not the servers,
> and I would just as soon not waste time trying to log off machines that
> aren't logged on (as in using a static list of machine names).
>
> Is that an easy one, or more involved?
Hi

Sorry, there is no easy way to determine who is logged on
domain wide...

-- 
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/community/scriptcenter/default.mspx


Relevant Pages

  • Re: security center
    ... but you can query the PC's via WMI (Windows Management Instrumentation) scripting. ... The below script is for the local computer, and would need to be modified to determine all PC's on your network/domain and then query each computer individually and report when there is a problem. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: WMI & ADSI
    ... > WMI to query the domain role of each computer object. ... -- 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)
  • Re: Remote WMI problem...Permission Denied:getobject
    ... >I am a scripting newbie. ... Tried adjusting rights in WMI ... > resources back and forth from both machines. ... I have no experience in the workgroup environment, ...
    (microsoft.public.scripting.vbscript)
  • Re: Sort results from ExchangeV2
    ... the mailbox. ... I can get the query to return only mailboxes larger than the set size, but if I request the collection sorted it becomes empty. ... SQL for WMI ... 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. ...
    (microsoft.public.scripting.vbscript)
  • Re: Order By in Query
    ... of WMI for Exchange ... Exchange_Mailbox Order By MailboxDisplayName", ... I get an error for the above query ... 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