Cause TFS InvokeProcess Build Activity to run under other credentials
We have customized the build process with a InvokeProcess action that runs a powershell script that deploys our sln. Problem is that this script must be run under a given user (not the tfsbuild user). How can we achive this? Alternative 1: Make the InvokeProcess run as a different user - Alternative 2: Make the powershell script itself run as different user Problem is that I have no idea of how to do any of this. I have created a blog post on this how you can achieve this: Customize Team Build 2010 – Part 9: Impersonate activities (run under other credentials) A pure PowerShell option,