Hi,
To create WinRM session you can refer to the links below.
https://learn.microsoft.com/en-us/windows/win32/winrm/authentication-for-remote-connections
https://learn.microsoft.com/en-us/windows/win32/winrm/wsman-createsession
As it doesn't seem to be a powershell issue I'll remove the powershell tag. Thanks for your understanding.
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.