SHOW:
|
|
- or go back to the newest paste.
1 | Windows Registry Editor Version 5.00 | |
2 | ||
3 | - | [HKEY_CLASSES_ROOT\Directory\shell\cmdprompt] |
3 | + | [HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin] |
4 | - | @="@shell32.dll,-8506" |
4 | + | @="Open PowerShell window here as administrator" |
5 | - | "NoWorkingDirectory"="" |
5 | + | "Extended"="" |
6 | "HasLUAShield"="" | |
7 | - | [HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command] |
7 | + | "Icon"="powershell.exe" |
8 | - | @="cmd.exe /s /k pushd \"%V\"" |
8 | + | |
9 | [HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin\command] | |
10 | - | [HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt] |
10 | + | @="powershell -WindowStyle Hidden -NoProfile -Command \"Start-Process -Verb RunAs powershell.exe -ArgumentList \\\"-NoExit -Command Push-Location \\\\\\\"\\\"%V/\\\\\\\"\\\"\\\"" |
11 | - | @="@shell32.dll,-8506" |
11 | + | |
12 | - | "NoWorkingDirectory"="" |
12 | + | |
13 | [HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin] | |
14 | - | [HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt\command] |
14 | + | @="Open PowerShell window here as administrator" |
15 | - | @="cmd.exe /s /k pushd \"%V\"" |
15 | + | "Extended"="" |
16 | "HasLUAShield"="" | |
17 | - | [HKEY_CLASSES_ROOT\Drive\shell\cmdprompt] |
17 | + | "Icon"="powershell.exe" |
18 | - | @="@shell32.dll,-8506" |
18 | + | |
19 | - | "NoWorkingDirectory"="" |
19 | + | [HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin\command] |
20 | @="powershell -WindowStyle Hidden -NoProfile -Command \"Start-Process -Verb RunAs powershell.exe -ArgumentList \\\"-NoExit -Command Push-Location \\\\\\\"\\\"%V/\\\\\\\"\\\"\\\"" | |
21 | - | [HKEY_CLASSES_ROOT\Drive\shell\cmdprompt\command] |
21 | + | |
22 | - | @="cmd.exe /s /k pushd \"%V\"" |
22 | + | |
23 | [HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin] | |
24 | @="Open PowerShell window here as administrator" | |
25 | "Extended"="" | |
26 | "HasLUAShield"="" | |
27 | "Icon"="powershell.exe" | |
28 | ||
29 | [HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin\command] | |
30 | @="powershell -WindowStyle Hidden -NoProfile -Command \"Start-Process -Verb RunAs powershell.exe -ArgumentList \\\"-NoExit -Command Push-Location \\\\\\\"\\\"%V/\\\\\\\"\\\"\\\"" | |
31 | ||
32 | ||
33 | [-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\PowerShellAsAdmin] | |
34 | ||
35 | ||
36 | ; To allow mapped drives to be available in elevated PowerShell | |
37 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] | |
38 | "EnableLinkedConnections"=dword:00000001 |