I run a powershell script over winrm in an Golang software. To run the WinRM command i use the Repository https://github.com/masterzen/winrm .
But i get a 'unknown error Post "https://[servername]:5986/wsman": net/http: timeout awaiting response headers' error when i run get-rdmdatasource in the script (pwsh -File ... ).
I use Windows Server 2019 with Powershell 7 and Powershell 5 installed.
If i write other powershell commands in the script everything works fine.
Does anyone have experience with a similar situation?
Thanks
tl
Hello tl,
If you run the Get-RDMDatasource directly on the remote machine, is it executing normally?
Could you also specify what version of RDM you are using, what type of data source, and the version of the PowerShell module (Get-RDMInstance)? If you are using RDM 2023.1 or 2023.2, PS7 is required.
Best regards,
Richard Boisvert