Windows10の管理者PowerShellウィンドウを開いて下のファイルのディレクトリを追加するにはShiftキー+右クリックメニュー

エンコードANSI PowershellAdmin.reg簡単にファイルの種類を選択し、として再生することができます(ファイル名という名前のファイルを選択し、以下のコードをコピーし、すべて保存ファイルを選択し、新しいテキストファイルを作成しますが、拡張子は、それがファイルこと、を.reg必要とされています)レジストリエントリを入力し、ダブルクリックしPowershellAdmin.regは、レジストリ、次のヒントをマージ

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\PowershellAdmin]
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
@=""
"MUIVerb"="在此处打开管理员 Powershell 窗口(A)"

[HKEY_CLASSES_ROOT\Directory\Background\shell\PowershellAdmin\command]
@="powershell.exe -command Start-Process powershell -ArgumentList \\\"-noexit\\\",\\\"Set-Location -literalPath '%V'\\\" -Verb runAs"

おすすめ

転載: www.cnblogs.com/var-chu/p/12593305.html