This repository has been archived by the owner on May 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
恢复需求 #3
Comments
顶。如果有恢复的就完美了 |
同问,有没有反向恢复文件,没有的话如何恢复操作(小白一枚) |
还有一个更简单的方法,只需要将当前wifi设为计费模式即可。缺点就是换了wifi也需要设置! |
其实各位可以把这个脚本改写一下就可以恢复了,比如把增加的改成删除,把禁用的改成启用 |
求如何如何恢复 |
写了个简单的还原脚本,复制保存成.bat文件
|
非常感谢
…------------------ 原始邮件 ------------------
发件人: "f1tz/BlockWin10AU" <[email protected]>;
发送时间: 2021年2月28日(星期天) 晚上10:25
收件人: "f1tz/BlockWin10AU"<[email protected]>;
抄送: "lumia98"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [f1tz/BlockWin10AU] 恢复需求 (#3)
写了个简单的还原发送脚本,复制保存成.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 net start wuauserv sc config wuauserv start= demand 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"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
你好!很感谢你写出这个批处理文件,但是我使用后不知道怎么再恢复系统的升级,请问是否能够再写一个对应的恢复的文件?谢谢
The text was updated successfully, but these errors were encountered: