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

  • Home
  • SEARCH
  • 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 7416999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:36:39+00:00 2026-05-29T07:36:39+00:00

I want to use Windows current credential when using WMI to query data on

  • 0

I want to use Windows current credential when using WMI to query data on a remote machine, but in many examples I found that I have to use Connection object which needs you to provide a username, password and authority for validating username and password as shown below:

            Dim connection As New ConnectionOptions
            connection.Username = userNameBox.Text
            connection.Password = passwordBox.Text
            connection.Authority = "ntlmdomain:MyDomain"

            Dim scope As New ManagementScope( _
                "\\RemoteMachine\root\CIMV2", connection)
            scope.Connect()

I want to bypass these inputs and use current Windows logon credentials instead, is there any way for this?

  • 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-29T07:36:41+00:00Added an answer on May 29, 2026 at 7:36 am

    Here’ the C# example with connnection options using Windows credentials.

    ConnectionOptions connectionOptions = new ConnectionOptions
    {
        Authentication = AuthenticationLevel.PacketPrivacy,
        Impersonation = ImpersonationLevel.Impersonate
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Windows XP Pro SP3. I want to use SSPI functions in my
I want to use WPF windows in a legacy win32 application. I'd like to
I'm new to emacs and I want to use ensime in Windows. I had
I want to use modal pop-up windows in our web app in Ruby on
I want to use delayed signing for my windows mobile compact framework assemblies. When
I want to use blob-leasing mechanism in my Windows Azure cloud app. I am
I want to use an AES 256-bit web service with a Windows Mobile 6.1
If you want to use a queuing product for durable messaging under Windows, running
I want to use the functions exposed under the OpenGL extensions. I'm on Windows,
Scenario I have a windows forms application. I want to use two different WCF

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.