Open in the explorer

Predefined IP Address mapping rules

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Microsoft PowerToys › Mouse Without Borders User Configuration › Policies › Administrative Templates › Microsoft PowerToys › Mouse Without Borders
Supported on
PowerToys version 0.83.0 or later
ADMX file
PowerToys.admx
Internal name
PowerToys/MwbPolicyDefinedIpMappingRules

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\PowerToys
HKEY_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 MultiString

Disable

# 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 SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
List of IP Address mappings:MwbPolicyDefinedIpMappingsListMultiline text boxmultiTextMwbPolicyDefinedIpMappingRulesREG_MULTI_SZ
Required · Max length: 65

Application

Microsoft PowerToys (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.