Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Security issue with Win32_Process?

Status
Not open for further replies.

malaygal

IS-IT--Management
Feb 22, 2006
192
US
I have this code on my asp page that is supposed to display the jobs (wscript.exe) that is currently running on the server.
As an Admin user, I do not have any problem displaying the jobs, but user with no Admin rights is getting an error on this line

Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2").

Are there any security issues? Any setting I need to revise for user to be able to view this page?

Any help will be greatly appreciated.

<%

Dim objWMIService, objItem, colItems
Dim strComputer, strProcessKill

strComputer = "."
strProcessKill = "'wscript.exe'"

Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery ("Select * from Win32_Process Where Name = " & strProcessKill)

%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top