Enable PowerShell Remoting via Registry

PowerShell Remoting relies on the Windows Remote Management (WinRM) service to accept incoming connections. While remoting is commonly configured using the Enable-PSRemoting cmdlet, remote connection capabilities can be managed directly within the Windows Registry through Group Policy keys and the WinRM service configuration.

Primary Registry Value for Remote Connections

The primary registry value that controls whether Windows allows remote connections via WinRM and PowerShell Remoting is defined under the Windows Remote Management policy key.

When AllowAutoConfig is enabled, Windows also references IP filter strings to determine which incoming IP addresses are permitted:

Enabling the WinRM Service

For remote connections to function, the WinRM service must also be configured to start automatically:

Applying Changes

After modifying these values in regedit, restart the WinRM service or reboot the computer for the registry changes to take effect:

Restart-Service WinRM