Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: ADSI COM Enumerate List Connected User Sessions
It gives me what I need, but I would prefer a native Winbatch function. Is this possible?
;*************************************************************************** ;** ;** Use ADSI COM to enumerate the connected users and ;** how to define the computer from which they are connecting. ;** ;*************************************************************************** ; Replace DOMAIN & SERVER with the appropriate domain and server names Domain = "www" SERVER = "serv909" adsFSOps = ObjectGet("WinNT://":DOMAIN:"/":SERVER:"/lanmanserver") ; Enumerate sessions adsSessions = adsFSOps.Sessions ForEach adsSession In adsSessions Pause( "Sessions", "User: " : adsSession.User : @LF :"Computer: " : adsSession.Computer ) Next ; Clean up adsFSOps = 0 Exit
Article ID: W18048
Filename: ADSI COM Example - List Connected Sessions.txt
File Created: 2009:10:08:09:52:50
Last Updated: 2009:10:08:09:52:50