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)
%>
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)
%>