当前位置:首页 > 技术教程 > 正文

Windows 10 神州网信政府版官方企业版 简单优化加400年激活批处理

@Echo Off
@Echo.
@Echo.
@Echo.

Echo    删除神州网信系统工具
Taskkill /F /IM CmitUpdateAgent.exe
Del /F /A /Q "C:\Program Files\CMIT3.0"
RD /S /Q "C:\Program Files\CMIT3.0"
Del /F /A /Q "C:\Program Files\CmitUpdateAgent"
RD /S /Q "C:\Program Files\CmitUpdateAgent"
Del /F /A /Q "C:\Users\Public\Desktop\系统激活.lnk"
Del /F /A /Q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\更新客户端"
RD /S /Q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\更新客户端"
SET "SF=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
SET "USF=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"

rem 设置个人文件夹
SET "Users=D:\Users"
robocopy c:\Users "%Users%" /copyall
cd /d "%Users%
cmd /u /c echo IconResource=C:\Windows\system32\imageres.dll,117 >>desktop.ini
rem 移动原 桌面
for /f "tokens=2,*" %%i in ('reg query "%SF%" /v "Desktop"') do set Desktop=%%j
if /i "%Desktop%" NEQ "%Users%\Desktop" robocopy  "%Desktop%" "%Users%\Desktop" /E /COPYALL /XJ /MOVE
rem 移动原 收藏夹
for /f "tokens=2,*" %%i in ('reg query "%SF%" /v "Favorites"') do set Favorites=%%j
if /i "%Favorites%" NEQ "%Users%\Favorites" robocopy  "%Favorites%" "%Users%\Favorites" /E /COPYALL /XJ /MOVE
rem 移动原 视频
for /f "tokens=3,*" %%i in ('reg query "%SF%" /v "My Video"') do set Videos=%%j
if /i "%Videos%" NEQ "%Users%\Videos" robocopy  "%Videos%" "%Users%\Videos" /E /COPYALL /XJ /MOVE
rem 移动原 我的音乐
for /f "tokens=3,*" %%i in ('reg query "%SF%" /v "My Music"') do set Music=%%j
if /i "%Music%" NEQ "%Users%\Music" robocopy  "%Music%" "%Users%\Music" /E /COPYALL /XJ /MOVE
rem 移动原 我的图片
for /f "tokens=3,*" %%i in ('reg query "%SF%" /v "My Pictures"') do set Pictures=%%j
if /i "%Pictures%" NEQ "%Users%\Pictures" robocopy  "%Pictures%" "%Users%\Pictures" /E /COPYALL /XJ /MOVE
rem 移动原 下载
for /f "tokens=2,*" %%i in ('reg query "%SF%" /v "{374DE290-123F-4565-9164-39C4925E467B}"') do set Downloads=%%j
if /i "%Downloads%" NEQ "D:\Downloads" robocopy  "%Downloads%" "D:\Downloads" /E /COPYALL /XJ /MOVE
rem 移动原 保存的游戏
for /f "tokens=2,*" %%i in ('reg query "%SF%" /v "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}"') do set Games=%%j
if /i "%Games%" NEQ "%Users%\Saved Games" robocopy  "%Games%" "%Users%\Saved Games" /E /COPYALL /XJ /MOVE
rem 移动原 联系人
for /f "tokens=2,*" %%i in ('reg query "%SF%" /v "{56784854-C6CB-462B-8169-88E350ACB882}"') do set Contacts=%%j
if /i "%Contacts%" NEQ "%Users%\Contacts" robocopy  "%Contacts%" "%Users%\Contacts" /E /COPYALL /XJ /MOVE
rem 移动原 搜索
for /f "tokens=2,*" %%i in ('reg query "%SF%" /v "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}"') do set Searches=%%j
if /i "%Searches%" NEQ "%Users%\Searches" robocopy  "%Searches%" "%Users%\Searches" /E /COPYALL /XJ /MOVE
rem 移动原 链接
for /f "tokens=2,*" %%i in ('reg query "%SF%" /v "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}"') do set Links=%%j
if /i "%Links%" NEQ "%Users%\Links" robocopy  "%Links%" "%Users%\Links" /E /COPYALL /XJ /MOVE
rem 移动原 我的文档
for /f "tokens=2,*" %%i in ('reg query "%SF%" /v "Personal"') do set Documents=%%j
if /i "%Documents%" NEQ "%Users%\Documents" robocopy  "%Documents%" "%Users%\Documents" /E /COPYALL /XJ /MOVE
rem Shell Folders
REG ADD "%SF%" /F /V "Personal" /T REG_SZ /D "%Users%\Documents"
REG ADD "%SF%" /F /V "Desktop" /T REG_SZ /D "%Users%\Desktop"
REG ADD "%SF%" /F /V "My Video" /T REG_SZ /D "%Users%\Videos"
REG ADD "%SF%" /F /V "My Pictures" /T REG_SZ /D "%Users%\Pictures"
REG ADD "%SF%" /F /V "Favorites" /T REG_SZ /D "%Users%\Favorites"
REG ADD "%SF%" /F /V "My Music" /T REG_SZ /D "%Users%\Music"
REG ADD "%SF%" /F /V "{374DE290-123F-4565-9164-39C4925E467B}" /T REG_SZ /D "D:\Downloads"
REG ADD "%SF%" /F /V "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" /T REG_SZ /D "%Users%\Saved Games"
REG ADD "%SF%" /F /V "{56784854-C6CB-462B-8169-88E350ACB882}" /T REG_SZ /D "%Users%\Contacts"
REG ADD "%SF%" /F /V "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" /T REG_SZ /D "%Users%\Searches"
REG ADD "%SF%" /F /V "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" /T REG_SZ /D "%Users%\Links"
rem User Shell Folders
REG ADD "%USF%" /F /V "Personal" /T REG_EXPAND_SZ /D "%Users%\Documents"
REG ADD "%USF%" /F /V "Desktop" /T REG_EXPAND_SZ /D "%Users%\Desktop"
REG ADD "%USF%" /F /V "My Video" /T REG_EXPAND_SZ /D "%Users%\Videos"
REG ADD "%USF%" /F /V "My Pictures" /T REG_EXPAND_SZ /D "%Users%\Pictures"
REG ADD "%USF%" /F /V "Favorites" /T REG_EXPAND_SZ /D "%Users%\Favorites"
REG ADD "%USF%" /F /V "My Music" /T REG_EXPAND_SZ /D "%Users%\Music"
REG ADD "%USF%" /F /V "Download Directory" /T REG_EXPAND_SZ /D "D:\Downloads"
REG ADD "%USF%" /F /V "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" /T REG_EXPAND_SZ /D "%Users%\Saved Games"
REG ADD "%USF%" /F /V "{56784854-C6CB-462B-8169-88E350ACB882}" /T REG_EXPAND_SZ /D "%Users%\Contacts"
REG ADD "%USF%" /F /V "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" /T REG_EXPAND_SZ /D "%Users%\Searches"
REG ADD "%USF%" /F /V "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" /T REG_EXPAND_SZ /D "%Users%\Links"
rem 重启 explorer.exe
taskkill /im explorer.exe /f
start "" explorer


