Re: Script to find which PC a userID is logged into by Pete
Pete
Thu Sep 15 01:12:57 CDT 2005
psloggedon from www.sysinternals.com can do both ways, but if there are a
lot of machines it can take a while.
psloggedon username
psloggedon \\computername
Pete
"Mark" <bigbaddude@nospam.com> wrote in message
news:TG4We.13$Mm.1304@nnrp1.ozemail.com.au...
> Thanks Al
> I'd cobbled together a script that tells me who is logged in to a
> particular
> PC but I was trying to do the opposite.
> Looks like I might have to do something with the output of a net view.
> There must be an easier way to do this.
> Mark
> Aus
>
>
> "Al Dunbar" <AlanNOSPAmDrub@hotmail.com> wrote in message
> news:%23cCcVqPuFHA.4032@TK2MSFTNGP15.phx.gbl...
>>
>> "Mark" <bigbaddude@nospam.com> wrote in message
>> news:UkOVe.178$yD6.1753@nnrp1.ozemail.com.au...
>>> G'day all
>>> I'm looking for a script that will tell me which PC a user is logged in
>>> to.
>>> Any hel - links would be great.
>>
>> WMI can determine who is logged in to a particular PC, and "net view" can
>> give you a list of all workstations currently browsable. There is no such
>> thing as what you want, at least not without examining ALL workstations
>> to list those where the account in question is logged in.
>>
>> /Al
>>
>>
>
>