Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6636973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:15:14+00:00 2026-05-25T23:15:14+00:00

this is a similar error all around the internet but I am not able

  • 0

this is a similar error all around the internet but I am not able to reason out why this can happen in my case. I am trying to use WMI for remotely installing windwos services from my XP client machine. I use,

    ConnectionOptions options = new ConnectionOptions();
    options.EnablePrivileges = true;
    options.Impersonation = ImpersonationLevel.Impersonate;
    options.Username = "domainName\userName";
    options.Password = "pwd";
    string path = string.Format("\\\\{0}\\root\\cimv2", machineName);
    ManagementScope scope = new ManagementScope(path, options);
    scope.Connect();

I get ‘Access is denied. (Exception from HRESULT: 0x80070005)’ error. I use a windows XP SP3 and trying to connect to windows server 2003.

I found out these but I did check all of these:

  1. User account not admin – The user account is a local admin. I can use the same account, to do a instalutil and create services in that machine. This is the account underwhich my application services run.

  2. dcomcnfg and check Enable DCOM – This is already enabled.

  3. Changed Enabled Previliges and Impersonation properties in ConnectionOptions. But this doesnt help.

  4. Firewall settings – The error message number doesnt say this. But, the machine is withing the same domain as the XP client.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:15:15+00:00Added an answer on May 25, 2026 at 11:15 pm

    I figured this out. The account that I used to login remotely (via mstsc) and install/uninstall services was NOT a local admin account. It was surprising because, I used the same account to install services in that machines, so assumed it would be a local admin. When I added the account to local admin, the WMI connectivity also worked. Hence, for remotely connecting to the machine, u need to use a local admin account.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been around and around with this. Have seen similar questions here but
I stumbled on a problem I was able to work around, but I'm not
I can not get my head around this. These examples are working: # Function
Note: This is similar, but not quite the same as this other question I've
I found this similar question here , but this is really old. Was it
This is similar to (but different from) this question . Here is some simple
This is similar to this question , but I thought I'd reword it a
This is similar to my previous question but it didnt work with the Kindle
There are lots of questions that ask this or a similar question. They all
i'm trying to implement paging in xml using this code and got around to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.