Open regedit, select Computer in tree,
press Ctrl+F to get search box,
tick all 4 values,
search for "Run with PowerShell"
Once you locate it add "&" in front of letter you wish to use for keybind.
So if you want letter P, you should change "Run with PowerShell" to "Run with &PowerShell";
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/hjpaY.png)
For letter T, set as "Run wi&th PowerShell", T2 means i'll have to press T two times to select it...
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/eCAPK.png)
Remediation attempt
Just an annoying thing is that "&" disappears from time to time, and I
need to reset it.
Save as nameit.ps1;
$currentSID = [System.Security.Principal.WindowsIdentity]::GetCurrent().User.Value
$rootPath = "Registry::HKEY_USERS\$currentSID\Software\Classes\Local Settings\MuiCache"
$foundItems = Get-ChildItem -Path $rootPath -Recurse | ForEach-Object {
$keyPath = $_.PSPath
$values = Get-ItemProperty -Path $keyPath
foreach ($valueName in $values.PSObject.Properties.Name) {
$value = $values.$valueName
if ($value -eq "Run with PowerShell") {
$keyPath
Set-ItemProperty -Path $keyPath -Name $valueName -Value "Run with &PowerShell"
Write-Output "Registry value replaced in $keyPath" #remove this line if running as script
}
}
}
if (-not $foundItems) { #remove statement if running as script
Write-Output "Registry value not found."
}
explorer.exe
but I think one of the AHK showcase scripts could potentially work for you? I'll see if I can dig it up.