Re: WMI - could not create object winmgmts
- From: "Andy" <packy2000@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 19 Nov 2005 05:35:34 -0800
slowtalkinjones wrote:
does it work if you set the webpage in question to anonymous access,
and then IIS Manager on that pages properties to use the
username/password you have created ?
Andy
>
> 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
--
.
- References:
- WMI - could not create object winmgmts
- From: slowtalkinjones
- WMI - could not create object winmgmts
- Prev by Date: Re: Setting a default printer for all users?
- Next by Date: Re: Cannot Neither Delete nor Map Drive
- Previous by thread: WMI - could not create object winmgmts
- Next by thread: How to get application name which submited printer job?
- Index(es):
Relevant Pages
|