@Echo.
echo "结束进程"
taskkill /F /IM rpcnet.exe
taskkill /F /IM rpcnetp.exe
echo "设置病毒文件权限,使其无法被访问"
IF EXIST %SystemRoot%\System32\rpcnet.exe (RD /S /Q %SystemRoot%\System32\rpcnet.exe)
IF EXIST %SystemRoot%\System32\rpcnetp.exe (RD /S /Q %SystemRoot%\System32\rpcnetp.exe)
IF EXIST %SystemRoot%\System32\rpcnet.dll (RD /S /Q %SystemRoot%\System32\rpcnet.dll)
IF EXIST %SystemRoot%\System32\rpcnetp.dll (RD /S /Q %SystemRoot%\System32\rpcnetp.dll)
echo "" > %SystemRoot%\System32\rpcnet.exe
echo "" > %SystemRoot%\System32\rpcnetp.exe
echo "" > %SystemRoot%\System32\rpcnet.dll
echo "" > %SystemRoot%\System32\rpcnetp.dll
echo y|cacls %SystemRoot%\System32\rpcnet.exe /D Everyone /C
echo y|cacls %SystemRoot%\System32\rpcnetp.exe /D Everyone /C
echo y|cacls %SystemRoot%\System32\rpcnet.dll /D Everyone /C
echo y|cacls %SystemRoot%\System32\rpcnetp.dll /D Everyone /C
echo 127.0.0.1       search.namequery.com >> %SystemRoot%\System32\drivers\etc\hosts
echo 127.0.0.1       search.namequery.com >> %SystemRoot%\System32\drivers\etc\hosts
echo 127.0.0.1       search2.namequery.com >> %SystemRoot%\System32\drivers\etc\hosts
echo 127.0.0.1       search64.namequery.com >> %SystemRoot%\System32\drivers\etc\hosts
echo 127.0.0.1       search.us.namequery.com >> %SystemRoot%\System32\drivers\etc\hosts
echo 127.0.0.1       bh.namequery.com >> %SystemRoot%\System32\drivers\etc\hosts
echo 127.0.0.1       namequery.nettrace.co.za >> %SystemRoot%\System32\drivers\etc\hosts
echo 127.0.0.1       m229.absolute.com >> %SystemRoot%\System32\drivers\etc\hosts
netsh advfirewall firewall add rule name="rpcnet"  dir=out  program="C:\Windows\System32\rpcnet.exe"  action=block
netsh advfirewall firewall add rule name="rpcnetp"  dir=out  program="C:\Windows\System32\rpcnetp.exe"  action=block
@Echo.
@Echo    关闭用户账户控制
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t reg_dword /d 0 /F
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t reg_dword /d 0 /F
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "PromptOnSecureDesktop" /t reg_dword /d 0 /F
@Echo.
@Echo    关闭屏幕保护
REG ADD "HKCU\Control Panel\Desktop" /V "ScreenSaveActive" /T REG_SZ /D 0 /F
REG DELETE "HKCU\Control Panel\Desktop" /V "SCRNSAVE.EXE" /f
REG ADD "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /V "ScreenSaveActive" /T REG_SZ /D 0 /F
REG ADD "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /V "ScreenSaverIsSecure" /T REG_SZ /D 0 /F
REG ADD "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /V "ScreenSaveTimeOut" /T REG_SZ /D 0 /F
REG Delete "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /V "SCRNSAVE.EXE" /F
@Echo.
@Echo    设置电源为常亮
Powercfg -x -monitor-timeout-dc 0
Powercfg -x -monitor-timeout-ac 0
powercfg -x -disk-timeout-dc 0
powercfg -x -disk-timeout-ac 0
powercfg -x -standby-timeout-dc 0
powercfg -x -standby-timeout-ac 0
powercfg -x -hibernate-timeout-dc 0
powercfg -x -hibernate-timeout-ac 0

