Recovery options in Windows 10
If you’re having problems with your PC, the following table can help you decide which recovery option to use.
See this section
Your PC isn’t working well and you recently installed an update.
Your PC isn’t working well and it’s been a while since you installed an app, driver, or update.
Your PC won’t start, you haven’t created a recovery drive, and resetting your PC didn’t work.
Your PC won’t start and you haven’t created a recovery drive.
Your PC won’t start and you’ve created a recovery drive.
You want to reinstall your previous operating system.
Your PC isn’t working well and you recently installed an app.
Click one of the recovery options below and follow the steps to try to get things working again.
If you’ve recently installed a Windows update, uninstall the update to try to resolve the issue.
Select the Start button, then select Settings > Update & Security > Windows Update > View your update history > Uninstall updates.
View update history settings
Right-click the update you want to remove, and then select Uninstall.
Important: If you’ve encrypted your device, you’ll need your BitLocker key to reset your PC If you don’t know your BitLocker key, see Find my BitLocker recovery key.
Resetting reinstalls Windows 10, but lets you choose whether to keep your files or remove them, and then reinstalls Windows. You can reset your PC from Settings, the sign-in screen, or by using a recovery drive or installation media.
Reset your PC from Settings
Select the Start button, then select Settings > Update & Security > Recovery .
Open Recovery settings
Under Reset this PC, select Get started and then choose from the options and/or settings in the table below.
Keep my files > Change settings > Preinstalled apps On
Reinstalls Windows 10 and keeps your personal files.
Removes apps and drivers you installed.
Removes changes you made to settings.
Restores any apps your PC manufacturer installed if your PC came with Windows 10.
Keep my files > Change settings > Preinstalled apps Off
Reinstalls Windows 10 and keeps your personal files.
Removes apps and drivers you installed.
Removes changes you made to settings.
Removes any apps your PC manufacturer installed.
Reinstalls Windows 10 and removes your personal files.
Removes apps and drivers you installed.
Removes changes you made to settings.
Removes any apps your PC manufacturer installed. (If your PC came with Windows 10, apps from your PC manufacturer will be reinstalled.)
Note: Remove everything > Change settings gives you two options.
Data erasure On removes files and cleans the drive. If you’re planning to donate, recycle, or sell your PC, use this option. This might take an hour or two, but it makes it harder for other people to recover files you’ve removed.
Data erasure Off just removes files. It takes less time, but is less secure.
Reset your PC from the sign-in screen
If you can’t open Settings, you can reset your PC from the sign-in screen. Here’s how:
Press Windows logo key + L to get to the sign-in screen, and then restart your PC by pressing the Shift key while you select the Power button > Restart in the lower-right corner of the screen.
Your PC will restart in the Windows Recovery Environment (WinRE) environment.
On the Choose an option screen, select Troubleshoot > Reset this PC, and then choose one of the options in the previous table.
Connect the installation media you created to your PC and reinstall Windows 10.
Open File Explorer and select the drive with the installation media.
From the root directory of the drive, double-click setup.exe, and then select Yes when asked if you’d like to allow the app to make changes to your device.
Select Change what to keep.
Select one of the following options, and then select Next:
Keep personal files and apps – This will preserve your personal data, apps, and settings.
Keep personal files only – This will preserve your personal data and settings, but all your apps will be removed.
Keep nothing – This will remove all personal data, settings, and apps.
Warning: You cannot undo a reinstallation of Windows 10. Be sure to back up your files first if you choose the Keep nothing option.
To finish, select Install to start reinstalling Windows 10 on your PC.
Your PC will restart several times during the resinstallation.
Important: If you’ve encrypted your device, you’ll need your BitLocker key to use a recovery drive to restore or reset your PC If you don’t know your BitLocker key, see Find my BitLocker recovery key.
If your PC won’t start and you haven’t created a recovery drive, download installation media and use it to restore from a system restore point or reset your PC.
Download the Windows 10 media creation tool and then run it.
Select Create installation media for another PC.
Choose a language, edition, and architecture (64-bit or 32-bit).
Follow the steps to create installation media, and then select Finish.
Connect the installation media you created to your nonfunctional PC, and then turn it on.
On the initial setup screen, enter your language and other preferences, and then select Next. If you don’t see the setup screen, your PC might not be set up to boot from a drive. Check your PC manufacturer’s website for info on how to change your PC’s boot order, and then try again.
Select Repair your computer.
On the Choose an option screen, select Troubleshoot. From there, you can:
Restore from a system restore point by selecting Advanced options > System Restore. This will remove recently installed apps, drivers, and updates that might be causing your PC problems. Restoring from a restore point won’t affect your personal files.
Important: If you’ve encrypted your device, you’ll need your BitLocker key to use a recovery drive to restore or reset your PC If you don’t know your BitLocker key, see Find my BitLocker recovery key.
If your PC won’t start, you can use a recovery drive to restore from a system restore point or recover your PC. For info on how to create a recovery drive on a working PC, see Create a recovery drive.
Note: If you are using a Surface, see Creating and using a USB recovery drive for Surface to download and create a USB recovery image specifically for your Surface device.
To restore or recover using the recovery drive:
Connect the recovery drive and turn on your PC.
Press Windows logo key + L to get to the sign-in screen, and then restart your PC by pressing the Shift key while you select the Power button> Restart in the lower-right corner of the screen.
Your PC will restart in the Windows Recovery Environment (WinRE) environment.
On the Choose an option screen, select Troubleshoot, and then select one of the following two options. (If you don’t see the Choose your option screen, your PC might not be set up to boot from a drive. Check your PC manufacturer’s website for info on how to change your PC’s boot order.)
To restore from a system restore point, select Advanced Options > System Restore. This won’t affect your personal files, but it will remove recently installed apps, drivers, and updates that might be causing your PC problems.
To reinstall Windows 10, select Advanced Options > Recover from a drive. This will remove your personal files, apps and drivers you installed, and changes you made to settings.
For a limited time after upgrading to Windows 10, you’ll be able to go back to your previous version of Windows by selecting the Start button, then select Settings > Update & Security > Recovery and then selecting Get started under Go back to the previous version of Windows 10. This will keep your personal files, but it’ll remove apps and drivers installed after the upgrade, as well as any changes you made to settings. In most cases, you’ll have 10 days to go back.
Open Recovery settings
To go back, you’ll need to:
Keep everything in the windows.old and $windows.
bt folders after the upgrade.
Remove any user accounts you added after the upgrade.
Know the password you used to sign in to Windows 7 or Windows 8.1 (if you used one).
Have the USB drive you used to upgrade to Windows 10 (if you used one).
Note: If you go back to Windows 8.1, some apps that came with Windows, like Mail and People, might not work anymore. To fix the apps, reinstall them from the Microsoft Store.
Note: The option in Settings to go back to your previous version of Windows is only available for a limited time after upgrading.
Info for Windows Insiders
If you’re an Insider and the current preview build isn’t working for you, select the Start button, then select Settings > Update & Security > Recovery . Under Go back to the previous version of Windows 10, select Get Started. This won’t remove your personal files, but it’ll remove recently installed apps and drivers, and change settings back to their defaults.
Going back to an earlier build won’t remove you from the Insider Program. When the next preview build is ready, it’ll be installed on your PC.
This option takes your PC back to an earlier point in time, called a system restore point. Restore points are generated when you install a new app or driver, and when you create a restore point manually. Restoring won’t affect your personal files, but it will remove apps, drivers, and updates installed after the restore point was made.
In the search box on the taskbar, type control panel,andthen choose it from the list of results
In the Control Panel search box, type recovery.
Select Recovery > Open System Restore.
In the Restore system files and setting box, select Next.
Select the restore point that you want to use in the list of results, and then select Scan for affected programs.
If you don’t see the restore point that you want to use, select the Show more restore points check box to see more restore points.
If you’re not seeing any restore points, it might be because system protection isn’t turned on. Here’s how to check:
In the search box on the taskbar, type control panel,andthen choose it from the list of results.
In the Control Panel search box, type recovery.
Select Recovery > Configure System Restore > Configure and see if the Turn on system protection option is selected.
If the Turn on system protection option is not selected, system protection isn’t turned on and there aren’t any restore points. In this scenario, you won’t be able to recovery your PC using a system restore point and will need to use one of the other recovery options listed on this page.
If the Turn on system protection option is selected, continue with step 6.
You’ll see a list of items that will be deleted if you remove this restore point. If you’re OK with the deletions, select Close> Next > Finish.
Сброс настроек службы обновлений Windows Update
В этой статье мы покажем, как исправить ошибки и восстановить работу службы обновления Windows с помощью сброса конфигурации агента и службы Windows Update. Как правило, это самый эффективный и простой способ решить проблему с работой службы обновлений Windows, если обновления не загружаются или происходят ошибки при установке обновлений.
Обычно для отладки и дебага ошибок службы обновления Windows администратору необходимо проанализировать коды ошибок в файле журнала обновлений %windir%\WindowsUpdate.log (в Windows 10 получить файл WindowsUpdate.log можно таким способом). Количество возможных ошибок, с которыми может столкнуться администратор при анализе журнала обновлений исчисляется десятками (список всех ошибок Windows Update) и процесс их разрешения в основном нетривиальный. В некоторых случаях вместо детального анализа ошибок Windows Update гораздо быстрее и проще сначала произвести полный сброс настроек агента и службы Windows Update. После сброса Windows Update вы можете выполнить сканирование и поиск обновлений.
Средство устранения неполадок Центра обновления Windows
Прежде чем перейти к сбросу конфигурации центра обновления Windows настоятельно рекомендуем сначала попробовать более простое и эффективное средство для автоматического исправления проблем в службе обновления Windows – средство устранения неполадок Центра обновления Windows (Windows Update Troubleshooter).
Скачайте и запустите Windows Update Troubleshooter для вашей версии Windows:
- Windows10 – wu10.diagcab ( https://aka.ms/wudiag ) (либо запустите локальную версию инструмента: Пуск -> Параметры -> Обновления и безопасность -> Устранение неполадок -> Центр обновлений Windows (Start -> Settings -> Updates and Security -> Troubleshoot -> Windows Updates Troubleshooter);
- Windows 7и Windows 8.1 — WindowsUpdate.diagcab ( https://aka.ms/diag_wu ).
Дождитесь пока средство устранения неполадок Центра обновления Windows просканирует систему и попытается автоматически исправить все ошибки в службе Windows Update и связанных компонентах.
В моем случае была обнаружена и исправлена потенциальная ошибка в базе данных Центра обновления Windows. После этого осталось перезагрузить компьютер и попробовать выполнить поиск обновлений. Если обновления не загружаются или не устанавливаются, перейдите к следующему этапу.
Сброс настроек Windows Update из командной строки
Процесс сброса настроек агента и службы обновления Windows состоит из нескольких этапов. Все описанные операции выполняются в командной строке и собраны в один bat файл (готовый скрипт можно скачать по ссылке ниже).
С помощью данного скрипта можно полностью сбросить конфигурацию службы Центра обновлений Windows, и очистить локальный кэш обновлений. Скрипт является универсальный и будет работать как в Windows 7, Windows 8.1 и Windows 10, так и в Windows Server 2016/ 2012 R2/ 2008 R2. Скрипт помогает устранить большинство типовых ошибок в работе службы Windows Update, когда центр обновлений перестает загружать новые обновления или пишет, что при установке обновления возникают ошибки.
Итак, по порядку о том, что делает скрип:
- Остановка службы Windows Update (Центр обновлений Windows), BITS и службы криптографии:
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
taskkill /im wuauclt.exe /f - Удаление служебных файлов qmgr*.dat в каталоге %ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\:
Del «%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat» - Переименовываем служебные каталоги, в которых хранятся конфигурационные файлы и кэш обновлений (в случае необходимости их можно будет использовать как резервные копии). После перезапуска службы обновления, эти каталоги автоматически пересоздадутся:
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak - Удаление старого журнала windowsupdate.log
del /f /s /q %windir%\windowsupdate.log - Сброс разрешений на службы BITS и Windows Update (в случае, если права на службы были изменены)
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY) (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA) (A;;CCLCSWLOCRRC;;;AU) (A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY) (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA) (A;;CCLCSWLOCRRC;;;AU) (A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset cryptsvc D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD)
sc.exe sdset trustedinstaller D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD) - Перерегистрация файлов системных динамических библиотек (dll), связанных со службами BITS и Windows Update:
cd /d %windir%\system32
regsvr32.exe /U /s vbscript.dll
regsvr32.exe /U /s mshtml.dll
regsvr32.exe /U /s msjava.dll
regsvr32.exe /U /s msxml.dll
regsvr32.exe /U /s actxprxy.dll
regsvr32.exe /U /s shdocvw.dll
regsvr32.exe /U /s Mssip32.dll
regsvr32.exe /U /s wintrust.dll
regsvr32.exe /U /s initpki.dll
regsvr32.exe /U /s dssenh.dll
regsvr32.exe /U /s rsaenh.dll
regsvr32.exe /U /s gpkcsp.dll
regsvr32.exe /U /s sccbase.dll
regsvr32.exe /U /s slbcsp.dll
regsvr32.exe /U /s cryptdlg.dll
regsvr32.exe /U /s Urlmon.dll
regsvr32.exe /U /s Oleaut32.dll
regsvr32.exe /U /s msxml2.dll
regsvr32.exe /U /s Browseui.dll
regsvr32.exe /U /s shell32.dll
regsvr32.exe /U /s atl.dll
regsvr32.exe /U /s jscript.dll
regsvr32.exe /U /s msxml3.dll
regsvr32.exe /U /s softpub.dll
regsvr32.exe /U /s wuapi.dll
regsvr32.exe /U /s wuaueng.dll
regsvr32.exe /U /s wuaueng1.dll
regsvr32.exe /U /s wucltui.dll
regsvr32.exe /U /s wups.dll
regsvr32.exe /U /s wups2.dll
regsvr32.exe /U /s wuweb.dll
regsvr32.exe /U /s scrrun.dll
regsvr32.exe /U /s msxml6.dll
regsvr32.exe /U /s ole32.dll
regsvr32.exe /U /s qmgr.dll
regsvr32.exe /U /s qmgrprxy.dll
regsvr32.exe /U /s wucltux.dll
regsvr32.exe /U /s muweb.dll
regsvr32.exe /U /s wuwebv.dllregsvr32.exe /s vbscript.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s msjava.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s Mssip32.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s Urlmon.dll
regsvr32.exe /s Oleaut32.dll
regsvr32.exe /s msxml2.dll
regsvr32.exe /s Browseui.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s Mssip32.dll
regsvr32.exe /s atl.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll - Сброс параметров Winsock netsh winsock reset
- Сброс параметров системного прокси netsh winhttp reset proxy
- Опционально. При использовании локального сервера WSUS, возможно дополнительно сбросить текущую привязку клиента к серверу WSUS путем удаления следующих параметров в ветке HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate:
REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v AccountDomainSid /f
REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v PingID /f
REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v SusClientId /f
REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v TargetGroup /f
REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v WUServer /f
REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v WUStatusServer /f - Запуск остановленных служб:
sc.exe config wuauserv start= auto
sc.exe config bits start= delayed-auto
sc.exe config cryptsvc start= auto
sc.exe config TrustedInstaller start= demand
sc.exe config DcomLaunch start= auto
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc - Опционально. В некоторых случая требуется установить/переустановить последнюю версию агента Windows Update Agent (WUA). Скачать актуальную версию агента можно со страницы https://support.microsoft.com/en-us/kb/949104. Нужно скачать файл для вашей версии Windows.
Актуальная версия агента WUA для Windows 7 SP1 x64 — 7.6. Принудительная переустановка агента WindowsUpdate выполняется следующими командами:
- для Windows 7 x86: WindowsUpdateAgent-7.6-x86.exe /quiet /norestart /wuforce
- для Windows 7 x64: WindowsUpdateAgent-7.6-x64.exe /quiet /norestart /wuforce
Осталось перезагрузить компьютер и запустить синхронизацию с сервером Windows Update /WSUS.
wuauclt /resetauthorization /detectnow
Затем зайдите в Центр обновления и проверьте, пропали ли проблемы при поиске, скачивании и установке обновлений.
Сам скрипт reset_win_update.bat можно скачать по ссылке reset_win_update.zip (пункты 9 и 11 в скрипте не выполняются, т.к. являются опциональными). Скрипт нужно скачать, распаковать и запустить с правами администратора.
После этого перезагрузите компьютер, затем зайдите в Центр обновлений и проверьте, пропали ли проблемы при поиске, скачивании и установке обновлений.
Если обновления начали корректно скачиваться и устанавливается, можно удалить папки резервные копии папок:
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
Скрипт Reset Windows Update Agent
В галерее скриптов Technet есть довольно полезный и простой скрипт для сброса компонентов центра обновлений — Reset Windows Update Agent. Скрипт универсальный и подходит для всех версий Windows: начиная с Windows XP и заканчивая последними версиями Windows 10. Рассмотрим, как им пользоваться.
- Скачайте архив ResetWUEng.zip здесь (https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc) и распакуйте его;
- Запустите файл ResetWUEng.cmd с правами администратора;
- Скрипт определит вашу версию ОС (в моем примере это Windows 10) и предложит 18 различных опций. Некоторые из них напрямую не относятся к сбросу настроек агента WU, но могут быть полезны для исправления различных неисправностей в Windows (проверка диска chkdsk, исправление ошибок в образе Windows, сброс Winsock, очистка временных файлов и т.д.);
- Для сброса настроек Windows Update как правило достаточно использовать опцию 2 —ResetstheWindowsUpdateComponents (Сбросить компоненты службы обновления Windows). Нажмите 2 и Enter;
- Скрипт автоматически выполнит все действия, которые мы описали выше при выполнении ручного сброса агента обновлений Windows из командной строки.