I made a quick test. When on Publick Network profile, I ran the below command In CMD:
WinRM quickconfig
The WinRM service was started successfully but I got the message that WinRM exception rule in the firewall could not work because of Public Network profile.
When I did the same on Private Network profile, I got the additional message that the LocalAccountTokenFilterPolicy has to be configured. When I pressed Yes, then WinRM exception rule in the firewall was successfully enabled.
Edit.
The short info about
winrm quickconfig command:
***************************************************************************************************
Quick Default Configuration
You can enable the WS-Management protocol on the local computer and set up the default configuration for remote management with the following command:
Winrm quickconfig.
The
winrm quickconfig command (or the abbreviated version
winrm qc) performs the following operations:
- Starts the WinRM service, and sets the service startup type to auto-start.
- Configures a listener for the ports that send and receive WS-Management protocol messages using either HTTP or HTTPS on any IP address.
- Defines ICF exceptions for the WinRM service, and opens the ports for HTTP and HTTPS.
Note The
winrm quickconfig command creates a firewall exception only for the current user profile. If the firewall profile is changed for any reason,
winrm quickconfig should be run to enable the firewall exception for the new profile; otherwise, the exception might not be enabled.
*******************************************************************************************************
Installation and Configuration for Windows Remote Management