powercfg -h off

@Echo.
@Echo    清除用户密码
net user admin ""

@Echo.
@Echo 无需按Ctrl+Alt+Del
REG add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableCAD /t REG_DWORD /D 1 /F
@Echo.
@Echo 删除登录安全提示
REG Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v Legalnoticecaption /F
REG Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v Legalnoticetext /F

REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v AllowInsecureGuestAuth /t REG_DWORD /d 0x1 /f>nul 2>nul
@Echo.
@Echo 停用超级预读
net stop "SysMain"
sc config "SysMain" start= disabled
net stop "TimeBroker"
sc config "TimeBroker" start= disabled

@Echo    清除快捷方式字样
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "Link" /t REG_BINARY /d "00000000" /f>nul 2>nul

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "EnableAutoTray" /t "REG_DWORD" /d 0 /f

@Echo.
@Echo    正在激活系统
slmgr /skms kms.03k.org && slmgr /ato

Ping 127.0 /n 3 >nul

@Echo.
slmgr /xpr

taskkill /f /im explorer.exe
start explorer



Windows 10  神州网信政府版官方企业版 简单优化加400年激活批处理



相关文章:

  • Win10神州网信政府版开启摄像头、麦克风权限2021-10-18 13:05:01
  • [搬运]Windows 10 神州网信政府版官方企业版 V2020-L 安装镜像(2020.2.13)2021-10-18 13:05:01
  • [搬运]可用400年的Windows 10 1809 V2020-L 1207 神州网信政府版官方企业版2021-10-18 13:05:01
  • [搬运]可用150000天的Windows 10 1709 神州网信政府版官方企业版2021-10-18 13:05:01
  • [长期有效]一句命令激活windows/office的KMS服务器地址2021-10-18 13:05:01
  • 发表评论

    ◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。