Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\PowerShell x86] @="Open PowerShell x86 here" [HKEY_CLASSES_ROOT\Directory\shell\PowerShell x86\Command] @="\"C:\\Windows\\syswow64\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoExit -Command [Environment]::CurrentDirectory=(Set-Location -LiteralPath:'%L' -PassThru).ProviderPath\"" [HKEY_CLASSES_ROOT\Directory\shell\PowerShell 64 bit] @="Open PowerShell here (64 bit)" [HKEY_CLASSES_ROOT\Directory\shell\PowerShell 64 bit\Command] @="\"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoExit -Command [Environment]::CurrentDirectory=(Set-Location -LiteralPath:'%L' -PassThru).ProviderPath\""