skip to content

IT-Schnipsel

powershell admin kontextmenü

Rechte Maustaste "PowerShell (Administrator)" im Ordnerpfad öffnen...

Diesen Code als .reg Datei erstellen + ausführen:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin]
@="PowerShell (Administrator)"
"Extended"=-
"HasLUAShield"=""
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process powershell -ArgumentList '-NoExit',
 '-Command cd %V' -Verb runAs\""
[HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin]
@="PowerShell (Administrator)"
"Extended"=-
"HasLUAShield"=""
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process powershell -ArgumentList '-NoExit',
 '-Command cd %V' -Verb runAs\""
[HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin]
@="PowerShell (Administrator)"
"Extended"=-
"HasLUAShield"=""
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process powershell -ArgumentList '-NoExit',
 '-Command cd %V' -Verb runAs\""
[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\PowerShellAsAdmin]
@="PowerShell (Administrator)"
"Extended"=-
"HasLUAShield"=""
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\PowerShellAsAdmin\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process powershell -ArgumentList '-NoExit',
 '-Command cd %V' -Verb runAs\""

Up