Forum Discussion
vaibhavkolhe
Jun 03, 2022Copper Contributor
Executing a .exe using Powershell on a remote server with Azure agent
Hi, I have a Windows 2012 server with a Azure DevOps agent running on it. The agent was registered with a regular Windows NT authority login. I am required to execute a powershell task using the Azu...
vaibhavkolhe
Jun 03, 2022Copper Contributor
Actually that's the funny part - there is no error displayed in the pipeline, but it executes successfully. However, the outcome of the .exe is not realized (it's supposed to produce a log file on the server). After much trying, we were able to tweak some things and finally found that the PS session was not launching to execute the exe. However, when we login manually to the server,open a PS session and execute the .exe, it runs successfully.
Jun 03, 2022
Can you share how are you calling the .exe?
- vaibhavkolheJun 17, 2022Copper ContributorHi - we were able to finally resolve this. No further help required.
- RomanPavlivJan 27, 2023Copper Contributor
vaibhavkolheI have the same problem. Can you please tell more details?
- vaibhavkolheJan 27, 2023Copper Contributor
RomanPavliv - The team member who resolved it is currently on leave. I should be able to provide a response next week.
- Jun 17, 2022Glad to hear!