How to fix Error 119 on Windows 11

Windows 11 Error 119: “The System Does Not Support the Command Requested”

Why This Error Happens

Error 119 typically occurs when a device driver, filesystem driver, or storage controller does not recognize or support the specific I/O control command (IOCTL) being sent to it by Windows or an application. This often happens due to outdated, corrupted, or mismatched drivers—especially for storage devices, USB controllers, or virtual disk drivers—that lack the code required to process the request. It can also surface when legacy hardware or software attempts to use a command set that has been deprecated in Windows 11, or when a filesystem (like ReFS or exFAT) is accessed by a driver that only supports NTFS-specific commands.

Step-by-Step Resolution Guide

  1. Update the Device Driver
  • Press Win + X and select Device Manager.
  • Locate the device throwing the error (commonly under Disk drives, Storage controllers, or Universal Serial Bus controllers).
  • Right-click the device, select Update driver, then choose Search automatically for drivers.
  • If an update is found, install it and restart your PC.
  1. Roll Back or Reinstall the Driver
  • In Device Manager, right-click the problematic device and select Properties.
  • Go to the Driver tab. If a Roll Back Driver button is available, click it (useful if the error started after a recent update).
  • If not available, click Uninstall Device, restart your PC, and let Windows reinstall the default driver.
  1. Run CHKDSK to Rule Out Filesystem Corruption
  • Open Command Prompt as Administrator (Win + X → Terminal (Admin)).
  • Run: chkdsk C: /f /r
  • If prompted, type Y and restart your PC to allow the scan to complete before Windows loads.
  1. Check for Windows Updates
  • Go to Settings → Windows Update → Check for updates.
  • Install any pending updates, including Optional updates that may contain driver fixes.
  • Restart your PC after updates are applied.
  1. Verify Registry/Filesystem Compatibility (Advanced)
  • Open Command Prompt as Administrator.
  • Run fsutil fsinfo volumeinfo C: to confirm the filesystem type.
  • If using exFAT or ReFS with legacy software, consider reformatting the affected drive to NTFS (back up data first) via File Explorer → right-click drive → Format.

Alternative or Verification Steps

  • Verify the fix: Reproduce the original action that triggered Error 119 (e.g., accessing the drive, running the software command). If no error appears and Event Viewer (eventvwr.msc) shows no new Error 119 entries under Windows Logs → System, the issue is resolved.
  • Alternative: If the error persists and is tied to a specific third-party application, check the vendor’s website for a compatibility patch for Windows 11, as older software may issue outdated IOCTL commands unsupported by current Windows drivers.

How to fix Error 120 on Windows 11

Why This Error Happens

Error 120 (ERROR_CALL_NOT_IMPLEMENTED) occurs when an application attempts to call a Windows API function that the current system configuration does not support—commonly triggered by outdated SMB/network protocols, legacy drivers, or third-party software calling deprecated system calls. This frequently appears when accessing mapped network drives, using older backup/imaging tools, or when a file system filter driver (like antivirus or disk encryption software) intercepts a call incompatible with Windows 11’s updated kernel. Corrupted system files or an outdated driver stack can also cause the OS to report the function as unsupported even though it should normally exist.

Step-by-Step Resolution Guide

  1. Run System File Checker and DISM to repair corrupted OS components:
  • Open Command Prompt as Administrator.
  • Run: sfc /scannow
  • Then run: DISM /Online /Cleanup-Image /RestoreHealth
  • Restart your PC after completion.
  1. Update or reinstall the driver associated with the failing function (often storage, network, or USB drivers):
  • Open Device Manager (devmgmt.msc).
  • Locate the affected device category (e.g., Network Adapters, Disk Drives).
  • Right-click → Update driver → Search automatically for drivers.
  • If the issue started recently, try Roll Back Driver instead.
  1. Disable SMB1 and re-enable SMB2/3 if the error occurs during network drive access:
  • Open Control Panel → Programs → Turn Windows features on or off.
  • Uncheck SMB 1.0/CIFS File Sharing Support.
  • Ensure SMB Direct is checked, then restart your PC.
  1. Check for third-party software conflicts (antivirus, backup tools, disk utilities):
  • Temporarily disable third-party antivirus/firewall software.
  • Reproduce the error. If it disappears, uninstall and reinstall the conflicting software with the latest Windows 11–compatible version.
  1. Update Windows 11 fully via Settings → Windows Update → Check for updates, including optional driver updates, since Microsoft frequently patches legacy API compatibility issues in cumulative updates.

Alternative or Verification Steps

  • After applying fixes, re-run the exact action that triggered Error 120 (e.g., accessing the network share, running the backup job) to confirm it completes without the “function not supported” message.
  • If the error persists, try running the application in Compatibility Mode (right-click the .exe → Properties → Compatibility tab → select an earlier Windows version) as a temporary workaround while awaiting a vendor update.

How to fix Error 121 on Windows 11

Windows 11 Error 121: “The Semaphore Timeout Period Has Expired”

Why This Error Happens

Error 121 occurs when a data transfer between two devices (commonly over network shares, SMB connections, or USB/external drives) takes longer to acknowledge than the system’s allotted timeout window, causing Windows to abandon the connection. This is typically caused by unstable network connections, faulty or outdated network adapter/USB drivers, or corrupted SMB (Server Message Block) protocol settings. Physical issues like damaged cables, failing hardware, or interference on wireless connections can also trigger this timeout.

Step-by-Step Resolution Guide

  1. Update Network/USB Drivers
  • Press Win + X → select Device Manager.
  • Expand Network adapters (or Disk drives for USB issues), right-click your device → Update driver → Search automatically for drivers.
  • Restart your PC after updating.
  1. Disable SMB Auto-Tuning (for network share issues)
  • Open Command Prompt as Administrator.
  • Run: netsh interface tcp set global autotuninglevel=disabled
  • Restart the computer and re-test the file transfer.
  1. Check and Repair Network Adapter Settings
  • Go to Settings → Network & Internet → Advanced network settings → Network adapter options.
  • Right-click your active adapter → Properties → Configure → Advanced tab.
  • Locate Speed & Duplex and set it manually to match your router/switch (e.g., “100 Mbps Full Duplex”) instead of “Auto Negotiation.”
  1. Inspect Physical Connections and Hardware
  • Swap Ethernet cables or USB cables/ports to rule out physical damage.
  • If using Wi-Fi, move closer to the router or switch to a wired connection temporarily to isolate the issue.
  1. Run System File Checker (SFC) and CHKDSK
  • Open Command Prompt as Administrator.
  • Run: sfc /scannow
  • Then run: chkdsk C: /f /r and restart if prompted.

Alternative or Verification Steps

  • Verify the fix: Attempt the same file transfer or network operation that previously failed; monitor Event Viewer (eventvwr.msc) under Windows Logs → System to confirm Error 121 no longer appears.
  • Alternative solution: If the issue persists on a mapped network drive, try disabling Large Send Offload (LSO) in the network adapter’s Advanced properties, as this feature is a known contributor to semaphore timeout errors on certain NIC models.

How to fix Error 122 on Windows 11

Troubleshooting Guide: Error 122 – “The Data Area Passed to a System Call Is Too Small”

Why This Error Happens

Error 122 (ERRORINSUFFICIENTBUFFER) occurs when a system call receives a memory buffer that is too small to hold the data being returned by the operating system. This is typically triggered by corrupted system files, outdated device drivers (especially network or storage drivers), or a third-party application incorrectly allocating buffer sizes when communicating with the Windows API. It can also surface during disk operations, printing tasks, or network share access when the underlying driver stack has become misconfigured or damaged.

Step-by-Step Resolution Guide

  1. Run System File Checker (SFC) and DISM
    Open Command Prompt as Administrator and run:
   sfc /scannow

Follow with:

   DISM /Online /Cleanup-Image /RestoreHealth

Restart your PC once both commands complete.

  1. Update Network and Storage Drivers
  • Go to Settings > Windows Update > Advanced options > Optional updates > Driver updates.
  • Alternatively, open Device Manager, expand Network adapters and Disk drives, right-click each device, and select Update driver > Search automatically for drivers.
  1. Check and Repair Disk Errors
    Open Command Prompt as Administrator and run:
   chkdsk C: /f /r

Confirm the scan on next restart if prompted, since the drive is in use.

  1. Reset TCP/IP Stack (if error occurs during network operations)
    Run the following commands in an elevated Command Prompt:
   netsh int ip reset
   netsh winsock reset

Restart your computer afterward.

  1. Update the Application Triggering the Error
    If the error is tied to a specific third-party app (e.g., backup software or a printer utility), check the vendor’s website for the latest version, as this is often a known bug fixed in updates.

Alternative or Verification Steps

  • Verify the fix: Reproduce the original action that caused Error 122 (e.g., printing, copying files, or running the affected app) and confirm it completes without the error.
  • Alternative fix: If the issue persists, perform a System Restore to a point before the error started occurring, via Settings > System > Recovery > Advanced startup.

How to fix Error 123 on Windows 11

