473,385 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

User credentials cannot be used for local connections

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
1
by: Grey | last post by:
my web server is in domain. how can I check the user login with the AD's user account?? does it required the client's browser and web server located in the same domain?? and what is the different...
19
by: Siobhan | last post by:
Hi What is the recommended way to store a user's database credentials across the pages of a web application so that each time the database is accessed the system doesn't have to ask them for their...
11
by: Ted | last post by:
I have figured out how to use MS SQL Server Management Studio for SQL Server 2005, including how to create users. At my client's offices, on my own LAN (a one man office with two computers in a...
9
by: webrod | last post by:
Hi all, how can I check a user/password in a LDAP ? I don't want to connect with this user, I would like to connect to LDAP with a ADMIN_LOG/ADMIN_PWD, then do a query to find the user and...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
1
by: LamSoft | last post by:
I am writing a web portal to modify the users account password. However, it is confusing me... for a few days for this error. It has been work fine while debugging on the development web...
9
by: Gordon | last post by:
I want to add a feature to a project I'm working on where i have multiple users set up on my Postgres database with varying levels of access. At the bare minimum there will be a login user who...
3
by: richard.martino | last post by:
On Jun 18, 12:57 pm, "Joe Kaplan" <joseph.e.kap...@removethis.accenture.comwrote: ----------------------- Because when I execute: sendmailproxy.SendEmailRequest(sendmail);
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.