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
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