Azure DevOPS pipeline powershell task (Start-process)

Shipra Shah 6 Reputation points
2021-08-04T20:01:24.17+00:00

I am trying to launch cmd.exe with different credentials from powershell using start-process.
It works fine when ran directly on the agent box but using the powershell task from the release pipeline it doesn’t work.

I see info in event viewer stating application popup:cmd.exe - application error. The application was unable to start correctly. Click ok to close the application.

This script works fine with cmd popping up directly on the server.

Please advise. Thanks!

Windows for business Windows Server User experience PowerShell
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.