How to fix Error 12 on Windows 11

Why This Error Happens

Error 12 corresponds to the Windows system error ERROR_INVALID_ACCESS, which means an application or process attempted to open a file, registry key, or device using an access mode combination that the operating system does not recognize or permit. This typically stems from corrupted file/folder permissions, an outdated or mismatched driver making an invalid API call, or a damaged system file that no longer matches the access control list (ACL) Windows expects. It can also surface when antivirus or third-party security software intercepts and blocks a legitimate access request, causing Windows to report it as invalid.

Step-by-Step Resolution Guide

  1. Run System File Checker and DISM to repair corrupted system files that may be causing invalid access requests:
  • Open Command Prompt as Administrator.
  • Run: sfc /scannow
  • Then run: DISM /Online /Cleanup-Image /RestoreHealth
  • Restart your PC after completion.
  1. Check and reset file/folder permissions on the affected file or application directory:
  • Right-click the file or folder → Properties → Security tab.
  • Click Advanced → Change owner to your current user account.
  • Check Replace all child object permissions and click Apply.
  1. Update or reinstall the relevant device driver (if the error is tied to hardware access, e.g., USB, printer, or storage device):
  • Open Device Manager (devmgmt.msc).
  • Locate the device, right-click → Update driver → Search automatically.
  • If that fails, uninstall the device and restart Windows 11 to force a clean reinstall.
  1. Temporarily disable third-party antivirus/security software to rule out interference:
  • Go to Settings > Privacy & security > Windows Security (or your antivirus app).
  • Disable real-time protection temporarily and retry the action that triggered Error 12.
  1. Create a new local user profile if the error persists only under one account, which can indicate a corrupted user profile:
  • Go to Settings > Accounts > Other users > Add account.
  • Sign in with the new profile and test whether the error still occurs.

Alternative or Verification Steps

  • After applying fixes, repeat the exact action that triggered Error 12 (e.g., opening the file, running the app, or accessing the device) to confirm the “access code is invalid” message no longer appears.
  • If the issue persists, boot into Safe Mode and attempt the same action — if it works there, a startup program or driver conflict is likely the root cause and should be isolated via Clean Boot (msconfig → Selective startup).

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 109 on Windows 11

Troubleshooting Guide: Error 109 – “The Pipe Has Been Ended”

Why This Error Happens

Error 109 occurs when a named pipe connection between two processes is unexpectedly terminated before all data has been transmitted, often during print spooling or inter-process communication. This is commonly caused by a corrupted print driver, an unstable network connection to a shared printer, or a crashed background service (such as the Print Spooler) that closed the pipe prematurely. Interrupted communication due to antivirus interference or outdated drivers can also trigger this event.

Step-by-Step Resolution Guide

  1. Restart the Print Spooler Service (most common trigger):
  • Press Win + R, type services.msc, and press Enter.
  • Locate Print Spooler, right-click it, and select Restart.
  • Set Startup type to Automatic if it isn’t already.
  1. Clear the Print Spooler Queue:
  • Navigate to C:\Windows\System32\spool\PRINTERS.
  • Stop the Print Spooler service first (as above), then delete all files inside this folder.
  • Restart the Print Spooler service afterward.
  1. Update or Reinstall the Device Driver:
  • Go to Settings > Bluetooth & devices > Printers & scanners (or Device Manager for other pipe-related hardware).
  • Select the affected device, click Remove device, then reinstall the latest driver from the manufacturer’s website.
  1. Check Network/USB Connection Stability:
  • For network devices, ensure a stable Ethernet/Wi-Fi connection; avoid using outdated SMB protocol versions.
  • For USB-connected devices, try a different USB port or cable to rule out a physical connection issue.
  1. Run Windows Update and SFC Scan:
  • Open Settings > Windows Update and install any pending updates.
  • Open Command Prompt as Administrator and run sfc /scannow to repair corrupted system files that may affect pipe communication.

Alternative or Verification Steps

  • Verify the fix: Reproduce the original action (printing, file transfer, etc.) and check the Event Viewer (eventvwr.msc) under Windows Logs > System to confirm Error 109 no longer appears.
  • Alternative fix: If the issue persists, create a new local user profile to rule out profile corruption, or use Windows Troubleshooter (Settings > System > Troubleshoot > Other troubleshooters > Printer) for automated diagnostics.

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 110 on Windows 11

Troubleshooting Guide: Error 110 – “The System Cannot Open the Device or File Specified” (Windows 11)

Why This Error Happens

Error 110 typically occurs when Windows attempts to access a device, port, or file that is either locked by another process, disconnected improperly, or lacks the necessary permissions for the requesting application. This is commonly seen with USB devices, printers, or COM/LPT ports where a driver conflict or stale device handle prevents the OS from establishing a connection. Corrupted or outdated drivers, along with resource conflicts (e.g., two applications trying to access the same port), are the most frequent root causes.

