Fai clic con il pulsante destro del mouse su "cmd_here" e fai clic con il pulsante destro del mouse su "PowerShellAsAdmin"

Fai clic con il tasto destro del mouse e aggiungi "cmd_here" 

Editor del Registro di sistema di Windows versione 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here]

@=”cmd_here”

“Icona”=”cmd.exe”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classi\Directory\background\shell\cmd_here\comando]

@=”\”C:\\Windows\\System32\\cmd.exe\””

[HKEY_LOCAL_MACHINE\SOFTWARE\Classi\Cartella\shell\cmdPrompt]

@=”cmd_here”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classi\Cartella\shell\cmdPrompt\comando]

@=”\”C:\\Windows\\System32\\cmd.exe\” \”cd %1\””

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here]

@=”cmd_here”

“Icona”=”cmd.exe”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classi\Directory\shell\cmd_here\comando]

@=”\”C:\\Windows\\System32\\cmd.exe\””

Fare clic con il pulsante destro del mouse su "PowerShellAsAdmin"

Editor del Registro di sistema di Windows versione 5.00

; Creato da: Shawn Brink
; Creato il: 13 agosto 2016
; Aggiornato il: 20 dicembre 2023
; Tutorial: https://www.tenforums.com/tutorials/60177-add-open-powershell-window-here-administrator-windows-10-a.html

[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin]
@="Apri la finestra di PowerShell qui come amministratore"
“Esteso”=-
“HasLUAShield”=””
“Icona”=”powershell.exe”

[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin\comando]
@=”cmd /c reg add hkcu\\software\\_dir /d \”%v\” /f & start powershell -WindowS H -noP -c Start-Process -v RunAs powershell.exe '-noL -noE -c cd -literalP (gp hkcu:\\software\\_dir).\\\”\\\”\\\”(predefinito)\\\”\\\”\\\”; ri hkcu:\\software\\_dir'”

[HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin]
@="Apri la finestra di PowerShell qui come amministratore"
“Esteso”=-
“HasLUAShield”=””
“Icona”=”powershell.exe”

[HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin\comando]
@=”cmd /c reg add hkcu\\software\\_dir /d \”%v\” /f & start powershell -WindowS H -noP -c Start-Process -v RunAs powershell.exe '-noL -noE -c cd -literalP (gp hkcu:\\software\\_dir).\\\”\\\”\\\”(predefinito)\\\”\\\”\\\”; ri hkcu:\\software\\_dir'”

[HKEY_CLASSES_ROOT\Unità\shell\PowerShellAsAdmin]
@="Apri la finestra di PowerShell qui come amministratore"
“Esteso”=-
“HasLUAShield”=””
“Icona”=”powershell.exe”

[HKEY_CLASSES_ROOT\Unità\shell\PowerShellAsAdmin\comando]
@=”cmd /c reg add hkcu\\software\\_dir /d \”%v\” /f & start powershell -WindowS H -noP -c Start-Process -v RunAs powershell.exe '-noL -noE -c cd -literalP (gp hkcu:\\software\\_dir).\\\”\\\”\\\”(predefinito)\\\”\\\”\\\”; ri hkcu:\\software\\_dir'”

[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\PowerShellAsAdmin]

; Per consentire alle unità mappate di essere disponibili in PowerShell con privilegi elevati
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"AbilitaConnessioniCollegate"=dword:00000001

 

Protocollo ModBus nei router industriali
« Post precedente 11/30/2024 14:25
Come scegliere il protocollo VPN giusto
Post successivo » 11/30/2024 14:25
it_ITItalian