Re: WMI - could not create object winmgmts



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



--

.



Relevant Pages

  • RE: anonymous access - problems
    ... Is this only for ASPX pages? ... Do a "Check Server Health" if you have FPSE installed [NOTE: ... reset permissions that would have been manually set on the NTFS partition]. ... | despite setting the "Anonymous access" in IIS as well as using the ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • ASP.Net Authentication
    ... I am having difficulty understanding what additional permissions need ... I have IIS set to anonymous access. ... aspx page I get a 401.3 "Access Denied by ACL on resource IIS". ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Logon Failures
    ... In order to get permissions at List level you need to move to the newer (and ... > I created a test site without STS, set it to no anonymous access and was ... > able to login with the users who cannot log into the STS site. ... >>> If anonymous access is not allowed and Integrated Windows ...
    (microsoft.public.sharepoint.teamservices)
  • Re: credentials prompt accessing list anonymously
    ... Anonymous users, for those Lists, have been given the additional Add Items ... permission (in addition to the default Read permissions). ... All they they have by default in a site accessible by anonymous access ... Reader functionality without needing to give credentials. ...
    (microsoft.public.sharepoint.windowsservices)
  • aspx pages dont work on win2003-server - newbie needs help
    ... .aspx pages are not working. ... - Several pages suggested that the aspx extension needs to be binded ... in IIS manager, right click on websitefolder/properties/documents ... in IIS manager/web extensions/ added aspx, in required files: ...
    (microsoft.public.dotnet.framework.aspnet)