文章字数:473,阅读全文大约需要1分钟
image.png

image.png
image.png

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
@="Cmd0(管理员)"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
@="Cmd1(管理员)"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]
@="Cmd2(管理员)"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]
@="Cmd3(管理员)"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""

powershell 管理员在此处运行

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\OpenPsHere]
@=(管理员)PowerShell0"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\shell\OpenPsHere\command]
@="powershell.exe -windowstyle hidden -Command \"Start-Process powershell.exe -ArgumentList '-noexit cd %V' -Verb RunAs\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenPsHere]
@="PowerShell1(管理员)"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenPsHere\command]

@="powershell.exe -windowstyle hidden -Command \"Start-Process powershell.exe -ArgumentList '-noexit cd %V' -Verb RunAs\""
[HKEY_CLASSES_ROOT\Drive\shell\OpenPsHere]
@="PowerShell2(管理员)"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Drive\shell\OpenPsHere\command]
@="powershell.exe -windowstyle hidden -Command \"Start-Process powershell.exe -ArgumentList '-noexit cd %V' -Verb RunAs\""

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenPsHere]
@="PowerShell3(管理员)"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenPsHere\command]
@="powershell.exe -windowstyle hidden -Command \"Start-Process powershell.exe -ArgumentList '-noexit cd %V' -Verb RunAs\""

复制上面内容是新建记事本命名为reg打开就行,下面是命名为bat
内存隔离高级关闭-重启生效

1
2
3
4
5
6
7
8
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d

hype-v开启

1
2
3
4
5
6
7
8
9
pushd "%~dp0"

dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt

for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

del hyper-v.txt

Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

gpedit打不开没有组策略问题

1
2
3
4
5
6
7
8
9
10
11
@echo off

pushd "%~dp0"

dir /b %systemroot%\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gp.txt

dir /b %systemroot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>gp.txt

for /f %%i in ('findstr /i . gp.txt 2^>nul') do dism /online /norestart /add-package:"%systemroot%\servicing\Packages\%%i"

pause

下面就是我整理的文件,
image.png