| |
ALex-b
Posts: 1
Score: 0
Joined: 7/15/2004
From:
Status: offline
|
Hi I wanna show the username and the win domain that the user of my webinterface is loged in to on a webinterface (with executing a vbs with php) I found this script somewere: strComputer = "RemoteComputer" Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colComputer = objWMIService.ExecQuery _ ("Select * from Win32_ComputerSystem") For Each objComputer in colComputer Wscript.Echo objComputer.UserName Next can i use that for my purpose when I try it i get an error message: Remoteservercomputer doesnt exist.......:'GetObject' thanks for your help Alex
|
|