TFS Build: Run a Powershell script as administrator
You just need to make sure your build service account (which can be a local account, a domain account, or Local Service in a workgroup) also got admin permission.
You just need to make sure your build service account (which can be a local account, a domain account, or Local Service in a workgroup) also got admin permission.