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 138271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:14:16+00:00 2026-05-11T07:14:16+00:00

How can I login to AD without logout from current user and get new

  • 0

How can I login to AD without logout from current user and get new logged user’s rights. (OS: Windows XP)

Note:

Not to Modify AD or something like this.Only wanna to login with another user from C# and getting new login’s permissions/rights. (I wanna use this rights not only in current thread but also whole explorer. Like deleting files, creating directories, changing Network options.)

Is this possible?

  • 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. 2026-05-11T07:14:17+00:00Added an answer on May 11, 2026 at 7:14 am

    You can use impersonation to change thread identity to a different user, given a valid username and password. There is no way to change the user identity for the whole shell other than logging in as a different user manually, but anything executed on the thread you impersonate on will receive the new rights.

    The .NET 1.1 way, using P/Invoke:

    • Windows Impersonation using C#
    • A small C# Class for impersonating a User

    The .NET 2+ way, using Thread.CurrentPrincipal:

    • How To Impersonate A User Given Her Token
    • Directly Accessing a Principal Object
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i login without logout from current user to another Active Directory user
How can we separate Logic from presentation without using any template engine (traditional php-not
I heard that on Windows you can login from a web browser to the
How can I log out user from facebook without authorizing him myself? I have
I use asp:Login control, user can login properly, but while checking user Profile information
I am working on a site where users can login to get more private
When I create a user, they can't login until I go into the asp.net
I store all session information in database. The user can login the system for
My goal is logout current session, then delete the running local user profile. And
I'm having a requirement where i can press a logout button from any activity

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.