Windows 11 Error 1223: “The Operation Was Canceled by the User”
Why This Error Happens
Error 1223 occurs when a user or a security prompt interrupts an operation before it completes—commonly during mapped network drive connections, VPN authentications, driver installations, or UAC-triggered tasks. This typically happens when a User Account Control (UAC) dialog is dismissed, times out, or is blocked by Group Policy, or when a scheduled task/script cancels a connection due to stored credentials failing silently. It can also surface when antivirus or endpoint protection software intercepts the action and forces a cancellation without a clear warning to the user.
Step-by-Step Resolution Guide
- Check for a hidden or timed-out UAC prompt
- Press
Alt + Tabto see if a User Account Control window is waiting in the background. - If found, click Yes to approve it. If it timed out, re-run the action.
- Verify UAC settings are not overly restrictive
- Press
Win + R, typeUserAccountControlSettings, and press Enter. - Ensure the slider is not set to “Never notify,” as this can sometimes cause silent cancellations depending on the app’s manifest requirements. Set it to the default “Notify me only when apps try to make changes” level.
- Clear cached credentials (common for network drive/VPN errors)
- Open Control Panel > User Accounts > Credential Manager.
- Remove any outdated or duplicate entries under Windows Credentials related to the server, share, or VPN connection.
- Retry the connection and re-enter credentials when prompted.
- Re-run the action with elevated privileges
- Right-click the application, installer, or shortcut and select Run as administrator.
- This bypasses permission-related interruptions that can trigger a forced cancellation.
- Temporarily disable third-party antivirus/security software
- Open your antivirus dashboard and disable real-time protection temporarily.
- Attempt the operation again. If it succeeds, add an exclusion for the specific application or network path in your antivirus settings, then re-enable protection.
Alternative or Verification Steps
- Verify the fix: Reboot the machine and repeat the original action (mapping the drive, installing the driver, or connecting to VPN). If it completes without the 1223 error or a UAC popup interruption, the issue is resolved.
- Alternative solution: If the error persists, use
net usevia Command Prompt (Run as administrator) to manually map network drives instead of File Explorer, as this bypasses certain GUI-based cancellation triggers.