Guest console1 Posted September 8, 2007 Posted September 8, 2007 hi everyone, is there a way (script or rk tool) to find out what machine a user is logged on too in the domain? I have user domain\user and I want to find out the name of the machine that user is logged on. ? thanks
Guest Lanwench [MVP - Exchange] Posted September 8, 2007 Posted September 8, 2007 Re: find user logon machine console1 <console1@nospam.console1.org> wrote: > hi everyone, > > is there a way (script or rk tool) to find out what machine a user is > logged on too in the domain? > > I have user domain\user and I want to find out the name of the machine > that user is logged on. > > ? > > thanks From a DC - net session (in a command prompt) or look at computer management | system tools | shared folders | sessions.
Guest Pegasus \(MVP\) Posted September 8, 2007 Posted September 8, 2007 Re: find user logon machine "console1" <console1@nospam.console1.org> wrote in message news:fbu9p5$sce$1@aioe.org... > hi everyone, > > is there a way (script or rk tool) to find out what machine a user is > logged on too in the domain? > > I have user domain\user and I want to find out the name of the machine > that user is logged on. > > ? > > thanks You could use psloggedon.exe (http://www.sysinternals.exe) to interrogate each machine in your network until you find your user. An easier way is to insert this line of code into your logon script so that you can examine the logon log file: echo %date% %time% %UserName% %ComputerName% \\YourServer\SomeShare\logon.log This works well up to about 20 users. Above this number you're likely to get sharing violations.
Guest Richard Mueller [MVP] Posted September 8, 2007 Posted September 8, 2007 Re: find user logon machine "Pegasus (MVP)" <I.can@fly.com> wrote in message news:%23xVNzgi8HHA.5980@TK2MSFTNGP04.phx.gbl... > > "console1" <console1@nospam.console1.org> wrote in message > news:fbu9p5$sce$1@aioe.org... >> hi everyone, >> >> is there a way (script or rk tool) to find out what machine a user is >> logged on too in the domain? >> >> I have user domain\user and I want to find out the name of the machine >> that user is logged on. >> >> ? >> >> thanks > > You could use psloggedon.exe (http://www.sysinternals.exe) to > interrogate each machine in your network until you find > your user. > > An easier way is to insert this line of code into your logon > script so that you can examine the logon log file: > echo %date% %time% %UserName% %ComputerName% > \\YourServer\SomeShare\logon.log > > This works well up to about 20 users. Above this number > you're likely to get sharing violations. > I have an example VBScript logon script that does something similar: http://www.rlmueller.net/Logon5.htm To avoid sharing violations, it makes 3 attempts to append to the file with a slight pause between each attempt. For analysis I copy the log file and read into a spreadsheet program. -- Richard Mueller Microsoft MVP Scripting and ADSI Hilltop Lab - http://www.rlmueller.net --
Guest Pegasus \(MVP\) Posted September 8, 2007 Posted September 8, 2007 Re: find user logon machine "Richard Mueller [MVP]" <rlmueller-nospam@ameritech.nospam.net> wrote in message news:OJJKnJj8HHA.1188@TK2MSFTNGP04.phx.gbl... > > "Pegasus (MVP)" <I.can@fly.com> wrote in message > news:%23xVNzgi8HHA.5980@TK2MSFTNGP04.phx.gbl... >> >> "console1" <console1@nospam.console1.org> wrote in message >> news:fbu9p5$sce$1@aioe.org... >>> hi everyone, >>> >>> is there a way (script or rk tool) to find out what machine a user is >>> logged on too in the domain? >>> >>> I have user domain\user and I want to find out the name of the machine >>> that user is logged on. >>> >>> ? >>> >>> thanks >> >> You could use psloggedon.exe (http://www.sysinternals.exe) to >> interrogate each machine in your network until you find >> your user. >> >> An easier way is to insert this line of code into your logon >> script so that you can examine the logon log file: >> echo %date% %time% %UserName% %ComputerName% >> \\YourServer\SomeShare\logon.log >> >> This works well up to about 20 users. Above this number >> you're likely to get sharing violations. >> > > I have an example VBScript logon script that does something similar: > > http://www.rlmueller.net/Logon5.htm > > To avoid sharing violations, it makes 3 attempts to append to the file > with a slight pause between each attempt. For analysis I copy the log file > and read into a spreadsheet program. > > -- > Richard Mueller > Microsoft MVP Scripting and ADSI > Hilltop Lab - http://www.rlmueller.net > -- Good idea!
Recommended Posts