Predefined IP Address mapping rules
Explanation
This policy allows you to define IP Address mapping rules.
If you enable this policy, you can define IP Address mapping rules that the user can't change or disable.
Please enter one mapping per line in the format: "hostname IP"
If you disable or don't configure this policy, no predefined rules are applied.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\PowerToysHKEY_CURRENT_USER\Software\Policies\PowerToys- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: PowerToys/MwbPolicyDefinedIpMappingRules
$k = 'HKLM:\Software\Policies\PowerToys'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# List of IP Address mappings
Set-ItemProperty -Path $k -Name 'MwbPolicyDefinedIpMappingRules' -Value @('<value1>', '<value2>') -Type MultiStringDisable
# Disable: PowerToys/MwbPolicyDefinedIpMappingRules
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": PowerToys/MwbPolicyDefinedIpMappingRules
$k = 'HKLM:\Software\Policies\PowerToys'
Remove-ItemProperty -Path $k -Name 'MwbPolicyDefinedIpMappingRules' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| List of IP Address mappings:MwbPolicyDefinedIpMappingsList | Multiline text boxmultiText | MwbPolicyDefinedIpMappingRules | REG_MULTI_SZ | Required · Max length: 65 |
Application
Microsoft PowerToys (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.