Technology, Cloud computing and Automation…

Tag Archives: Work-around

A common problem on laptops or mobile workstations is that the initial PowerShell Remoting configuration will fail because the system is connected to a public network. The advice is to change the network from public to private, unfortunately this is not always possible because of WiFi connections.

There is a work around available for this, by running the following code:

Enable-PSRemoting -SkipNetworkProfileCheck -Force

Enable-PSRemoting -SkipNetworkProfileCheck -Force

By including the -SkipNetworkProfileCheck the cmdlet with omit the network check and PowerShell remoting correctly regardless of the fact that the system might be connected to a public network.

When setting up PowerShell Remoting using winrm quickconfig the following error might occur:

PS C:\WINDOWS\system32> winrm quickconfig quests on this machine.
The following changes must be made:
Start the WinRM service.
Set the WinRM service type to delayed auto start.
Make these changes [y/n]? y
WinRM has been updated to receive requests.
WinRM service type changed successfully.
WinRM service started.
WSManFault
Message
ProviderFault
WSManFault
Message = WinRM firewall exception will not work since one of the network connection types on this machi
ne is set to Public. Change the network connection type to either Domain or Private and try again.
Error number: -2144108183 0x80338169
WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Chang
e the network connection type to either Domain or Private and try again.

Or when using Enable-PSRemoting without skip network check this error will appear: