Guidance
指路人
g.yi.org
Software / Reginald / Examples / repository / Desktop Management / Logon Sessions / Info.rex

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
/* Displays information about logon sessions associated with the user currently logged on to a computer */
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colitems = objwmiservice~execquery("Select * from Win32_LogonSession")
DO objitem OVER colitems
	SAY "Authentication Package:" objitem~authenticationpackage
	SAY "Logon ID:" objitem~logonid
	SAY "Logon Type:" objitem~logontype
	SAY "Start Time:" objitem~starttime
	SAY
END
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2022-12-9  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16