Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Logon Session InformationContent of List Logon Session Information.vbsMD5 Hash: A7F11C6E6971205D451E34828E47FC82 |
||
' Description: Returns information about logon sessions associated with the user currently logged on to a computer.
On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_LogonSession") For Each objItem in colItems Wscript.Echo "Authentication Package: " & objItem.AuthenticationPackage Wscript.Echo "Logon ID: " & objItem.LogonId Wscript.Echo "Logon Type: " & objItem.LogonType Wscript.Echo "Start Time: " & objItem.StartTime Wscript.Echo Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |