Forum Discussion

lleppert's avatar
8 years ago

Run test from command line as administrator



Is there a way to run a test from the command line with administrative permissions? RunAs doesn't work for me as I don't want to be prompted for the password.


Basically I am writing a powershell script that will check out a test from sourcecontrol, make some changes to it through the xml files, run the test, and then check it back in and it will do so for every test in a specified directory. For the 'run the test' part I am using a simple command line from within the powershell and it works great, but the test requires elevated privileges to be able to run and I am struggling to achieve this result.


Any help is greatly appreciated.