Step-by-Step Resolution Guide

  1. Check Device Manager for Conflicts
  • Press Win + X → select Device Manager.
  • Look for any device with a yellow exclamation mark, especially under Ports (COM & LPT) or Universal Serial Bus controllers.
  • Right-click the problematic device → Update driver → Search automatically for drivers.
  1. Restart the Device and Clear the Port Handle
  • Physically disconnect the device (USB/printer/etc.).
  • Open Task Manager (Ctrl + Shift + Esc) and end any background processes that may be holding the file/device open (e.g., PrintIsolationHost.exe for printers).
  • Reconnect the device after 10 seconds.
  1. Reset Permissions on the File or Device Path
  • Navigate to the file/folder location (e.g., C:\Windows\System32\spool\PRINTERS for print jobs).
  • Right-click → Properties → Security tab → Advanced.
  • Ensure your user account has Full Control, then click Apply.
  1. Uninstall and Reinstall the Driver
  • In Device Manager, right-click the affected device → Uninstall device.
  • Check “Delete the driver software for this device” if prompted.
  • Restart your PC to force Windows to reinstall a clean driver.
  1. Run the Hardware and Devices Troubleshooter
  • Open Settings → System → Troubleshoot → Other troubleshooters.
  • Run Hardware and Devices (if not listed, run via CMD: msdt.exe -id DeviceDiagnostic).

Alternative or Verification Steps

  • Verify the fix: Reconnect the device or reopen the file/application that previously threw Error 110 — it should now initialize without the “cannot open” message.
  • Alternative fix: If the error persists, try accessing the device/file from a different user account or in Safe Mode to rule out third-party software interference.

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 111 on Windows 11

Windows 11 Troubleshooting: Error 111 – File Name Too Long

Why This Error Happens

Error 111 occurs when a file path exceeds the traditional Windows MAX_PATH limitation of 260 characters, which includes the drive letter, folder names, subfolders, and the file name itself. This commonly happens with deeply nested folder structures, files synced from cloud services with long auto-generated names, or when copying/extracting archives that preserve long original path structures. Older Win32 APIs still enforce this limit by default, causing operations like copy, rename, or delete to fail even though NTFS itself supports paths up to 32,767 characters.

Step-by-Step Resolution Guide

  1. Enable Long Path Support via Group Policy
  • Press Win + R, type gpedit.msc, and press Enter.
  • Navigate to Computer Configuration > Administrative Templates > System > Filesystem.
  • Double-click Enable Win32 long paths, select Enabled, click Apply, then OK.
  • Restart your computer for the policy to take effect.
  1. Enable Long Path Support via Registry (for Home edition without gpedit)
  • Press Win + R, type regedit, and press Enter.
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.
  • Find or create a DWORD (32-bit) value named LongPathsEnabled.
  • Set its value to 1, then restart your PC.
  1. Shorten the File or Folder Path Manually
  • Move the file closer to the root directory (e.g., C:\Temp\ instead of a deeply nested folder).
  • Rename parent folders to shorter names to reduce overall path length.
  1. Use Command Prompt with Extended-Length Path Prefix
  • Open Command Prompt as Administrator.
  • Use the \\?\ prefix before the path to bypass the MAX_PATH limit, for example:

    ren "\\?\C:\Very\Long\Path\To\File\filename.txt" "short.txt"
  1. Use a Third-Party Tool for Bulk Operations
  • For copying, deleting, or renaming multiple long-path files, use tools like Robocopy (built into Windows) with the /MIR switch, or a dedicated long-path management utility.

Alternative or Verification Steps

  • After applying the fix, try copying, renaming, or deleting the previously problematic file again to confirm Error 111 no longer appears.
  • If the issue persists in specific apps (e.g., File Explorer), try performing the same action via PowerShell or Command Prompt, as some applications may not yet support the new long path policy even after enabling it system-wide.

How to fix Error 112 on Windows 11

Windows Error 112: “There Is Not Enough Space on the Disk” (Windows 11)

Why This Error Happens

Error 112 occurs when the operating system attempts to write data to a disk volume that lacks sufficient free space, but this often happens even when Disk Properties shows available space. This discrepancy is typically caused by disk fragmentation preventing large contiguous write operations, hidden system files (like hibernation files, System Restore points, or Windows Update caches) consuming reserved space, or a failing/corrupted storage drive with bad sectors that the system can no longer write to. In some cases, disk quotas set at the user level or NTFS file system corruption also trigger this error incorrectly.

Step-by-Step Resolution Guide

  1. Run Disk Cleanup to Free Hidden Space
  • Press Win + R, type cleanmgr, and press Enter.
  • Select your system drive (usually C:), click OK.
  • Click Clean up system files, check boxes for Windows Update Cleanup, Temporary Files, and Delivery Optimization Files, then click OK.
  1. Check and Repair Disk Errors Using CHKDSK
  • Open Command Prompt as Administrator (search “cmd”, right-click, Run as administrator).
  • Type: chkdsk C: /f /r and press Enter.
  • Confirm the scan on next restart if prompted, then restart your PC to allow it to complete.
  1. Disable or Resize Hibernation File
  • In the elevated Command Prompt, type: powercfg /hibernate off
  • This removes the hiberfil.sys file, which can occupy several GBs depending on installed RAM.
  1. Repair Corrupted System Files
  • In the elevated Command Prompt, run: sfc /scannow
  • Follow up with: DISM /Online /Cleanup-Image /RestoreHealth
  • Restart your computer once both commands complete successfully.
  1. Check for Disk Quotas (If on a Managed/Domain PC)
  • Right-click the affected drive in File Explorer → Properties → Quota tab.
  • Ensure “Enable quota management” is unchecked, or increase the limit if required by policy.