Windows 11 Error 123: The Filename, Directory Name, or Volume Label Syntax Is Incorrect

Why This Error Happens

Error 123 occurs when Windows encounters invalid characters, reserved names, or malformed syntax in a file path, command, or script. This is commonly triggered by illegal characters (such as *, ?, <, >, |, :, or "), paths exceeding the 260-character limit (MAX_PATH), or improperly formatted commands in batch scripts, Command Prompt, or PowerShell. It can also arise from copy-paste errors where hidden Unicode characters or extra spaces get embedded into a path.

Step-by-Step Resolution Guide

  1. Check the file/folder path for invalid characters
    Open File Explorer, navigate to the affected file or folder, and inspect the name for characters like \ / : * ? " < > |. Rename the file/folder removing any special characters — right-click → Rename.

  2. Verify the path length
    Long paths exceeding 260 characters can trigger this error. Move the file closer to the root drive (e.g., C:\Data\file.txt instead of a deeply nested folder), or enable long path support:

  • Open Registry Editor (regedit)
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
  • Set LongPathsEnabled to 1
  • Restart your PC
  1. Inspect Command Prompt/PowerShell syntax
    If the error occurs while running a command (e.g., xcopy, robocopy, del), ensure paths with spaces are wrapped in quotes:
   xcopy "C:\My Folder\file.txt" "D:\Backup\"

Also check for trailing backslashes before closing quotes, as these can break syntax parsing.

  1. Check batch/script files for hidden characters
    If the error originates from a .bat or .ps1 script, open it in Notepad++ or VS Code and enable “Show all characters” to detect hidden Unicode or non-printable characters that may have been introduced via copy-paste.

  2. Recreate the file/folder from scratch
    If renaming doesn’t resolve it, create a new file/folder with a simple ASCII name (letters, numbers, underscores only) and move the original content into it.

Alternative or Verification Steps

  • Verify the fix: Re-run the original command or re-attempt the file operation (copy/move/delete) that triggered Error 123 — it should now complete without the syntax error.
  • Alternative: If the issue persists in a specific application, try performing the same file operation via Command Prompt with dir /x to reveal the short (8.3) filename, and use that as a workaround for problematic long or special-character names.

How to fix Error 124 on Windows 11

Why This Error Happens

Error 124 (“The system call level is not correct”) occurs when a system call passes a data structure or “information level” parameter that a driver or service doesn’t recognize — most commonly during network operations like NET USE, mapped drives, or printer/device redirection. This typically stems from a mismatch between the SMB/redirector client version and the target server, an outdated or corrupted network interface driver, or a stale/incompatible LAN Manager Workstation service configuration. It’s frequently triggered after a Windows Update that changes SMB protocol negotiation behavior while legacy devices or NAS servers still expect an older call level.

Step-by-Step Resolution Guide

  1. Update your network adapter driver
  • Press Win + X → Device Manager → expand Network adapters.
  • Right-click your active adapter → Update driver → Search automatically for drivers.
  • If already up to date, try Uninstall device, then reboot to let Windows reinstall a fresh driver.
  1. Re-enable/reset SMB protocol settings
  • Open PowerShell as Administrator.
  • Run:

    Set-SmbClientConfiguration -EnableSecuritySignature $false -Force
    Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
  • Only enable SMB1 temporarily if connecting to legacy NAS/servers, then disable it again once confirmed working (security risk if left on).
  1. Reset the Workstation and Server network services
  • In an elevated Command Prompt, run:

    net stop workstation
    net stop server
    net start workstation
    net start server
  • This clears any corrupted session-level state without a full reboot.
  1. Reset Winsock and TCP/IP stack
  • In an elevated Command Prompt:

    netsh winsock reset
    netsh int ip reset
  • Restart the PC afterward — this clears corrupted socket-level configurations that often cause invalid call-level errors.
  1. Check for pending Windows Updates or roll back a recent one
  • Go to Settings → Windows Update → Update history.
  • If the error started right after a cumulative update, use Uninstall updates to roll back the most recent one and test connectivity again.

Alternative or Verification Steps

  • Verify the fix: Try the original failing action again (e.g., net use \\servername\share or reconnect the mapped drive) — if it completes without Error 124, the call-level mismatch is resolved.
  • Alternative fix: If the issue persists only with a specific NAS/older server, update that device’s firmware/SMB server software instead, since the incompatibility may originate on the remote end rather than the Windows 11 client.

How to fix Error 125 on Windows 11

Windows 11 Error 125: “The Disk Has No Volume Label” Troubleshooting Guide

Why This Error Happens

Error 125 typically occurs when a disk or partition’s volume label metadata is missing, unreadable, or corrupted in the file system table, often due to improper drive removal, disk corruption, or file system errors on the partition. This can also happen when a command-line utility (such as label, vol, or backup/scripting tools) attempts to read a volume label from a drive that was never assigned one or has a damaged boot sector. Additionally, third-party disk utilities or scripts that expect a non-empty label field can throw this error when they encounter a blank or corrupted label entry.

Step-by-Step Resolution Guide

  1. Check the Volume Label via File Explorer
  • Open File Explorer (Win + E), right-click the affected drive under This PC, and select Properties. Check if the “Volume label” field is blank. If so, manually enter a label and click OK.
  1. Run CHKDSK to Repair File System Errors
  • Open Command Prompt as Administrator (search “cmd,” right-click, “Run as administrator”).
  • Run: chkdsk X: /f /r (replace X: with the affected drive letter).
  • Allow the scan to complete; restart if prompted, especially if it’s the system drive.
  1. Manually Set the Volume Label via Command Line
  • In the elevated Command Prompt, run: label X: YourLabelName (replace X: with the drive letter and YourLabelName with your desired label).
  • Press Enter and verify no error is returned.
  1. Update or Reinstall Disk Drivers
  • Open Device Manager (Win + X > Device Manager), expand Disk drives, right-click the affected disk, and select Update driver.
  • If the issue persists, choose Uninstall device, then restart your PC to let Windows reinstall the driver automatically.
  1. Inspect Disk Health in Disk Management
  • Press Win + X > Disk Management.
  • Verify the partition shows as Healthy. If it shows RAW or Unallocated, the file system itself may be corrupted, requiring data recovery or reformatting (back up data first).

Alternative or Verification Steps

  • Verify the fix: Reopen This PC in File Explorer and confirm the drive now displays your assigned label instead of just the drive letter.
  • Alternative: If CHKDSK and manual labeling fail, use diskpart (open elevated Command Prompt, type diskpart, then list volume, select volume X, and assign letter=X) to reset the volume label and letter assignment, or consider running a full disk health check using the manufacturer’s diagnostic tool (e.g., CrystalDiskInfo).

How to fix Error 126 on Windows 11

Why This Error Happens

Error 126 occurs when Windows attempts to load a DLL (Dynamic Link Library) or executable module that either doesn’t exist at the expected file path, is corrupted, or has missing dependencies of its own. This commonly happens after a botched software uninstall leaves orphaned registry entries pointing to deleted files, when a Windows Update overwrites or removes a shared system DLL, or when a 32-bit application tries to load a 64-bit module (or vice versa) due to architecture mismatch. It’s frequently seen when starting a Windows Service, running a legacy application, or launching third-party software that references outdated system files.

Step-by-Step Resolution Guide

  1. Identify the missing module: Open Event Viewer (eventvwr.msc), navigate to Windows Logs > Application or System, and find the Error 126 entry. Note the exact .dll or .exe file name mentioned in the error details.

  2. Search for the file location: Open File Explorer and search the system for the named module (e.g., msvcp140.dll). If it’s missing entirely, it likely needs to be reinstalled via the associated application or Visual C++ Redistributable package (download from Microsoft’s official site).

  3. Run System File Checker and DISM: Open Command Prompt as Administrator and run:

   sfc /scannow

If corruption is found and not fully repaired, follow up with:

   DISM /Online /Cleanup-Image /RestoreHealth

Restart your PC after completion.

  1. Check the PATH environment variable: Press Win + R, type sysdm.cpl, go to Advanced > Environment Variables. Under System Variables, verify the Path variable includes the correct directory where the module resides (e.g., C:\Windows\System32 or the application’s install folder).

  2. Reinstall the affected application: If the error is tied to a specific program, uninstall it completely via Settings > Apps > Installed Apps, delete any leftover folders in Program Files, then download and reinstall the latest version from the official source.

Alternative or Verification Steps

  • Verify the fix: Restart the affected service (via services.msc) or relaunch the application—Error 126 should no longer appear in Event Viewer.
  • Alternative fix: If the issue persists, use a system restore point from before the error started (rstrui.exe) to roll back potentially corrupted system changes.

How to fix Error 127 on Windows 11

Troubleshooting Guide: Error 127 – “The Specified Procedure Could Not Be Found” (Windows 11)

Why This Error Happens

Error 127 occurs when a program tries to call a function from a DLL (Dynamic Link Library) file, but that specific function doesn’t exist in the version of the DLL currently loaded on the system. This is typically caused by a version mismatch — an outdated, newer, or corrupted DLL file is present instead of the one the application expects. Common culprits include a botched Windows Update, a third-party driver overwriting a system DLL, or leftover files from an incomplete software installation/uninstallation.

Step-by-Step Resolution Guide

  1. Identify the Faulting DLL/Module
    Open Event Viewer (Win + X → Event Viewer → Windows Logs → Application) and look for the Error 127 entry. Note the exact file path of the DLL or executable mentioned in the error details.

  2. Run System File Checker (SFC) and DISM
    Open Terminal (Admin) and run the following commands in sequence to repair corrupted system files:

   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

Restart your PC once both commands complete.

  1. Check for Recent Software or Driver Conflicts
    Go to Settings → Apps → Installed Apps and check if the error started after installing a specific program (common with older audio/graphics drivers or legacy software). If so, uninstall it, then reinstall the latest compatible version from the vendor’s official site.

  2. Re-register the Specific DLL
    If Step 1 identified a specific DLL (e.g., msvcp140.dll, vcruntime140.dll), navigate to C:\Windows\System32, and re-register it using an elevated Command Prompt:

   regsvr32 /u [filename].dll
   regsvr32 [filename].dll

Alternatively, download and reinstall the appropriate Microsoft Visual C++ Redistributable package if the DLL belongs to that runtime.

  1. Update Windows Fully
    Go to Settings → Windows Update and ensure all pending updates, including optional driver updates, are installed. Microsoft frequently patches known DLL conflicts in cumulative updates.

Alternative or Verification Steps

  • Verify the Fix: Relaunch the application that triggered the error. If it opens without the Error 127 popup, check Event Viewer again to confirm no new instances of the error have logged.
  • Alternative Fix: If the error persists and is tied to a specific third-party application, try a clean reinstall — fully uninstall the app, manually delete leftover folders in C:\Program Files and %AppData%, then reinstall the latest version from the official source.

How to fix Error 128 on Windows 11

Why This Error Happens

Error 128 occurs when a parent process (such as cmd.exe, a batch script, or a shell like Git Bash/MSYS2) issues a “wait” call for a child process that has already terminated, was never successfully spawned, or was orphaned due to a broken process handle. This is commonly triggered by corrupted shell environments, conflicting PATH entries pointing to outdated system binaries, or antivirus software terminating a subprocess before the parent can register it. It can also surface when Windows Subsystem for Linux (WSL) or POSIX-emulation layers (like MSYS2/Cygwin) lose synchronization with the native Windows process table.

Step-by-Step Resolution Guide

  1. Identify the triggering application: Note whether the error appears in Command Prompt, PowerShell, Git Bash, or a specific installer/script. This determines which fix path applies.
  2. Update or Repair the Shell Environment:
  • If using Git Bash/MSYS2, open it and run pacman -Syu to update core packages, since a stale msys-2.0.dll is a frequent cause.
  • If using WSL, run wsl --update and wsl --shutdown from PowerShell (Admin), then restart the terminal.
  1. Clear and Rebuild Environment PATH Conflicts:
  • Press Win + R, type sysdm.cpl, go to Advanced > Environment Variables.
  • Remove duplicate or outdated System32, Git, or MSYS paths that may point to conflicting cmd.exe or sh.exe binaries.
  1. Run System File Checker and DISM to rule out corrupted Windows process-handling components:
   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

Restart Windows 11 after completion.

  1. Temporarily Disable Antivirus/Endpoint Protection: Some AV tools kill child processes prematurely (flagged as suspicious spawns). Disable real-time protection temporarily and re-run the failing command/script to confirm if this is the cause.

Alternative or Verification Steps

  • Re-run the original command or script in a fresh elevated Command Prompt (Win + X > Terminal (Admin)) — if it completes without Error 128, the fix was successful.
  • If the error persists only in a specific tool (e.g., Git Bash), try reinstalling that tool completely, ensuring you delete leftover folders in C:\Program Files\Git or %LOCALAPPDATA%\Programs before reinstalling.

How to fix Error 196 on Windows 11

Troubleshooting Guide: Error 196 – “The Operating System Cannot Run This Application Program”

Why This Error Happens

Error 196 typically occurs when Windows 11 attempts to execute a program that is incompatible with the current system architecture, most commonly a 16-bit application or one built for a legacy subsystem (like MS-DOS or early Win32 builds) that lacks proper compatibility layers. This can also result from a corrupted executable file, a mismatched CPU architecture (e.g., attempting to run x86 legacy code without NTVDM support), or missing dependencies such as outdated runtime libraries. Since Windows 11 has fully deprecated 16-bit and certain legacy execution environments, the OS blocks the process outright rather than attempting a failed launch.

Step-by-Step Resolution Guide

  1. Verify Application Architecture
    Right-click the executable → Properties → Details tab. Check if it lists as a 16-bit or DOS-based application. If confirmed, native execution on Windows 11 is not supported without emulation.

  2. Run Compatibility Troubleshooter
    Right-click the .exe file → Properties → Compatibility tab → click Run compatibility troubleshooter. Allow Windows to detect and apply recommended settings automatically.

  3. Manually Set Compatibility Mode
    In the same Compatibility tab, check Run this program in compatibility mode for: and select an earlier OS version (e.g., Windows XP Service Pack 3 or Windows 7). Apply and test the launch.

  4. Use DOSBox or a Virtual Machine (for legacy 16-bit apps)
    If the app is confirmed 16-bit, install DOSBox or set up a Windows 11 Hyper-V/VirtualBox VM running an older OS (e.g., Windows XP) that natively supports the application.

  5. Check and Repair the Executable
    Navigate to the install folder (commonly C:\Program Files (x86)\<AppName>\) and verify file integrity. Reinstall the application from a trusted source if the .exe appears corrupted or incomplete.

Alternative or Verification Steps

  • Verify the Fix: Launch the application directly (double-click) without administrator rights first; if it opens without Error 196, the compatibility fix was successful.
  • Alternative Fix: If compatibility mode fails, check Event Viewer (eventvwr.msc → Windows Logs → Application) for correlating Event ID details to confirm whether the issue is architecture-related or a missing dependency (e.g., Visual C++ Redistributables).

Last updated:

How to fix Error 195 on Windows 11

Troubleshooting Guide: Error 195 — “The Operating System Cannot Run %1”

Why This Error Happens

Error 195 occurs when Windows attempts to execute a file that is not a valid executable format the OS can process, typically because the file is corrupted, incomplete, or was built for a different architecture/platform (e.g., a Linux binary or a 16-bit DOS executable run on incompatible systems). This can also happen if the file extension is mismatched with its actual binary content, or if the executable header is damaged due to malware infection, incomplete downloads, or disk corruption. Windows 11’s loader validates the PE (Portable Executable) header before execution, and if this header is malformed or unrecognized, it throws Error 195 instead of running the file.

Step-by-Step Resolution Guide

  1. Verify the File Integrity
    Right-click the problematic file (%1) → Properties → check the “Digital Signatures” tab. If missing or invalid, the file may be corrupted or tampered with. Re-download the file from the original/official source.

  2. Check File Compatibility
    Confirm the executable is built for Windows and matches your system architecture (x64/x86/ARM64). Right-click → Properties → Compatibility tab → try running in Compatibility Mode for an older Windows version if it’s a legacy app.

  3. Run System File Checker (SFC) and DISM
    Open Command Prompt as Administrator and run:

   sfc /scannow

Followed by:

   DISM /Online /Cleanup-Image /RestoreHealth

This repairs corrupted system files that may be interfering with the Windows loader.

  1. Scan for Malware
    Run Windows Defender or a third-party antivirus full scan. Malware often corrupts or disguises itself as legitimate .exe files, triggering Error 195. Path: Settings → Privacy & Security → Windows Security → Virus & Threat Protection → Scan Options → Full Scan.

  2. Re-register or Reinstall the Application
    If the error is tied to a specific installed program, uninstall it via Settings → Apps → Installed Apps, then reinstall the latest version from the vendor to ensure a clean, valid executable is placed on disk.

Alternative or Verification Steps

  • Verify the Fix: After remediation, attempt to launch the file again. If it runs without the Error 195 popup, the issue is resolved. You can also check file properties (Details tab) to confirm the file type now matches an expected executable format.
  • Alternative Fix: If the file is not critical, try downloading it fresh onto a different drive/partition to rule out disk-level corruption, or test it on another Windows 11 machine to isolate whether the issue is system-specific or file-specific.

—
*Last updated:*

How to fix 0x80070002 on Windows 10

Windows Update Error 0x80070002 Troubleshooting Guide

Why This Error Happens

Error 0x80070002 occurs when the Windows Update service cannot locate specific files it expects to find, typically due to corrupted update components, incorrect system date/time settings, or damaged files in the SoftwareDistribution folder. This error also arises when Windows Update-related services are not running properly or when the update cache contains remnants of a previously failed installation. In some cases, misconfigured Group Policy settings or third-party antivirus software may block critical update files from being accessed or written correctly.

Step-by-Step Resolution Guide

  1. Verify System Date and Time
    Go to Settings > Time & Language > Date & Time and ensure “Set time automatically” is toggled on. Incorrect system time can cause Windows Update to reject valid certificates and files.

  2. Restart Windows Update Services
    Open Services.msc, locate the following services, right-click each, and select Restart:

  • Windows Update
  • Cryptographic Services
  • Background Intelligent Transfer Service (BITS)
  1. Clear the SoftwareDistribution Cache
    Open Command Prompt as Administrator and run:
   net stop wuauserv
   net stop bits
   ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
   net start wuauserv
   net start bits

This forces Windows to rebuild the update cache from scratch, removing corrupted files.

  1. Run the Windows Update Troubleshooter
    Navigate to Settings > Update & Security > Troubleshoot > Additional Troubleshooters > Windows Update, then click Run the troubleshooter. Allow it to detect and automatically repair common update issues.

  2. Run System File Checker and DISM
    In an elevated Command Prompt, run:

   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

These commands repair corrupted system files and restore the Windows component store, which often resolves missing file errors.

Alternative or Verification Steps

  • Verify the fix: After completing the steps above, go to Settings > Update & Security > Windows Update and click Check for updates. If the update installs successfully without the 0x80070002 error, the issue is resolved.
  • Alternative solution: If the error persists, manually download the specific failing update (KB number) from the Microsoft Update Catalog and install it directly using the standalone installer, bypassing the Windows Update service entirely.

Last updated:

How to fix Error 160 on Windows 11

Windows Error 160: “One or More Arguments Are Not Correct”

Why This Error Happens

Error 160 is a standard Windows system error code indicating that a function or command received invalid parameter data—often due to malformed syntax, corrupted registry values, or an incompatible driver passing unexpected data to the OS. This frequently occurs when a command-line utility, script, or third-party application sends improperly formatted arguments to a Windows API call, such as during DISM operations, printer driver installations, or disk management tasks. Corrupted system files or outdated drivers can also trigger this error by causing a mismatch between expected and actual argument structures.

Step-by-Step Resolution Guide

  1. Verify the exact command syntax — If the error occurred while running a command (e.g., in Command Prompt or PowerShell), re-check the syntax against official documentation. Even a misplaced space or incorrect flag (like using /f instead of -f) can trigger Error 160.

  2. Run System File Checker and DISM — Open Command Prompt as Administrator and run:

   sfc /scannow

Followed by:

   DISM /Online /Cleanup-Image /RestoreHealth

This repairs corrupted system files that may be causing the OS to misinterpret valid arguments.

  1. Update or reinstall the relevant driver — If the error is tied to a specific device (printer, disk, network adapter), open Device Manager (devmgmt.msc), locate the device, right-click → Update driver. If that fails, uninstall the driver and download the latest version directly from the manufacturer’s website.

  2. Check Group Policy and Registry permissions — If the error occurs during a system configuration task, open gpedit.msc and ensure no conflicting policies are set for the feature in question. Additionally, verify registry integrity using regedit and confirm the relevant key (based on the error context, e.g., under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet) hasn’t been corrupted or has invalid data types.

  3. Update Windows 11 to the latest build — Go to Settings → Windows Update → Check for updates. Microsoft frequently patches argument-parsing bugs in cumulative updates, especially for built-in tools like Disk Management or Print Spooler.

Alternative or Verification Steps

  • Verify the fix: Re-run the original command or action that triggered Error 160. If using a script, add verbose logging (-Verbose in PowerShell) to confirm all parameters are being passed correctly.
  • Alternative fix: If the error persists after driver updates, try performing a System Restore to a point before the error began occurring, which can resolve issues from recent corrupted installations or updates.

How to fix Error 161 on Windows 11

Windows Error 161: “The Specified Path is Invalid”

Why This Error Happens

Error 161 (ERRORBADPATHNAME) occurs when Windows cannot resolve a directory path passed to an application, installer, or script because the path is malformed, exceeds the legacy 260-character MAX_PATH limit, or references a mapped network drive/UNC location that is no longer available. This is common with installers, batch scripts, or applications that hardcode paths, especially when triggered via Task Scheduler, Group Policy, or third-party deployment tools running under a different user context that lacks access to the mapped drive. It can also happen if a required environment variable (like a custom install path) is empty or points to a deleted folder.

Step-by-Step Resolution Guide

  1. Enable Long Path Support in Windows 11
    Open the Registry Editor (regedit), navigate to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
    Set LongPathsEnabled (DWORD) to 1. Reboot the machine.

  2. Verify the Exact Path Being Called
    Check the application’s shortcut properties, script, or .ini/.xml configuration file for the “Target” or “Start in” path. Ensure it doesn’t contain trailing slashes, illegal characters (< > : " | ? *), or double backslashes (e.g., C:\\Program Files\\App).

  3. Replace Mapped Drives with UNC Paths
    If the error involves a network location (e.g., Z:\Data), replace it with the full UNC path (e.g., \\ServerName\Share\Data) in the script or shortcut, since mapped drive letters are session-specific and often invisible to services or scheduled tasks.

  4. Check Environment Variables
    Run echo %PATH% and any custom variables (e.g., %APPDATA%, %INSTALLDIR%) in Command Prompt to confirm they resolve to valid, existing folders. Fix via System Properties > Advanced > Environment Variables if broken.

  5. Re-run as the Correct User Context
    If triggered by Task Scheduler, edit the task, go to General tab, and ensure “Run whether user is logged on or not” is set appropriately, and that the “Start in (optional)” field under Actions matches a valid local path.

Alternative or Verification Steps

  • Verify: Manually navigate to the exact path in File Explorer’s address bar to confirm it exists and is accessible without permission prompts.
  • Alternative: If long paths are the culprit and registry editing isn’t possible, shorten the folder structure or use the \\?\ prefix (e.g., \\?\C:\VeryLongPath\...) in the script to bypass the MAX_PATH limitation.

How to fix Error 162 on Windows 11

Windows 11 Troubleshooting Guide: Error 162 – “A Signal Is Already Pending”

Why This Error Happens

Error 162 occurs when a process attempts to raise a signal or asynchronous procedure call (APC) while a previous signal targeting the same thread has not yet been processed or cleared. This is typically caused by overlapping I/O operations, a thread synchronization conflict, or a driver/application that improperly manages event handles. It is frequently seen with backup software, virtual disk drivers, or third-party services that use asynchronous I/O without properly waiting for signal completion before issuing a new one.

Step-by-Step Resolution Guide

  1. Identify the Source Application
    Open Event Viewer (eventvwr.msc) → Windows Logs → Application and System. Look for the exact process name tied to Error 162 in the event details. This is usually a backup agent, disk cloning tool, or antivirus/EDR service.

  2. Update or Reinstall the Offending Driver/Service
    Go to Settings → Windows Update → Advanced options → Optional updates → Driver updates, and install any pending updates for storage or filter drivers (especially disk, volume shadow copy, or virtual disk drivers). If the issue points to a third-party app, uninstall and reinstall the latest version from the vendor.

  3. Check for Pending I/O Conflicts via Task Manager
    Open Task Manager (Ctrl+Shift+Esc) → Details tab, and end any duplicate or hung instances of the reported process. Multiple instances of the same backup/sync tool running simultaneously is a common trigger.

  4. Repair System Files
    Run the following commands in an elevated Command Prompt or Windows Terminal (Admin) to fix corrupted system components that manage signal/APC handling:

   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

Restart the machine after completion.

  1. Disable Conflicting Background Services Temporarily
    Open services.msc, locate the service associated with the failing app (e.g., Volume Shadow Copy, backup agent service), right-click → Restart. If the error persists, temporarily set it to Manual startup and reboot to confirm whether it resolves the conflict.

Alternative or Verification Steps

  • Verify the Fix: Re-run the operation that triggered Error 162 (e.g., backup job, disk sync) and monitor Event Viewer for recurrence. No new Error 162 entries within a full operation cycle confirms resolution.
  • Alternative Fix: If the error persists, boot into Safe Mode with Networking, run the affected application in isolation, and check if the error still occurs — this helps confirm whether a third-party driver conflict (not Windows itself) is the root cause.

How to fix Error 167 on Windows 11

Troubleshooting Guide: Error 167 – Unable to Lock a Region of a File

Why This Error Happens

Error 167 (ERROR_LOCK_FAILED) occurs when a process attempts to lock a specific byte range of a file that is already locked by another process, or when the file system driver denies the lock request due to conflicting I/O operations. This is commonly triggered by antivirus software, backup utilities, or a second application instance accessing the same file simultaneously. It can also occur when a file resides on a network share or a file system (such as FAT32) that has limited or inconsistent support for byte-range locking.

Step-by-Step Resolution Guide

  1. Identify the Locking Process
    Open Resource Monitor (search “resmon” in the Start menu) → go to the CPU tab → expand Associated Handles → type the file name in the search box to find which process holds the lock. Close or restart that process.

  2. Close Conflicting Applications
    Ensure the file isn’t open in multiple programs simultaneously (e.g., a database file open in both a server process and an editor). Close all unnecessary instances and retry the operation.

  3. Temporarily Disable Antivirus/Real-Time Protection
    Go to Windows Security → Virus & threat protection → Manage settings → toggle off Real-time protection temporarily. Retry the file operation. If successful, add the file/folder to your antivirus exclusion list permanently.

  4. Check File System and Network Path
    If the file is on a mapped network drive, move it to a local NTFS drive to test. Confirm the drive is formatted as NTFS (File Explorer → right-click drive → Properties → check “File system”), since NTFS has more robust locking support than FAT32/exFAT.

  5. Update or Reinstall the Affected Application
    Ensure the application generating the error is fully updated via Settings → Apps → Installed apps. Corrupted application binaries or outdated file-handling libraries can mishandle lock requests—reinstalling often resolves this.

Alternative or Verification Steps

  • Verify the fix: Retry the exact action that triggered Error 167. If it completes without prompting a lock error, the conflict has been resolved.
  • Alternative fix: Restart the machine in a clean boot state (msconfig → Services tab → check “Hide all Microsoft services” → Disable all → restart) to rule out background services interfering with file locks.

How to fix Error 170 on Windows 11

Windows 11 Error 170: “The Requested Resource Is In Use”

Why This Error Happens

Error 170 occurs when a process, file, folder, or device is locked by another application, service, or user session, preventing your current request from executing. This typically happens because a background process still holds a handle to the resource, a previous operation didn’t release it cleanly, or a conflicting service (such as Windows Search, antivirus scanning, or Print Spooler) is actively using it. In some cases, corrupted file handles or stale system processes fail to release locks even after the original task has finished.

Step-by-Step Resolution Guide

  1. Identify the locking process using Resource Monitor
  • Press Win + R, type resmon, and hit Enter.
  • Go to the CPU tab, and in the Associated Handles search box, type the file/folder name or resource in question.
  • Note the Process ID (PID) holding the lock.
  1. End the conflicting process
  • Open Task Manager (Ctrl + Shift + Esc).
  • Go to the Details tab, find the PID identified in Step 1, right-click it, and select End Task.
  • Retry the original action that triggered Error 170.
  1. Restart the relevant Windows service
  • Press Win + R, type services.msc, and press Enter.
  • Locate the service tied to the resource (e.g., Print Spooler, Windows Search, or Server).
  • Right-click the service → Restart. This releases stale locks without a full reboot.
  1. Check for antivirus or backup software interference
  • Temporarily disable third-party antivirus/backup tools (e.g., via their system tray icon).
  • Retry the operation to confirm if the security software was locking the resource.
  • If confirmed, add an exclusion for the affected file/folder in your antivirus settings.
  1. Run System File Checker to repair corrupted handles
  • Open Command Prompt as Administrator.
  • Run: sfc /scannow
  • Restart your PC once the scan completes and try the action again.

Alternative or Verification Steps

  • Verify the fix: Attempt the original action (e.g., deleting/moving the file, starting the service, or accessing the port) — it should complete without triggering Error 170.
  • Alternative fix: If the issue persists, boot into Safe Mode (Settings → System → Recovery → Advanced Startup) and retry the operation, as this loads minimal services and rules out third-party software conflicts.

How to fix Error 171 on Windows 11

Windows 11 Error 171: Device Command Support Detection

Why This Error Happens

Error 171 typically occurs when Windows is still probing a connected device (commonly storage devices, printers, or specialized hardware) to determine which command sets it supports, such as SMART, TRIM, or vendor-specific commands. This happens when the device driver hasn’t finished initializing communication with the hardware, often due to outdated or corrupted drivers, a slow or unstable connection (such as USB enumeration delays), or the device controller firmware not responding promptly to the query. In most cases, this is a transient state that Windows reports while negotiation is incomplete, but it can persist if the underlying driver stack is faulty.

Step-by-Step Resolution Guide

  1. Check Device Manager for driver issues
    Press Win + X → select Device Manager. Locate the affected device (usually under Disk drives, Storage controllers, or Universal Serial Bus controllers). Look for a yellow warning icon indicating a driver conflict.

  2. Update or reinstall the driver
    Right-click the device → Update driver → Search automatically for drivers. If no update is found, right-click again → Uninstall device, check “Delete the driver software for this device” if prompted, then restart your PC to let Windows reinstall a fresh driver.

  3. Update chipset and storage controller drivers manually
    Visit your motherboard or laptop manufacturer’s support page and download the latest chipset and storage (AHCI/NVMe/USB) drivers. Install these before Windows Update drivers, as manufacturer drivers often resolve command detection timing issues better than generic ones.

  4. Disable USB Selective Suspend (for USB-connected devices)
    Go to Settings → System → Power → Screen and sleep → Additional power settings → Change plan settings → Change advanced power settings. Expand USB settings → USB selective suspend setting and set it to Disabled.

  5. Check and update firmware
    If the affected device is an SSD, HDD, or specialized peripheral, use the manufacturer’s utility (e.g., Samsung Magician, Western Digital Dashboard) to check for and apply firmware updates, as outdated firmware often causes incomplete command-set negotiation.

Alternative or Verification Steps

  • Verify the fix: Reopen Device Manager and confirm the device no longer shows a warning icon; also check Event Viewer (Win + X → Event Viewer → Windows Logs → System) to ensure Error 171 no longer appears after a fresh boot.
  • Alternative fix: If the error persists, try connecting the device to a different USB port (preferably a native USB 3.0/3.1 port directly on the motherboard, not a hub) or test on another PC to rule out a hardware fault with the device itself.

How to fix Error 173 on Windows 11

Troubleshooting Guide: Error 173 – “A Lock Request Was Not Outstanding for the Supplied Cancel Region”

Why This Error Happens

Error 173 (ERRORNOTLOCKED) occurs when an application attempts to unlock or cancel a byte-range lock on a file that was never actually locked by that process, or the lock has already been released. This typically happens due to a race condition in multi-threaded applications, improper file handle management, or a mismatch between lock/unlock calls in the calling software. It can also surface when file system filter drivers (such as antivirus or backup software) interfere with the normal locking sequence on NTFS volumes.

Step-by-Step Resolution Guide

  1. Identify the offending application: Check Event Viewer (Win + X → Event Viewer → Windows Logs → Application/System) and filter by Event ID 173 to determine which process is generating the error. Note the exact file path referenced in the error details.

  2. Update or reinstall the application: Since this is typically a software-level bug in lock handling, check for updates:

  • Open Settings → Apps → Installed apps
  • Locate the flagged application and check for a newer version
  • If already up to date, uninstall and reinstall it completely.
  1. Disable third-party file system filters temporarily: Antivirus or backup tools can interfere with file locks:
  • Temporarily disable real-time protection in your third-party antivirus (not Windows Defender)
  • Test if the error persists while performing the same action that triggered it.
  1. Check for pending Windows Updates: Some Windows 11 builds have known file-locking bugs in NTFS handling:
  • Go to Settings → Windows Update → Check for updates
  • Install any pending Cumulative or Optional updates and restart.
  1. Run System File Checker and CHKDSK: Corrupted system files or file table inconsistencies can cause improper lock tracking:
  • Open Command Prompt (Admin)
  • Run: sfc /scannow
  • Follow with: chkdsk C: /f /r (schedule on next restart if prompted)

Alternative or Verification Steps

  • Verify the fix: Reproduce the original action (e.g., saving/opening the file that triggered the error) and confirm Event Viewer shows no new occurrences of Event ID 173.
  • Alternative solution: If the error persists and is tied to a specific third-party app, run the application in a clean boot environment (msconfig → Services → Hide all Microsoft services → Disable all) to rule out background service conflicts.

How to fix Error 174 on Windows 11

Windows 11 Error 174: “File System Does Not Support Atomic Changes to the Lock Type”

Why This Error Happens

Error 174 occurs when the underlying file system cannot guarantee atomic (all-or-nothing) operations required to change a file’s lock status, typically during advisory locking (flock) operations. This is common when working with network shares (SMB/NFS), FAT32-formatted drives, or certain virtual file systems that lack proper support for POSIX-style locking semantics. It frequently surfaces in WSL (Windows Subsystem for Linux) environments, Docker containers, or applications like Git, databases, or package managers attempting to lock files on incompatible storage.

Step-by-Step Resolution Guide

  1. Identify the file system type of the affected drive or share:
  • Open File Explorer, right-click the drive → Properties → check the “File system” field.
  • If it shows FAT32 or exFAT, this is likely the root cause, as these don’t support proper locking.
  1. Move the operation to an NTFS-formatted drive:
  • Reformat the target drive to NTFS (back up data first): right-click the drive → Format → select NTFS → Start.
  • Alternatively, relocate the project/working directory (e.g., Git repo, database files) to your C:\Users\<YourName>\ folder or another NTFS volume.
  1. If using WSL, avoid mounting Windows paths for lock-sensitive operations:
  • Move your project from /mnt/c/... into the native Linux filesystem inside WSL, e.g., ~/projects/.
  • Run wsl --update in PowerShell to ensure you have the latest WSL kernel with improved file system support.
  1. Check for network share limitations:
  • If the file resides on a mapped network drive (SMB), ensure the SMB server supports leasing/locking (SMB 2.0+).
  • Run this in PowerShell to verify SMB version:
    powershell
    Get-SmbConnection
  • If using an older NAS or SMB1, update the firmware or disable legacy SMB1 fallback via Turn Windows Features On or Off → uncheck SMB 1.0/CIFS File Sharing Support.
  1. Update or reconfigure the application:
  • If a specific app (Git, Docker, database engine) triggers this, check for updates—many tools have patched locking behavior for FAT32/network drives.
  • For Git specifically, try disabling file locking checks with:
    bash
    git config core.fileMode false

Alternative or Verification Steps

  • Verify the fix: Attempt the original operation (e.g., git commit, database write, or file save) on the NTFS drive or native Linux path and confirm Error 174 no longer appears.
  • Alternative workaround: If reformatting isn’t feasible, copy the problematic files to a temporary NTFS-backed folder (e.g., C:\Temp), perform the operation there, then move the results back to the original location.

How to fix Error 180 on Windows 11

Troubleshooting Guide: Error 180 – “The System Detected a Segment Number That Was Not Correct”

Why This Error Happens

Error 180 typically occurs when Windows 11 attempts to read or write a file across a network share or removable drive and encounters a mismatch in the expected data segment sequence. This is most commonly caused by file system corruption, a failing or disconnected storage device, or interrupted read/write operations due to a faulty cable, USB port, or network connection. In some cases, outdated or corrupted device drivers for the storage controller can also trigger this segment validation failure.

Step-by-Step Resolution Guide

  1. Check Physical Connections
    Disconnect and reconnect the affected drive (USB, external HDD, or network drive). If using USB, try a different port—preferably a USB 3.0 port directly on the motherboard rather than a hub.

  2. Run CHKDSK to Repair File System Errors
    Open Command Prompt as Administrator and run:

   chkdsk X: /f /r

Replace X: with the affected drive letter. This scans for and repairs segment/sector inconsistencies. Restart if prompted.

  1. Update Storage Controller Drivers
    Navigate to Device Manager > Disk drives (or Storage controllers). Right-click the relevant device, select Update driver > Search automatically for drivers. Alternatively, download the latest driver from the manufacturer’s website (e.g., Intel, Realtek, or the drive manufacturer).

  2. Verify Disk Health via PowerShell
    Run PowerShell as Administrator and execute:

   Get-PhysicalDisk | Select FriendlyName, HealthStatus, OperationalStatus

If HealthStatus shows “Unhealthy,” the disk may need replacement.

  1. Reset Network Share Settings (if error occurs over network)
    Go to Control Panel > Network and Sharing Center > Change advanced sharing settings, and ensure SMB settings are correctly configured. Also run:
   net use * /delete

to clear cached network drive mappings, then remap the drive.

Alternative or Verification Steps

  • Verify the fix: Copy a large file to/from the affected drive or share and confirm no errors appear in Event Viewer (Windows Logs > System) under Event ID 180.
  • Alternative solution: If the error persists on an external drive, back up your data immediately and test the drive on another PC—this helps confirm whether the issue is hardware failure requiring drive replacement.

How to fix Error 182 on Windows 11

Windows 11 Error 182: “The Operating System Cannot Run %1”

Why This Error Happens

Error 182 (ERRORINVALIDORDINAL) occurs when an executable file tries to call a function from a DLL using an ordinal reference that doesn’t exist in the currently loaded version of that library. This is typically caused by a version mismatch between the application and a shared DLL, a corrupted or incomplete installation, or a conflicting older DLL being loaded from a different directory (DLL hijacking/shadowing). It commonly appears after a partial Windows Update, a botched software install, or when a program was compiled against a newer runtime than what’s currently registered on the system.

Step-by-Step Resolution Guide

  1. Identify the failing executable and its dependent DLLs
    Note the exact file path from the error message (the %1 placeholder). Use a tool like Dependency Walker or Process Monitor (from Sysinternals) to trace which DLL is being loaded incorrectly.

  2. Check for and remove conflicting DLL copies
    Search the application’s install folder and C:\Windows\System32 for duplicate DLLs with mismatched versions:

  • Right-click the DLL → Properties → Details tab → compare File Version across copies.
  • If an outdated DLL exists in the app folder shadowing a newer system DLL, rename or delete the outdated copy (back it up first).
  1. Repair or reinstall the affected application
  • Go to Settings > Apps > Installed apps.
  • Locate the application, click the three-dot menu, and select Modify (if available) to trigger a repair.
  • If no repair option exists, fully uninstall, restart the PC, then reinstall the latest version from the vendor.
  1. Run System File Checker and DISM to fix corrupted system DLLs
    Open Terminal (Admin) and run:
   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

Restart once both commands complete.

  1. Update or reinstall the Visual C++ Redistributables / .NET Runtime
    Many “cannot run %1” errors stem from missing runtime components. Download and install the latest Microsoft Visual C++ Redistributable (x64 and x86) and .NET Desktop Runtime from Microsoft’s official site, then reboot.

Alternative or Verification Steps

  • Verify the fix: Re-launch the application and confirm it opens without Error 182. Check Event Viewer (Windows Logs > Application) for any recurrence of Event ID 182.
  • Alternative fix: If the issue persists, boot into Safe Mode and attempt the repair/reinstall steps there, as this rules out interference from third-party antivirus or startup programs locking the DLL files.

How to fix Error 183 on Windows 11

Windows 11 Troubleshooting: Error 183 – “Cannot create a file when that file already exists”

Why This Error Happens

Error 183 occurs when a process, installer, or script attempts to create a file or directory using a name that is already occupied by an existing file, folder, or registry key. This is commonly triggered by interrupted software installations, leftover temporary files from a previous failed operation, or conflicting entries in the Windows Registry that reference a path the system is trying to recreate. It can also surface when a scheduled task, service, or update tries to write a log/config file without first checking or clearing the existing instance.

Step-by-Step Resolution Guide

  1. Identify the conflicting file/folder path. Check the Event Viewer (Win + X → Event Viewer → Windows Logs → Application) for the specific Event ID 183 entry. Note the exact file path or folder name mentioned in the error details.

  2. Manually locate and remove the duplicate file. Navigate to the path identified in Step 1 using File Explorer. If it’s a leftover temp file (often in C:\Windows\Temp or C:\Users\<YourUsername>\AppData\Local\Temp), delete it. If it’s tied to a specific app, rename it (e.g., add .old) instead of deleting, in case it’s needed for rollback.

  3. Clear the Windows Installer cache (if related to app installation). Press Win + R, type %ProgramData%\Package Cache, and check for duplicate or corrupted installer folders matching the app causing the error. Rename or remove suspicious entries, then retry the installation.

  4. Check and clean the Registry (advanced users only). Press Win + R, type regedit, and navigate to the key path referenced in the error log (commonly under HKEY_LOCAL_MACHINE\SOFTWARE or HKEY_CURRENT_USER\SOFTWARE). Back up the key first (right-click → Export), then delete the conflicting duplicate key.

  5. Run System File Checker and DISM. Open Command Prompt as Administrator and run:

   sfc /scannow

Followed by:

   DISM /Online /Cleanup-Image /RestoreHealth

This repairs corrupted system files that may be causing the file creation conflict.

Alternative or Verification Steps

  • Verify the fix: Re-run the original action (installation, script, or application launch) that triggered Error 183. If it completes without the error, the conflict has been resolved.
  • Alternative solution: If the error persists, create a new local user profile (Settings → Accounts → Family & other users → Add account) and test the action there — this helps determine if the issue is profile-specific corruption rather than a system-wide file conflict.

How to fix Error 186 on Windows 11

Troubleshooting Guide: Error 186 – “The Flag Passed Is Not Correct” (Windows 11)

Why This Error Happens

Error 186 typically occurs when a Windows command, script, or application passes an invalid, malformed, or unsupported parameter/flag to a system function or executable. This is often caused by incorrect syntax in a batch file, PowerShell script, or command-line utility, outdated system files that don’t recognize newer flag formats, or a mismatch between the application’s expected command-line arguments and what is actually being sent. Corrupted system binaries or incompatible third-party software invoking system calls with legacy flags can also trigger this error.

Step-by-Step Resolution Guide

  1. Identify the Source Command
    Open Event Viewer (eventvwr.msc) → navigate to Windows Logs > Application → locate the Error 186 event and note the exact command, script, or application that triggered it.

  2. Verify Command Syntax
    If the error originates from a script or batch file, open it in a text editor and check the flags against official Microsoft documentation (e.g., command /? in Command Prompt). Correct any outdated, misspelled, or deprecated switches.

  3. Run System File Checker (SFC) and DISM
    Corrupted system files can cause flag misinterpretation. Open Command Prompt as Administrator and run:

   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

Restart your PC after completion.

  1. Update or Reinstall the Affected Application
    If a third-party app is generating the error, go to Settings > Apps > Installed Apps, select the application, and choose Repair or Uninstall, then reinstall the latest version from the official source.

  2. Check for Windows Updates
    Navigate to Settings > Windows Update > Check for updates and install any pending updates, as Microsoft frequently patches command-line parsing bugs.

Alternative or Verification Steps

  • Verify the Fix: Re-run the exact command or launch the application that previously failed. Check Event Viewer to confirm Error 186 no longer appears in the Application log.
  • Alternative Solution: If the error persists, use sfc /verifyonly to generate a detailed log at C:\Windows\Logs\CBS\CBS.log and search for “cannot repair” entries, which may indicate you need to perform an in-place upgrade repair via Windows Update Assistant.

How to fix Error 187 on Windows 11

Windows 11 Error 187: “The Specified System Semaphore Name Was Not Found”

Why This Error Happens

Error 187 occurs when an application or system process attempts to open, signal, or release a named semaphore object that either doesn’t exist yet or has already been destroyed by another process. This typically happens due to race conditions during application startup/shutdown, corrupted installation files referencing outdated synchronization objects, or improper termination of a program that left orphaned references in the Windows Object Manager. It can also surface when third-party software (especially older applications) conflicts with Windows 11’s process handling or when Windows services start out of the expected sequence.

Step-by-Step Resolution Guide

  1. Identify the Source Application
    Open Event Viewer (eventvwr.msc) → navigate to Windows Logs > Application and System. Filter by Event ID 187 to find the exact process/service name (e.g., .exe or driver) generating the error, as this determines your next steps.

  2. Run System File Checker and DISM
    Open Command Prompt as Administrator and run:

   sfc /scannow

Followed by:

   DISM /Online /Cleanup-Image /RestoreHealth

This repairs corrupted system files that may be improperly handling semaphore creation.

  1. Check and Reorder Service Dependencies
    If the error points to a specific Windows service, open services.msc, locate the affected service, right-click → Properties → Dependencies tab. Ensure prerequisite services are set to Automatic and start before the affected service. Set the problematic service’s Startup type to “Automatic (Delayed Start)” to avoid race conditions.

  2. Reinstall or Repair the Offending Application
    If a third-party app is the culprit, go to Settings > Apps > Installed Apps, select the app, and choose Modify/Repair if available. If not, fully uninstall it, restart Windows 11, then reinstall the latest version from the vendor.

  3. Clear Orphaned Handles via Reboot in Clean Boot State
    Run msconfig → Selective Startup → uncheck Load startup items → restart. This clears any orphaned semaphore handles left by third-party startup programs and helps isolate whether the issue is startup-related.

Alternative or Verification Steps

  • Verify the fix: Reopen Event Viewer and monitor the Application/System logs for 24–48 hours to confirm Event ID 187 no longer appears, and confirm the previously affected application/service now starts without hanging or crashing.
  • Alternative fix: If the issue persists and is tied to a specific driver or legacy software, run the program in Compatibility Mode (right-click the .exe → Properties → Compatibility tab → select an earlier Windows version) or check the vendor’s site for a Windows 11–specific patch.

How to fix Error 188 on Windows 11

Troubleshooting Guide: Error 188 — “The Operating System Cannot Run %1”

Why This Error Happens

Error 188 typically occurs when Windows attempts to execute a file whose header or binary format doesn’t match what the system expects, often because the executable is corrupted, incomplete, or built for an incompatible platform (such as a 16-bit or malformed executable header). This can also result from a corrupted file association, damaged system files, or the executable being truncated during download, transfer, or a failed installation. In some cases, it stems from a mismatch between the file’s target architecture and the OS environment (e.g., attempting to run an unsupported executable format).

Step-by-Step Resolution Guide

  1. Verify File Integrity
    Locate the file referenced in the error (represented by %1). Re-download or re-copy it from a trusted source, as the original file may be corrupted or incomplete.

  2. Run System File Checker (SFC) and DISM
    Open Command Prompt as Administrator and run:

   sfc /scannow

Followed by:

   DISM /Online /Cleanup-Image /RestoreHealth

This repairs corrupted system files that may be preventing proper execution.

  1. Check File Compatibility
    Right-click the executable → Properties → Compatibility tab. Ensure it isn’t set to run in an incompatible mode (e.g., Windows 95/98) unless required, and confirm the file is built for 32-bit or 64-bit Windows as appropriate for your system.

  2. Reset File Associations
    Go to Settings > Apps > Default Apps, scroll down, and click Reset next to the relevant app, or use:

   assoc .exe=exefile

in an elevated Command Prompt to restore default .exe associations.

  1. Scan for Malware
    Run a full system scan using Windows Security (Settings > Privacy & Security > Windows Security > Virus & threat protection), as malware can corrupt or block legitimate executables.

Alternative or Verification Steps

  • Verify the fix: Attempt to run the file again; if successful, check Event Viewer (eventvwr.msc) under Windows Logs > Application to confirm no further Error 188 entries appear.
  • Alternative solution: If the file continues to fail, try running it on another Windows 11 machine to confirm whether the issue is file-specific or system-specific — if it works elsewhere, consider an in-place OS repair via Settings > System > Recovery > Fix problems using Windows Update.

How to fix Error 191 on Windows 11

Windows 11 Error 191: Cannot run %1 in Win32 mode

Why This Error Happens

Error 191 occurs when the Windows subsystem attempts to execute a 16-bit or DOS-based executable using the Win32 API loader, which is architecturally incompatible with legacy binary formats. This typically happens when a file’s executable header is corrupted, the application was compiled for an unsupported platform (like old MS-DOS or OS/2 binaries), or a 32-bit program is incorrectly flagged to run under a restrictive compatibility mode. It can also surface when NTVDM (NT Virtual DOS Machine) components required to bridge legacy code are missing or disabled.

Step-by-Step Resolution Guide

  1. Verify the file isn’t corrupted: Right-click the executable, go to Properties > Digital Signatures (if applicable) to confirm integrity. If corrupted, re-download or reinstall the source application from a trusted vendor.

  2. Enable NTVDM support (for legacy 16-bit apps):

  • Open Control Panel > Programs > Turn Windows features on or off.
  • Scroll down and check NTVDM or Windows NT Virtual DOS Machine if listed (available on some Windows 11 builds via optional legacy support packages).
  • Restart your PC after enabling.
  1. Adjust Compatibility Mode:
  • Right-click the .exe file → Properties → Compatibility tab.
  • Check Run this program in compatibility mode for: and select an older OS version (e.g., Windows XP or Windows 7).
  • Click Apply, then attempt to run the program again.
  1. Run System File Checker (SFC) and DISM to rule out corrupted system files interfering with the loader:
   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

Restart your PC after these commands complete.

  1. Check file architecture with a PE Header viewer (e.g., CFF Explorer or a similar tool) to confirm whether the .exe is a legitimate 32-bit/64-bit Windows binary. If it’s a 16-bit DOS or OS/2 executable, it cannot run natively on 64-bit Windows 11 and requires an emulator like DOSBox.

Alternative or Verification Steps

  • Verify the fix: After applying compatibility settings or enabling NTVDM, run the application again — it should launch without the Error 191 dialog appearing.
  • Alternative solution: If the executable is confirmed to be a legacy 16-bit binary incompatible with 64-bit Windows 11, install and configure DOSBox or a similar virtualization tool to run the program in an emulated environment instead.

How to fix Error 192 on Windows 11

Troubleshooting Guide: Error 192 – “The Operating System Cannot Run %1”

Why This Error Happens

Error 192 (ERRORINVALIDSTARTING_CODESEG) occurs when Windows 11 attempts to load an executable file whose internal header or code segment structure is invalid, corrupted, or incompatible with the current system architecture. This is commonly triggered by legacy 16-bit applications, executables built for a different CPU architecture (e.g., x86 binary with a malformed segment table run on x64), or a file that has been damaged during download, transfer, or by malware tampering. In some cases, it also results from an executable being cut off mid-file due to a failed installation or copy process.

Step-by-Step Resolution Guide

  1. Verify file integrity
    Right-click the executable, check Properties > Details, and confirm the file size matches the original source. Re-download or re-copy the file from a trusted source if it appears incomplete or corrupted.

  2. Check file compatibility
    Confirm whether the executable is a legacy 16-bit application. Windows 11 (64-bit) does not support 16-bit binaries natively. Right-click the file, go to Properties > Compatibility tab, and try running it in Compatibility Mode for an older Windows version (e.g., Windows 95/98) — though full native support may not be possible for true 16-bit apps.

  3. Run a system file check
    Open Command Prompt as Administrator and run:

   sfc /scannow

This repairs corrupted system files that could be interfering with the executable loader (ntdll.dll, kernel32.dll, etc.).

  1. Scan for malware
    Malicious tampering can corrupt executable headers. Run a full scan using Windows Security:
    Settings > Privacy & Security > Windows Security > Virus & threat protection > Scan options > Full scan.

  2. Re-install the application
    If the file belongs to a specific program, uninstall it via Settings > Apps > Installed apps, delete leftover folders in C:\Program Files or C:\Program Files (x86), then reinstall the latest version from the official vendor.

Alternative or Verification Steps

  • After completing the steps, try launching the executable again; if it opens without the Error 192 dialog, the issue is resolved.
  • If the problem persists, use a tool like CFF Explorer or PEview to inspect the executable’s header — a malformed PE/NE header confirms the file itself is unusable and must be replaced from a verified source.

How to fix Error 189 on Windows 11

Windows 11 Error 189: “The Operating System Cannot Run %1”

Why This Error Happens

Error 189 typically occurs when the Windows loader encounters an executable or system file that is corrupted, incompatible with the current architecture (32-bit vs. 64-bit), or blocked by insufficient permissions. This is often triggered by damaged system files, a failed Windows update, or malware interference with critical .exe or .dll components. In many cases, the file header itself is unreadable, causing the OS loader to reject execution outright.

Step-by-Step Resolution Guide

  1. Run System File Checker (SFC)
    Open Command Prompt as Administrator and run:
   sfc /scannow

This scans and repairs corrupted system files that may be causing the loader to fail.

  1. Run DISM to Repair the Windows Image
    If SFC doesn’t resolve the issue, run:
   DISM /Online /Cleanup-Image /RestoreHealth

This repairs the underlying Windows component store that SFC relies on.

  1. Check File Architecture Compatibility
    Right-click the problematic file (%1) → Properties → Compatibility tab. Ensure you’re not attempting to run a 16-bit or incompatible legacy executable on a 64-bit-only Windows 11 system, as this alone triggers Error 189.

  2. Verify User Permissions
    Navigate to the file’s location, right-click → Properties → Security tab. Ensure your user account has Read & Execute permissions. If not, click Edit, select your username, and grant the necessary permissions.

  3. Scan for Malware
    Run a full scan using Windows Security (Settings → Privacy & Security → Windows Security → Virus & threat protection) to rule out malware that may have corrupted or replaced the file.

Alternative or Verification Steps

  • Verify the fix: Attempt to launch the application/file again. If it opens without the error, the issue is resolved.
  • Alternative solution: If the file is a third-party application, reinstall it directly from the official source, as reinstalling replaces any corrupted binaries that SFC/DISM cannot fix.

How to fix Error 190 on Windows 11

Why This Error Happens

Error 190 (ERROR_EXE_MARKED_INVALID) occurs when the executable file’s header contains flags indicating it cannot be run on the current version of Windows. This typically happens due to file corruption during download/transfer, an executable built for an incompatible platform (e.g., a legacy 16-bit or OS/2 binary), or a bit-flip caused by disk errors or malware tampering with the PE header. It is distinct from “not a valid Win32 application” (Error 193) — Error 190 specifically means the OS read the header and found it explicitly marked as invalid for execution.

Step-by-Step Resolution Guide

  1. Verify file integrity
    Compare the file’s hash (SHA-256) against the value published by the software vendor. Use PowerShell:
   Get-FileHash "C:\Path\To\File.exe" -Algorithm SHA256

If it doesn’t match, re-download the installer/executable from the official source.

  1. Check for a 16-bit or unsupported architecture binary
    Right-click the .exe → Properties → Details tab, and check the “File description” and version info. Windows 11 (64-bit) cannot run 16-bit DOS/Win16 or OS/2 executables at all. If this is the case, you’ll need a compatible version of the software or a virtualization tool (e.g., DOSBox).

  2. Run System File Checker and DISM to rule out OS-level corruption
    Open Command Prompt as Administrator and run:

   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

Restart the PC afterward and try launching the file again.

  1. Scan for malware
    Corrupted or “marked invalid” headers are sometimes a side effect of malware injection or a failed antivirus quarantine/repair. Run a full scan using Windows Security:
    Settings → Privacy & security → Windows Security → Virus & threat protection → Scan options → Full scan.

  2. Re-copy the file from source media (if applicable)
    If the executable came from a USB drive, network share, or optical disc, copy it fresh to C:\Temp and run it locally — remote/removable media can introduce read errors that corrupt the executable header during transfer.

Alternative or Verification Steps

  • After remediation, right-click the .exe → Run as administrator and confirm it launches without Error 190.
  • If the issue persists, try running the file in Compatibility Mode (right-click → Properties → Compatibility tab → select an earlier Windows version) — this helps if the app is significantly outdated but not truly 16-bit.

How to fix Error 193 on Windows 11

Troubleshooting Guide: Error 193 – “%1 is not a valid Win32 application”

Why This Error Happens

This error occurs when Windows attempts to execute a file that is corrupted, incomplete, or architecturally incompatible with the system (e.g., a 16-bit or non-Windows executable, or a 32-bit file mismatched with system expectations). It can also happen if a file’s extension has been changed (e.g., a script or text file renamed to .exe) without the actual binary structure matching a valid PE (Portable Executable) header. Additionally, incomplete downloads, disk errors, or malware tampering can corrupt the executable’s binary structure, making it unreadable by the Windows loader.

Step-by-Step Resolution Guide

  1. Verify File Integrity
    Check if the file size looks correct (e.g., not 0 KB or unusually small). Right-click the file → Properties → Details tab to inspect version info. If missing or blank, the file is likely corrupted.

  2. Re-download or Re-extract the File
    If the file was downloaded from the internet, delete it and download it again from the official/trusted source. If it came from a ZIP/RAR archive, re-extract it fully using a tool like 7-Zip, ensuring no interruption during extraction.

  3. Check System Architecture Compatibility
    Confirm whether the executable is designed for your OS architecture:

  • Go to Settings → System → About → check System type (should say 64-bit operating system, x64-based processor).
  • If the application is a legacy 16-bit program, it will not run natively on 64-bit Windows 11 and will require a compatibility layer (e.g., DOSBox) or a 32-bit/64-bit version of the software.
  1. Run SFC and DISM Scans
    Corrupted system files can sometimes cause legitimate Windows components to throw this error. Open Command Prompt (Admin) and run:
   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

Restart your PC after completion.

  1. Scan for Malware
    Malware sometimes corrupts or replaces executables. Run a full scan using Windows Security → Virus & threat protection → Scan options → Full scan, or use a trusted third-party antivirus tool.

Alternative or Verification Steps

  • Verify the Fix: After re-downloading or repairing the file, right-click it → Run as administrator and confirm it launches without the Error 193 popup.
  • Alternative Fix: If the issue persists, try running the file in Compatibility Mode (right-click → Properties → Compatibility tab → select an older Windows version) or check with the software vendor for a Windows 11–compatible build.

How to fix Error 194 on Windows 11

Why This Error Happens

Error 194 (ERROR_EXE_MARKED_INVALID) occurs when Windows attempts to execute a file whose header or internal structure has been flagged as invalid by the OS loader. This is typically caused by a corrupted or incomplete executable (often due to a failed download, disk error, or interrupted installation), an executable built for an incompatible platform/subsystem, or security software (antivirus/EDR) that has tagged the file as untrusted and blocked execution at the loader level. In some cases, NTFS permission conflicts or a damaged Application Compatibility (AppCompat) cache can also trigger this behavior.

Step-by-Step Resolution Guide

  1. Verify file integrity
    Right-click the executable → Properties → check the Digital Signatures tab (if applicable) to confirm it hasn’t been tampered with. If the file was downloaded, re-download it from the official source and compare the checksum (SHA-256) against the vendor’s published hash.

  2. Check for antivirus/EDR interference
    Open Windows Security → Virus & threat protection → Protection history and look for any blocked or quarantined items matching the file name. If found, restore the file and add an exclusion:
    Settings > Privacy & Security > Windows Security > Virus & threat protection > Manage settings > Add or remove exclusions

  3. Run System File Checker and DISM
    Open an elevated Command Prompt (Win + X → Terminal (Admin)) and run:

   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

This repairs corrupted system files that may be interfering with the loader’s validation process.

  1. Clear the AppCompat cache
    In an elevated Command Prompt, run:
   rundll32.exe apphelp.dll,ShimFlushCache

Then restart the machine to force Windows to rebuild the compatibility cache from scratch.

  1. Check file permissions and ownership
    Right-click the file → Properties → Security tab → ensure your user account has Read & Execute permissions. If not, click Edit, select your account, and grant the necessary permissions. Alternatively, take ownership via:
   takeown /f "C:\path\to\file.exe"
   icacls "C:\path\to\file.exe" /grant %username%:F

Alternative or Verification Steps

  • After applying the fixes, attempt to launch the file again from an elevated Command Prompt to see if any additional error detail is returned.
  • If the issue persists, test the executable on another Windows 11 machine (or a clean VM) — if it runs successfully there, the problem is environment-specific (corrupted profile, registry, or security policy) rather than the file itself, and a system restore or in-place OS repair (Settings > System > Recovery > Fix problems using Windows Update) may be required.