Enabling PowerShell remoting fails due to Public network connection type

If the network connection type is set to Public, enabling PowerShell remoting might fail because by default, PowerShell expects domain or private connection types.