jaejar.blogg.se

Clearing startup disk
Clearing startup disk





It’s an easy-to-use and automated diagnostics disk. Easy Recovery Essentials for Windows – our repair and recovery disk.Click “Delete” (With the X in a octagon)Ī * indicates a development/testing OS.Click on the previous version (See below).Using EasyBCD, you can easily remove this bug. If you choose to delete a version from the Boot tab of msconfig, that Windows version won’t be deleted, but it won’t be displayed on the Windows Boot Manager screen. You can delete the earlier version by selecting it and then clicking Delete.Select which Windows version you’d like to boot into directly.Type msconfig in the search box or open Run.If (Test-Path $env:SystemRoot\Logs\CBS\DeepClean.Using the msconfig utility tool allows you to select which version of Windows you’d like to boot directly into when you restart your computer. Get-Process -Name cleanmgr,dismhost -ErrorAction Silentl圜ontinue | Wait-Process Second wait neccesary as CleanMgr.exe spins off separate processes.' Write-Host 'Waiting for CleanMgr and DismHost processes. Start-Process -FilePath CleanMgr.exe -ArgumentList '/sagerun:1' -WindowStyle Hidden -Wait New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files' -Name StateFlags0001 -Value 2 -PropertyType DWord Write-Host 'Enabling Temporary Files Cleanup.' New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Update Cleanup' -Name StateFlags0001 -Value 2 -PropertyType DWord This is done automatically in Windows 10 via a scheduled task.' Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\*' -Name StateFlags0001 -ErrorAction Silentl圜ontinue | Remove-ItemProperty -Name StateFlags0001 -ErrorAction Silentl圜ontinue Write-Host 'Clearing CleanMgr.exe automation settings.' However, at some point CleanMgr spawns new processes which are visible and must be waited on separately. You will find the Registry key names in the "VolumeCaches" branch.Īs far as being silent, this script attempts to start CleanMgr.exe in a hidden window. To automate other extensions, create a "StateFlags0001" property in the corresponding Registry key, as done in the New-ItemProperty lines. In this case, it removes temporary files and runs the Update Cleanup extension to purge superseded Service Pack Backup files (Windows 10 now does this automatically via a scheduled task). The following Powershell script automates CleanMgr.exe.







Clearing startup disk