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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,403 questions
{count} vote