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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:13:41+00:00 2026-05-26T06:13:41+00:00

Is it possible to run the tests on TFS 2010 with a different identity

  • 0

Is it possible to run the tests on TFS 2010 with a different identity ?

The code being tested require higher privileges ( Active Directory, Filesystem manipulations) than the ones the current account has.
Right now there there is impersonation in the code but I want to get rid of it as the calling website will have the impersonation active.

Thanks !
Vincent

  • 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-26T06:13:42+00:00Added an answer on May 26, 2026 at 6:13 am

    From the Test agent, Test Controller and MSTEST FAQ:

    Will Test Agents allow you to impersonate another user? Or does the
    Test Agent always kick of tests as the user its configured start up
    as?

    There is no built in support for impersonation, so by default tests
    run under the identity of the test agent. If this is something you
    really need, you could write a unit test extension that does the
    impersonation for you.

    You can potentially also turn this behavior into your advantage: run an MSTest agent under an elevated account and dispatch your test runs to be executed by this MSTest agent. To configure this, please read: Create Test Settings to Run Automated Tests from Visual Studio. This will allow you to run your test to be executed under the account ofn desire, without having to explicitly impersonate your user all the time.

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

Sidebar

Related Questions

Is it possible to run JUnit tests from inside my Java application? Are there
I am wondering if it is possible for CMake to run tests like one
How is it possible to run tests against a class that reads from System.in
As far as I know, it is possible to run tests for either all
Is it possible to run an external command before running tests in a given
I would like to know if it is possible to run PHPUnit tests silently
I am trying to run tests tests basedon app.config settings. Is it possible to
Is it possible to set number of test runs variable on TFS 2010 build
Is it possible to enable Resharper to automatically run all unit tests within a
In symfony 1.x, with some code it was possible to run test without modify

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.