User credentials cannot be used for local connections

J

James

Dim connection As New ConnectionOptions

connection.Username = m_ntid

connection.Password = m_pwd

connection.Authority = "ntlmdomain:" & m_domain

Dim scope As New ManagementScope("\\" + computer + "\root\CIMV2",
connection)

scope.Connect()

============================

i uses the above and try to connect locally and it returns error below

User credentials cannot be used for local connections

the id/password has admin right to local machine (the program is run from
the local machine) and it generates the error above, but for remote machines
it works well. pls advise
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top