Nhấp chuột phải vào addd “cmd_here”
Trình chỉnh sửa sổ đăng ký Windows phiên bản 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here]
@=”cmd_ở đây”
“Biểu tượng” = “cmd.exe”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here\command]
@=”\”C:\\Windows\\System32\\cmd.exe\””
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt]
@=”cmd_ở đây”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt\command]
@=”\”C:\\Windows\\System32\\cmd.exe\” \”cd %1\””
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here]
@=”cmd_ở đây”
“Biểu tượng” = “cmd.exe”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here\command]
@=”\”C:\\Windows\\System32\\cmd.exe\””
Nhấp chuột phải vào addd “PowerShellAsAdmin”
Trình chỉnh sửa sổ đăng ký Windows phiên bản 5.00
; Được tạo bởi: Shawn Brink
; Ngày tạo: 13 tháng 8 năm 2016
; Cập nhật vào ngày: 20 tháng 12 năm 2023
; Hướng dẫn: https://www.tenforums.com/tutorials/60177-add-open-powershell-window-here-administrator-windows-10-a.html
[HKEY_CLASSES_ROOT\Thư mục\Background\shell\PowerShellAsAdmin]
@=”Mở cửa sổ PowerShell ở đây với tư cách là quản trị viên”
“Mở rộng”=-
“HasLUAShield”=””
“Biểu tượng” = “powershell.exe”
[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin\lệnh]
@=”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).\\”\\”\\”(mặc định)\\”\\”\\”; ri hkcu:\\software\\_dir'”
[HKEY_CLASSES_ROOT\Thư mục\shell\PowerShellAsAdmin]
@=”Mở cửa sổ PowerShell ở đây với tư cách là quản trị viên”
“Mở rộng”=-
“HasLUAShield”=””
“Biểu tượng” = “powershell.exe”
[HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin\lệnh]
@=”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).\\”\\”\\”(mặc định)\\”\\”\\”; ri hkcu:\\software\\_dir'”
[HKEY_CLASSES_ROOT\Ổ đĩa\shell\PowerShellAsAdmin]
@=”Mở cửa sổ PowerShell ở đây với tư cách là quản trị viên”
“Mở rộng”=-
“HasLUAShield”=””
“Biểu tượng” = “powershell.exe”
[HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin\lệnh]
@=”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).\\”\\”\\”(mặc định)\\”\\”\\”; ri hkcu:\\software\\_dir'”
[-HKEY_CLASSES_ROOT\Thư viện\Background\shell\PowerShellAsAdmin]
; Để cho phép các ổ đĩa được ánh xạ có sẵn trong PowerShell nâng cao
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Phiên bản hiện tại\Chính sách\Hệ thống]
“EnableLinkedConnections”=dword:00000001