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

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

  
/* Returns the user name of the user currently logged on to a remote computer. To
 * use this script, replace atl-ws-01 with the name of the remote computer
 * you want to check. Although this script will run on Windows NT 4.0, Windows 98,
 * and Windows 2000, it will not always return information. 
 */
strcomputer = "atl-ws-o1"
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2") 
colcomputer = objwmiservice~execquery("Select * from Win32_ComputerSystem")
DO objcomputer OVER colcomputer
	SAY "Logged-on user:" objcomputer~username
END
掌柜推荐
 
 
¥790.00 ·
 
 
¥1,290.00 ·
 
 
¥908.00 ·
 
 
¥489.00 ·
 
 
¥790.00 ·
 
 
¥291.00 ·
© Tue 2024-11-5  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16