- @echo off
- cd /d "%~dp0"
- >tmp.reg (
- for /f "skip=18 delims=" %%L in (%~snx0) do (
- echo;%%L
- )
- )
- echo on
- reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl /f
-
- regedit /s tmp.reg
- reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl /v 1 /t reg_sz /d "Microsoft.Fonts" /f
- del tmp.reg
- REM gpupdate /force
-
- exit
-
-
-
-
- Windows Registry Editor Version 5.00
-
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
- "DisallowCpl"=dword:00000001
-
- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowCpl]
- "1"="Microsoft.Fonts"
复制代码
|