By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,578 Members | 1,840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,578 IT Pros & Developers. It's quick & easy.

User credentials cannot be used for local connections

P: n/a
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


Feb 15 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.