Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

恢复需求 #3

Open
windsliy opened this issue Sep 26, 2019 · 7 comments
Open

恢复需求 #3

windsliy opened this issue Sep 26, 2019 · 7 comments

Comments

@windsliy
Copy link

你好!很感谢你写出这个批处理文件,但是我使用后不知道怎么再恢复系统的升级,请问是否能够再写一个对应的恢复的文件?谢谢

@gowk
Copy link

gowk commented Oct 28, 2019

顶。如果有恢复的就完美了

@JIANOP
Copy link

JIANOP commented Mar 3, 2020

同问,有没有反向恢复文件,没有的话如何恢复操作(小白一枚)

@zippo88888888
Copy link

还有一个更简单的方法,只需要将当前wifi设为计费模式即可。缺点就是换了wifi也需要设置!

@id1988
Copy link

id1988 commented Jun 14, 2020

其实各位可以把这个脚本改写一下就可以恢复了,比如把增加的改成删除,把禁用的改成启用

@sengoku-f
Copy link

其实各位可以把这个脚本改写一下就可以可以恢复了,某种把增加的改成删除,把一部分的改成启用

求如何如何恢复

@CHFreezer
Copy link

CHFreezer commented Feb 28, 2021

写了个简单的还原脚本,复制保存成.bat文件
原脚本里面杀了win10易升以及改win10易升的acl,因为在我自己的机器上无法重现,所以就没管
任务计划部分,原脚本是删除而不是禁用,所以无法恢复
其他部分就是照抄然后执行逆向动作

del /q /f %SYSTEMDRIVE%\NAU.reg 2>nul
echo Windows Registry Editor Version 5.00 >> %SYSTEMDRIVE%\NAU.reg
echo.>> %SYSTEMDRIVE%\NAU.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]>> %SYSTEMDRIVE%\NAU.reg
echo "DoNotConnectToWindowsUpdateInternetLocations"=- >> %SYSTEMDRIVE%\NAU.reg
echo.>> %SYSTEMDRIVE%\NAU.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]>> %SYSTEMDRIVE%\NAU.reg
echo "NoAutoUpdate"=->> %SYSTEMDRIVE%\NAU.reg
REG IMPORT %SYSTEMDRIVE%\NAU.reg
del /q /f %SYSTEMDRIVE%\NAU.reg 2>nul

sc config wuauserv start= demand
net start wuauserv

netsh advfirewall firewall delete rule name="Block_Windows10UpgraderApp" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\Windows10UpgraderApp.exe"
netsh advfirewall firewall delete rule name="Block_WinREBootApp32" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp32.exe"
netsh advfirewall firewall delete rule name="Block_WinREBootApp64" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp64.exe"
netsh advfirewall firewall delete rule name="Block_bootsect" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\bootsect.exe"
netsh advfirewall firewall delete rule name="Block_DW20" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\DW20.EXE"
netsh advfirewall firewall delete rule name="Block_DWTRIG20" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\DWTRIG20.EXE"
netsh advfirewall firewall delete rule name="Block_GatherOSState" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\GatherOSState.EXE"
netsh advfirewall firewall delete rule name="Block_GetCurrentRollback" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\GetCurrentRollback.EXE"
netsh advfirewall firewall delete rule name="Block_HttpHelper" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\HttpHelper.exe"
netsh advfirewall firewall delete rule name="Block_UpdateAssistant" dir=in program="%SYSTEMROOT%\UpdateAssistant\UpdateAssistant.exe"
netsh advfirewall firewall delete rule name="Block_UpdateAssistantCheck" dir=in program="%SYSTEMROOT%\UpdateAssistant\UpdateAssistantCheck.exe"
netsh advfirewall firewall delete rule name="Block_Windows10Upgrade" dir=in program="%SYSTEMROOT%\UpdateAssistant\Windows10Upgrade.exe"
netsh advfirewall firewall delete rule name="Block_UpdateAssistantV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\UpdateAssistant.exe"
netsh advfirewall firewall delete rule name="Block_UpdateAssistantCheckV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\UpdateAssistantCheck.exe"
netsh advfirewall firewall delete rule name="Block_Windows10UpgradeV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\Windows10Upgrade.exe"

@id1988
Copy link

id1988 commented Mar 1, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants