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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:35:28+00:00 2026-05-11T16:35:28+00:00

Good Day, My web app is set to use Windows Authentication and Impersontation is

  • 0

Good Day,

My web app is set to use Windows Authentication and Impersontation is set to true.

I wan’t to launch a process using the logged-in user account. However, when I tried to launch notepad.exe, it was run as a NETWORK SERVICE.

I’ve tried different impersonation techniques, but none of them worked.

Please help.

http://msdn.microsoft.com/en-us/library/ms998351.aspx#paght000023_impersonatingbyusingwindowsidentity

  • 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-11T16:35:28+00:00Added an answer on May 11, 2026 at 4:35 pm

    Simple impersonation won’t allow you to start a process as another user. You would have to use CreateProcessAsUser from the Windows API together with the appropriate privileges

    The CreateProcessAsUser function does not need the password of a user. It requires a primary token which can be obtained from the System.Security.Principal.WindowsIdentity object. Your ASP.NET process must have the Act as part of the operating system privilege to get an impersonation-level token.

    How To: Use Impersonation and Delegation in ASP.NET 2.0 has all the details on this topic.

    A related question which also might be relevant is this one: Using Process.Start() to start a process as a different user from within a Windows Service.

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

Sidebar

Related Questions

Good day! I use pg_search to implement Full text searching in my web app.
Good day. I try to use jqGrid in my web project. everything is good
Good day. I try to create web service server with yii and client for
Good day, We just converted our web application .NET 1.1 to .NET 2.0. We
Good day, I am sending e-mail with php and I use user's session for
Good day. I try to add new tab with navigation controller to my app.
Good Day, I have created an asp.net web service on my local machine, and
Good Day, I have two connection strings defined in my web.config file. <connectionStrings> <add
I am in the process of converting a ASP.Net Web App to a C#
I'm working on a web app where people can save records using an industry-specific

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.