Prev: Implement Search Utility
Next: Psexec ver 1.94 and 1.98
From: Alessandro on 29 Apr 2010 11:18 Hello, I need your help. I am integrating some wmi (vbscript) code in an asp page. I need to see WMI data of a server (server_a, win2003R2ent64bit), that is not the web server (server_b, win2003std32bit), just in the same domain. As this is my first experience with asp+wmi, I started step by step. I created my script as a vbs file. It functioned, both querying server_a and server_b. Then I created the asp page, writing code to query the server_b, and put the asp file on it in iis. It functioned correctly. To finish, I created the web page to query the server_a. I used the same code that functioned correctly from the vbs file, that connects to server_a in this way. Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!//server_a/root/cimv2").ExecQuery("SELECT * FROM Win32_ServerSession") All that I got is an http error 500. I run the vbs and open the asp page always with my account, that has domain admin rights. I also tried it from the browser on server_b, getting the same result. Someone could help me? Please? Thank you in advance. Alessandro
|
Pages: 1 Prev: Implement Search Utility Next: Psexec ver 1.94 and 1.98 |