WMI - could not create object winmgmts
- From: slowtalkinjones <slowtalkinjones.1ypy9o@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 18 Nov 2005 16:06:21 -0600
Hi,
Trying to get WMI via ASP or ASPX to work on a remote W2003 server to
monitor network performance. Have tried simple code in both asp & aspx
but always fails with a message "could not create object of type
"winmgmts:{impersonationLevel=Impersonate}!\\.\root\comv2".
The folder where the asp/aspx page resides is protected and demands a
login/pwd, so I thought the "imppersonate" would take the permissions
of the login - true?
In Computer Management : WMI Control I gave full permissions to this
login/pwd for root/CIMV2.
DCOM for WMI has launch permissions Everyone, and Access Permissions
are allowed for that login/pwd.
The code is the standard:
strComputer = "."
strWMIService = "winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2"
set objWMIService = Server.CreateObject(strWMIService)
(without the word "set" for the aspx page)
thx
--
slowtalkinjones
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
.
- Follow-Ups:
- Re: WMI - could not create object winmgmts
- From: Andy
- Re: WMI - could not create object winmgmts
- Prev by Date: Re: [MSH] Legacy exes and exit codes
- Next by Date: Re: [MSH] get-object - EA SilentlyContinue
- Previous by thread: Cannot Neither Delete nor Map Drive
- Next by thread: Re: WMI - could not create object winmgmts
- Index(es):
Relevant Pages
|