Command Line / Power Shell build step run as administrator user permission

How do I run Command Line or Power Shell build step with Administrator or elevated user permissions?

I'm currently unable to execute Node.js scripts to modify files TeamCity retreived from TFS version control.

My TeamCity Build Agent service is not using System, but is assigned to a Windows user in the Admin group.  This is on a Windows Server 2008 R2 server

-=Dan=-

1 comment
Comment actions Permalink

Solution
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "cd folder_name | grunt deploy"

0

Please sign in to leave a comment.