TFS Build: Run a Powershell script as administrator -
i created build definition our nightly build server. after building project (a windows service), need execute powershell script install , start service. added build step run specific powershell script. installed tfs build agent & visual studio @ (soon be) nightly build server. after running build script got 'exit code 5' seems related missing administratior permissions. if start script admin @ server manually, works fine. user, used agent, got admin permissions.
is there way execute powershell script @ build server build agent / build definition admin permissions?
you need make sure build service account (which can local account, domain account, or local service in workgroup) got admin permission.
Comments
Post a Comment