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


1 comment
Comment actions Permalink

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


Please sign in to leave a comment.