Use psexec.exe (
www.sysinternals.com) to run commands on
a remote machine:
psexec \\pc1 net user | find /i "JohnBlack"
psexec \\pc1 c:\tool\psloggedon | find /i "JohnBlack"
The first command will find you if John Black has an account
on PC1. The second command will tell you if he is currently
logged on. psloggedon.exe is another SysInternals tool.
"Shafeeq_lshtm" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Pegasus,
> Thanks for the response. All I want to know is whether the given username
> exists on the remote machine while he is not logged in.(I figured that
> nbtstat -A could reveal the logged in user)
> Thanks again for clarifying.
>
> Cheers,
> Shaffeq M.
>
> PS: This remote machine happens to be our dial-in server so when someone
> wants to subscribe I need to check if his username already exists there.
>
> "Pegasus (MVP)" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > "Shafeeq_lshtm" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > Hi All,
> > > I was wondering whether it is possible to check if a particular
username
> > > exists on a remote machine given the machine's IP address.
> > >
> > > (something like : Net user dude100 //192.68.251.8)
> > >
> > > TIA,
> > > Shafeeq M.
> > >
> > >
> >
> > Do you mean
> > - If the account "dude" exists on the remote machine, or
> > - If user "dude" is logged on at the remote machine?
> >
> >
> >
>
>