Hi, You can run Enable-PSRemoting to configure WinRM. It will create a listener on the WinRM port 5985 for HTTP and add a firewall exception automatically.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting
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.