Alternative or Verification Steps

  • Verify the fix: Re-attempt the original file operation that triggered Error 112. Also check available space via Right-click Drive → Properties to confirm free space has increased.
  • Alternative solution: If the error persists on an otherwise healthy-looking drive, run Windows Defender’s offline scan to rule out malware consuming disk space silently, or use wmic diskdrive get status in Command Prompt to check for hardware failure indicators.

How to fix Error 113 on Windows 11

Why This Error Happens

Error 113 (“No more internal file identifiers available”) occurs when the operating system’s file handle table is exhausted, meaning too many files, pipes, or registry keys are being held open simultaneously by one or more processes. This is often triggered by a runaway application (such as a backup utility, indexing service, or a script with a handle leak) that opens files without properly closing them. It can also occur on systems with a very low PagedPoolSize or handle quota configured in the registry, which artificially caps the number of identifiers available to the OS.

Step-by-Step Resolution Guide

  1. Identify the offending process:
  • Open Task Manager (Ctrl+Shift+Esc) → Details tab → right-click the column header → Select columns → check Handles.
  • Sort by the Handles column to find any process with an abnormally high count (tens of thousands).
  1. Terminate or restart the leaking process:
  • Right-click the high-handle process and select End Task.
  • If it’s a critical service (e.g., svchost.exe hosting a specific service), instead restart the specific service via Services.msc rather than killing the host process.
  1. Increase the system-wide handle/paged pool limit (for advanced/server-like workloads):
  • Open Registry Editor (regedit).
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.
  • Ensure PagedPoolSize is set to 0xFFFFFFFF (let the system manage it dynamically) rather than a fixed low value.
  • Reboot the machine for the change to take effect.
  1. Check for malware or corrupted drivers holding handles:
  • Run Windows Security → Virus & threat protection → Quick scan.
  • Use Driver Verifier (verifier.exe) temporarily if you suspect a faulty third-party driver is leaking handles, then review results in Event Viewer under System logs.
  1. Apply pending Windows Updates:
  • Go to Settings → Windows Update and install all pending updates, as Microsoft has periodically patched handle-leak bugs in core system components (Explorer, print spooler, etc.).

Alternative or Verification Steps

  • After applying the fix, reopen the application that originally threw Error 113 and monitor its handle count in Task Manager over 15–20 minutes to confirm it stabilizes instead of climbing indefinitely.
  • If the error persists, boot into Safe Mode and reproduce the issue — if it does not occur, a third-party startup application or driver is the root cause, and you should selectively disable startup items via Task Manager → Startup apps until the culprit is isolated.

How to fix Error 114 on Windows 11

Troubleshooting Guide: Error 114 – “The Target Internal File Identifier Is Incorrect”

Why This Error Happens

Error 114 typically occurs when the NTFS file system encounters a mismatch between a file’s Master File Table (MFT) record and the internal reference ID the system expects, often due to disk corruption, an improperly terminated write operation, or bad sectors. This can also surface after a failed disk transfer, a sudden power loss, or when using third-party disk-cloning/backup tools that misread file metadata. In some cases, outdated storage drivers or a failing hard drive can trigger this error as well.

Step-by-Step Resolution Guide

  1. Run CHKDSK to repair file system errors
  • Open Windows Terminal (Admin) and run:

    chkdsk C: /f /r
  • If prompted that the drive is in use, type Y to schedule the scan on next restart, then reboot.
  1. Check disk health status
  • Open Command Prompt as Administrator and run:

    wmic diskdrive get status
  • If the status doesn’t return “OK,” the physical disk may be failing and should be backed up immediately.
  1. Update storage controller drivers
  • Go to Device Manager > Disk Drives, right-click your drive, select Update driver.
  • Also update drivers under Storage controllers (e.g., AHCI/RAID controller) via Device Manager or the motherboard/OEM manufacturer’s website.
  1. Verify system file integrity
  • Run the following in an elevated Command Prompt:

    sfc /scannow
  • Follow with:

    DISM /Online /Cleanup-Image /RestoreHealth
  1. Re-copy or re-transfer the affected file
  • If the error appeared during a file copy/move operation (e.g., from an external drive or network share), delete the partially transferred file and re-copy it from the original source.

Alternative or Verification Steps

  • Verify the fix: After running CHKDSK and rebooting, try accessing or copying the previously affected file again. If no error appears, the file system issue has been resolved.
  • Alternative: If the error persists on a specific file, use a third-party tool like TestDisk to attempt file recovery, or restore the file from a previous backup/System Restore point.

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 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 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 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.