#185524 - 2008-02-21 01:55 AM
Re: Retreiving Username logged in from workstation hoast name
[Re: Indigoseth]
|
lukeod
Getting the hang of it
Registered: 2008-01-11
Posts: 70
Loc: Australia
|
Not sure exactly what you mean - but i know that server 2003 has an inbuilt 'whos logged onto what' (right click my computer --> Manage --> System Tools --> Shared Folders --> Sessions.
It may be possible to pull back this info via WMI or somthing? Not sure if it's possible, but it may be worth seeing if system tools are included in WMI.
Oh, only really works on the Domain Controller as far as i know.
EDIT:
Just found this http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb05/hey0216.mspx
if you were to find the equivilant in KIX and pointed the command @ the domain controller, i think it'd work.
Also, running the command "Net Sessions" from command prompt on the domain controller will list all open sessions. I recall seeing some sort of UDF to get output for commands like this and putting it into an array. I also recall seeing a UDF to run a command as if it were being run on a remote host - smiliar to TELNET, so you could script this to be run remotley if you have sufficent priviliges on the server.
All depends on what you want it for - just displaying it or using the output in code, the description wasn't very... descriptive!
Edited by lukeod (2008-02-21 02:05 AM)
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1077 anonymous users online.
|
|
|