How to Fix Windows Error 126

This work around will help you troubleshoot error 126 on Windows 8.1/ 8, 7 and Vista.

Fix error126
Step 1

Download Error 126 Fix-it Wizard

Your System: Windows, English?
Compatible with Windows 8.1, 8, 7 & Vista.
File size: 2.04MB

Follow this procedure to download:

  • Click here to download (error 126) repair tool.
  • Double click on the setup file and follow the on-screen
    instructions to install the product.
  • Run a Scan and fix the detected errors by clicking the
    "Fix Errors" button.
Download Repair Tool Microsoft Pinpoint

Step-by-Step Guide for Windows 8/8.1, 7 & Vista

It is important that you carry out these steps in order to fix the problem effectively:


Modify System Variables

Modify the system variables as shown under:

For Windows 8.1/ 8 and Earlier Versions:

  • Right click your My Computer desktop shortcut, and select Properties
  • Click “Advanced system settings” link displayed on left side panel
  • System Properties dialog will appear with Advanced tab opened as default
  • Click “Environment Variables” button
  • There will be two list boxes namely “User variables” and “System Variables”
  • In the latter, you’ll find “Path” in the “Variable” variable. Select that
  • Click the Edit button
  • You may find some value specified in “Variable Value” textbox. Do not replace it. Just type a semi colon (;) at the end of the existing value and the new path specified:

    a) In case “Variable Value” textbox is empty, type below command:

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\wbem

    b) In case “Variable Value” textbox is filled with some paths, type below command:

    ;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\wbem
  • Click OK | OK | OK
  • Restart your machine

Reinstall iTunes and Other Products

If you’re experiencing error 126 with iTunes or other Apple products, it means there is something definitely wrong with your system. Your program files can be missing or overwritten with corrupt version. In that case you’ll have to reinstall the whole product to get your problem solved.

For Windows 8.1/ 8:

  • Press Windows Key + X
  • Click “Programs and Features”
  • Right click a program that you would like to uninstall, select Uninstall option
    Uninstall the following programs:

    Apple Application Support, Apple Mobile Device Support, Apple Software Update, Bonjour, iCloud, iTunes, MobileMe
  • Reboot your machine
  • Double click My Computer desktop shortcut and remove the following folders:

    C:\Program Files\Bonjour
    C:\Program Files\Common Files\Apple
    C:\Program Files\iPod
    C:\Program Files\iTunes
  • Download fresh setup of iTunes from its official website and install it on your PC

For Earlier Versions of Windows:

  • Click Start, and then select Control Panel
  • Click Programs | Uninstall a Program
  • Refer Step # 3-6 under Windows 8.1/ 8 user’s paragraph

Set Windows Defender to Run Automatically

The startup type of Windows Defender might be changed to anything other than “Automatic”. In that case you’ll have to reset it to “Automatic” in order to fix error 126.

For Windows 8.1/ 8 and Earlier Versions:

  • Press Windows Key + R
  • Type “Services.msc” and click OK
  • Scroll down, locate and right click “Windows Defender” and select Properties
  • Under General tab and Startup Type drop down box select Automatic option
  • Click Apply, and then OK

Delete Repository Folder

Error 126 is displayed when the files stored in Repository folder are corrupted. First stop Windows Management Instrumentation service and then delete this folder. This service uses the folder so it’s important to stop the service before proceeding.

For Windows 8.1/ 8 and Earlier Versions:

  • Press Windows Key+ R
  • Type “Services.msc” and click OK
  • Right click “Windows Management Instrumentation” service and select Stop
  • Close the tool
  • Double click My Computer desktop icon
  • Browse the following folder:

    C:\Windows\System32\Wbem
  • Delete “Repository” folder
  • Restart your computer so that the service will automatically restart itself

Copy Missing File from the Installation Disc

The i386 folder in Windows installation disc contains srvsvc.dll file. Nevertheless to say, the same file is copied to your hard disk during Windows installation.

Error 126 appears when srvsvc.dll file is missing. With Command Prompt copy the file again to your hard disk in the appropriate directory. This will prevent future occurrence of the error message.

For Windows 8.1/ 8:

  • Insert Windows 8.1/ 8 installation disc
  • Press the Windows Key + X
  • Click “Command Prompt (Admin)”
  • Type the following command:

    expand X:\i386\srvsvc.dl_ C:\Windows\system32\srvsvc.dll
    (In above command, replace “X” with appropriate DVD Drive letter)
  • Press ENTER

For Earlier Versions of Windows:

  • Click the Start menu, hover your mouse at All Programs | Accessories
  • Right click Command Prompt, choose Run as administrator
  • Refer Step # 4-5 from Windows 8.1/ 8 users paragraph

Repair WinSock

Repair the WinSock with the command given below.

For Windows 8.1/ 8 and Earlier Versions:

  • Open Command Prompt as mentioned in “Copy missing file from installation disc” paragraph
  • Type the following commands:

    netsh winsock reset
    netsh advfirewall reset
  • When you’re done executing these commands, simply restart your PC

Reregister DLL File

The DLL file registration entries can be corrupt. Unregister and reregister the DLL file as shown below:

For Windows 8.1/ 8 and Earlier Versions:

  • Open Command Prompt as mentioned in “Copy missing file from installation disc” paragraph
  • Type the following command-

    RegSvr32.exe MSSTDFMT.DLL
  • Press ENTER.
Fix error 126

Download Error 126 Fix-it Wizard

Your System: Windows, English?
Compatible with Windows 8.1, 8, 7 & Vista.
File size: 2.04MB

Software screen
  • Ratings:5 stars
  • Total downloads:5231555
  • Download File Size:2.04MB
  • Download Time:2sec on dsl, 2min on dial-up
  • Compatibility:Windows 8.1, Windows 8, Windows 7, Windows Vista, Windows ME, Windows 2000 32Bit & 64Bit OS Systems
  • Support: Yes
Tucows
Top 5 Stars