471,356 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

WMI Query with ASP.NET

Running the following code in ASP.NET I get a "Access is denied." error on
the "connection = " line (3'rd Line)

Dim Instance, Instances, myQuery, Locator, Connection
Locator = CreateObject("WbemScripting.SWbemLocator")
Connection = Locator.connectserver("myComputerName", "root\cimv2",
"myID", "myPassword")
myQuery = "select * from Win32_ComputerSystem"
Instances = Connection.ExecQuery(myQuery)
For Each Instance In Instances

Any suggestions on what permissions I need to change to make this work?

Jul 22 '05 #1
0 1021

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by jaysonsch | last post: by
9 posts views Thread by netpurpose | last post: by
3 posts views Thread by Harvey | last post: by
4 posts views Thread by Diamondback | last post: by
14 posts views Thread by Dave Thomas | last post: by
4 posts views Thread by Stan | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.