Registry data refreshed from vendors: Last vendor change detected: 5 Dec 2026Next refresh: 1st of the monthApp v1.4.0 (5 Dec 2026): Cleanup or tattoo: see what stays behind after a GPO is removed. Release notes
REGISTRY ACADEMY · LESSON 4 OF 10

Managing the registry remotely

PowerShell remoting, reg.exe and Regedit over the network, the Remote Registry service, firewall rules and when to use each.

Three ways, in order of preference

MethodTransportNeeds on the targetBest for
PowerShell remoting (Invoke-Command)WinRM, TCP 5985/5986, encryptedWinRM enabled (default on Windows Server)Scripts, many servers, Server Core
reg.exe \\computer\...SMB named pipe (TCP 445)Remote Registry service running, admin rightsQuick one-off reads and compares
Regedit, File > Connect Network RegistrySMB named pipe (TCP 445)Remote Registry service running, admin rightsBrowsing a remote machine by hand

PowerShell remoting

# one server, interactive
Enter-PSSession -ComputerName srv01
Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate'
Exit-PSSession

# many servers, change and report
Invoke-Command -ComputerName (Get-Content .\servers.txt) -ScriptBlock {
  Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name LongPathsEnabled -Value 1
  [pscustomobject]@{ Computer = $env:COMPUTERNAME; LongPaths = (Get-ItemPropertyValue 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' LongPathsEnabled) }
}

Workgroup machines and local accounts hit UAC remote restrictions. Use domain accounts where you can; read the LocalAccountTokenFilterPolicy entry before you change that behavior.

The Remote Registry service

reg.exe and Regedit talk to the Remote Registry service (RemoteRegistry) on the target. On Windows 11 it is disabled by default; on Windows Server it is set to start on demand. Start it only when needed:

Get-Service RemoteRegistry -ComputerName srv01
Set-Service RemoteRegistry -ComputerName srv01 -StartupType Manual
(Get-Service RemoteRegistry -ComputerName srv01).Start()

The connection uses SMB (TCP 445) named pipes, so the file and printer sharing firewall rules must allow it. Only HKLM and HKU are reachable remotely; to change a user's settings, open HKU\<their SID> while they're signed in, or load their NTUSER.DAT offline.

Which keys remote users may read is controlled by the ACL on HKLM\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg and the paths listed in its AllowedExactPaths and AllowedPaths subkeys.

Regedit over the network

  1. File > Connect Network Registry, enter the computer name.
  2. The remote machine appears as a new root in the tree with HKLM and HKU.
  3. File > Disconnect Network Registry when done.

Other options

  • Group Policy and Group Policy Preferences: the right tool for any setting that must stay applied.
  • Intune: Settings catalog, ADMX ingestion, or remediation scripts for cloud-managed devices.
  • Configuration Manager: configuration baselines that detect and fix registry drift.
  • Windows Admin Center: has a Registry tool for browsing and editing servers in a browser.

References: about_Remote_Troubleshooting, reg command reference.