Set Copilot Hardware Key
Définir une touche matérielle Copilot
Explanation
This policy setting determines which app opens when the user presses the Copilot key on their keyboard. If the policy is enabled, the specified app will open when the user presses the Copilot key. Users can change the key assignment in Settings. If the policy is not configured, Copilot will open if it's available in that country or region.
Ce paramètre de stratégie détermine quelle application s’ouvre lorsque l’utilisateur appuie sur la touche Copilot de son clavier. Si la politique est activée, l'application spécifiée s'ouvre lorsque l'utilisateur appuie sur la touche Copilot. Les utilisateurs peuvent modifier l’affectation des touches dans les paramètres. Si la politique n'est pas configurée, Copilot s'ouvre s’il est disponible dans ce pays ou cette région.
Registry
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CopilotKey- 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.
Enable
# Enable: WindowsCopilot/SetCopilotHardwareKey
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CopilotKey'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Enter App AUMID
Set-ItemProperty -Path $k -Name 'SetCopilotHardwareKey' -Value '<value>' -Type StringDisable
# Disable: WindowsCopilot/SetCopilotHardwareKey
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsCopilot/SetCopilotHardwareKey
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CopilotKey'
Remove-ItemProperty -Path $k -Name 'SetCopilotHardwareKey' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Enter App AUMIDEntrer l’AUMID de l’applicationSetCopilotHardwareKey_Name | Text boxtext | SetCopilotHardwareKey | REG_SZ | Required |