Please refer attached script to Enable the WinRM and Change the Network Connection Profile to Private.
Run the script as System User
---
Comments