After the elevated Command Prompt window opens, type the line below and press Enter:ĭISM.exe /Online /Cleanup-image /RestorehealthĪllow the DISM tool to use the Windows Update utility to provide the repair files before running the SFC tool.Select Yes once the User Account Control dialog requests permission.Once Command Prompt shows up in the search results, right-click it and select “Run as administrator.”.Go to the search box in the Start menu and type “command.”.Open the Command Prompt with admin privileges.
Here’s a simple guide on how to run the SFC command properly: Its job is to provide the files that will be used by the SFC tool for the repair process. DISM, which is short for Deployment Image Servicing and Management, is another built-in command-line tool. However, in Windows 10, you have to run DISM before running SFC. In older Windows versions, all you have to do is fire up the Command Prompt with admin privileges and run the SFC line. Microsoft provided the tool for such purposes. Thankfully, you can easily replace bad or missing system files using the System File Checker (SFC). In some cases, you might have tampered with them. These files might have been compromised by malicious programs or might be victims of application conflicts. Windows Script Host errors can be the result of faulty system files. If malware is found, and the error continues, come back to this guide and follow the above steps.The guides that follow will show you how to fix Windows Script Host errors on startup or when you launch apps.
We recommend a full scan with your current antivirus or download Malwarebytes and run a complete scan. System File Checker will now scan for and replace files from the Windows cache.Īs mentioned earlier, an infection could be the problem. This may take a few minutes.Īll you need to do is type in sfc /scannow followed by Enter. Type in DISM.exe /Online /Cleanup-image /Restorehealth and press enter. You will need to first open the Command Prompt or PowerShell as administrator. Windows 7 and Vista users can skip this step.
If you skip this step, System File Checker might not work. DISM will use Windows Update to provide any files that are needed to fix corruptions. Windows 10, Windows 8.1 or Windows 8 users will need to first run the Deployment Image Servicing and Management (DISM) tool before running the System File Checker.
Here's all you need to know to use System File Checker or Sfc /Scannow in text and video format. It is often used and recommended by techs and advanced users, however, it's relatively simple to use. Microsoft System File Checker is a useful, built-in utility that can scan for, and restore, corrupted files in Windows. Some may see more, less, or different names than seen in the example screenshot. On the right pane, scroll down to Userinit and delete and registry keys after that. Open the Registry Editor and type Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon in the search bar at the top. On the right pane, double-click Default and change the Value Data to VBSfile and reboot to see if the error is gone.Ģ: Delete Registry Values After Userinit.exe Open the Registry Editor and navigate to Computer\HKEY_CLASSES_ROOT\VBS. Be sure to back up your registry before proceeding.ġ: Return the Default Registry Value of. Note: Steps 1 and 2 require making changes to your registry. TIP: Hard to fix Windows Problems? Repair/Restore Missing Windows OS Files Damaged by Malware with a few clicks