Windows Cannot Access the Specified Device, Path or File: How to Fix It in Windows 11 and 10

Blank file icon wrapped in a chain and padlock with a dashed path line ending in a break.
Illustration of a blank file icon with a padlock and broken path for the Windows cannot access the specified device error

Last reviewed: November 25, 2026. Steps were compared with Microsoft documentation where a page could be opened; none was run on a real PC. The top picture is an illustration, not a screenshot.

Windows cannot access the specified device, path, or file usually means the item has moved, a shortcut points to nothing, Windows blocked a downloaded file, or permissions or security software stopped the open. Start with the quick checks below, and stop before you change any permission on a system folder.

The same message appears when a program tries to reach an item that is no longer there, such as an installer or an old shortcut.

Quick answer

Quick fix summary

  1. Confirm the item still exists where you expect it.
  2. For a shortcut, check Properties, Shortcut, Target, and repoint it if the target is gone.
  3. For a downloaded or emailed file, tick Unblock only when you trust the source.
  4. Extract a zip file fully before you open anything inside it.
  5. Reconnect the USB or network drive, or download the OneDrive file, then try again.
  6. Read Protection history and the Security tab, but change nothing you do not understand.
  7. Do not change C:\Windows or Program Files; get help instead.

In this guide

Why Windows cannot access the specified device appears

Windows uses this message for several problems, and permissions are only one of them. It is often not the first thing to check. A shortcut that fails usually points to a missing target, and a downloaded file that fails often carries a block. If the only prompt asks for permission on a folder, read how to handle the folder permission prompt.

Symptom and cause table

What you seeMost likely causeFirst check
Error only when you open a shortcutThe target was moved, renamed or deletedShortcut tab, Target line
Error on a file from email or the internetThe file is marked as blockedGeneral tab, Unblock box
Error on a folder you cannot changeAccount permissions on the itemSecurity tab, accounts listed
Error after a security alert or scanSecurity software quarantined or blocked the itemProtection history, look only
Error on a file on USB, network or OneDriveDrive offline, or the file is online-onlyDrive present, file downloaded
Error inside a zip, or on a very long pathIncomplete extraction, or the path is too longExtract fully to a shorter folder

Decision tree

Work down the tree until one branch fits.

  • Does the item still exist where you expect it?
    • No: it was moved, renamed or deleted. Search for it, then read the recovery guide.
    • Yes: is it a shortcut?
      • Yes: check the Target line and repoint it if the target is missing.
      • No: did it come from the internet or email?
        • Yes: check for Unblock on the General tab, and trust the file before you tick it.
        • No: is it on a USB stick, network drive or OneDrive?
          • Yes: reconnect the drive or download the file, then retry.
          • No: check the Security tab and Protection history, then look for a long path or a file in use.

Quick decision table

SituationDo this firstStop and get help when
A shortcut failsRead the Target line and repoint itThe target exists but the error keeps returning
A downloaded file failsCheck for Unblock on the General tabThe source is unknown or the file is an unexpected program
A folder refuses changesRead the Security tab and change nothing yetOnly a change to a system folder would help
Security software is involvedRead Protection historyYou cannot explain the block
A drive or cloud file failsReconnect the drive or download the fileThe drive is present and the error stays

Work through the causes

Check the causes in this order. If you are not sure where to start, the Repair Assistant asks short questions and points to the right check.

  1. Location Confirm the item still exists.
  2. Shortcut Check where it points.
  3. Block Check downloads for Unblock.
  4. Access Read permissions and security history.

Check the shortcut target

A shortcut is only a pointer. If its target is gone, Windows shows this error. Right-click the shortcut, select Properties (general guidance), and open the Shortcut tab. Read the Target box.

Right-click shortcutPropertiesShortcutTarget

You should see: a full path to an item. Open that location to confirm it exists.

If this fails: the path does not exist. Search your PC for the file name, correct the Target box, and click OK. A shortcut can point into a hidden folder such as AppData or ProgramData, so read the AppData and ProgramData folders guide first.

If the file is gone, start with the recover deleted files guide. If a PC cleaner removed it, read the PC cleaner recovery guide. If you have several copies, the duplicate files guide helps you pick the right one.

Leftover entries from removed programs are covered in the leftover registry entries guide. If a program will not uninstall at all, see the guide to apps that will not uninstall.

Unblock a downloaded or emailed file

Files from the internet or email can carry a block mark. Right-click the file, select Properties, and open the General tab (general guidance). If an Unblock box appears near the bottom, tick it, click Apply, and then click OK.

Before you start

Unblock only files you trust. Scan unknown files with Windows Security first. Stop here if the file is an unexpected program, script or macro.

You should see: the Unblock box disappears after you click OK, and the file opens.

If this fails: there is no Unblock box, so the block is not the cause. Go on to the next check.

Look at permissions without changing them

Open Properties, then the Security tab, and read the names in the top list. Select a name to see its permissions (general guidance). At this stage, look only.

You should see: your user name, or a group such as Users or Administrators. If your name is missing, the item belongs to another account.

If this fails: the tab is missing or your account is not listed. Do not add accounts. Ask the device owner or an administrator. Registry permission messages are a separate case, covered in the registry permission errors guide.

Edit permissions only when you know why they were set. Back up the folder first, using the Windows backup guide. Never change permissions on C:\Windows or Program Files, and never take ownership of a system folder.

Check Protection history without turning protection off

Security software can quarantine or block an item. Open Windows Security, then Virus and threat protection, then Protection history (general guidance). Look for the file name and the action taken. If Windows Security itself will not open, see Windows Security not opening.

You should see: past detections with an action such as quarantined or allowed. Read only, and do not change protection settings.

If this fails: no entry matches, so the block comes from elsewhere. Return to the earlier checks. Do not restore a quarantined item unless you are sure it is safe. If you suspect malware, the guide to removing a virus or malware explains a safe order, and the guide to cleaning up after virus removal lists the next steps.

Disconnected drives, USB sticks and online-only files

A shortcut to a drive letter that is not present fails with this error. Reconnect the USB stick or network drive, then open the item again.

You should see: the drive in File Explorer and the file opening. If this fails, a network share may be offline, so reconnect and check your access.

Online-only OneDrive files sit in the cloud until they are downloaded. Right-click the file and select Always keep on this device to keep a local copy (Microsoft Support). For sync trouble, read the OneDrive sync problems guide.

Damaged zips, long paths and installers

Items opened inside a zip window often fail, because the files are not on your drive yet. Extract the whole zip to a new folder, then open the item from there (general guidance). If the error returns, download the zip again from its source.

If you can open a file but cannot copy it, the copy and paste fixes cover that separate problem.

Long file paths can also block an open: Microsoft notes that the classic Windows API path limit is 260 characters (MAX_PATH). Move the item to a shorter folder such as Documents. If the drive is nearly full, first free up disk space.

An installer run from a protected location, or from inside a zip, can fail this way. Copy it to a folder you own, such as Downloads, and run it from there (general guidance). If a Windows Installer error follows, read the guide to Windows Installer error 2503 and 2502.

When the error names a system file

Use this only if the error names a Windows component or a file in the Windows folder, and the earlier checks did not help. Microsoft's System File Checker page says to run DISM before SFC. The full walkthrough is in the guide to repairing Windows system files with SFC and DISM.

Step 1: open Command Prompt as administrator. Type cmd in the search box, right-click Command Prompt, and select Run as administrator (Microsoft Support).

You should see: a window titled Administrator: Command Prompt.

If this fails: ask an administrator to run these steps.

Step 2: run DISM first, and let it finish.

DISM.exe /Online /Cleanup-image /Restorehealth

You should see: a progress percentage, then a completion message. This can take several minutes.

If this fails: the message reports an error. Stop and get help rather than repeating the command.

Step 3: save your open work, then run SFC. Do not close the window until the verification is 100 percent complete (Microsoft Support).

sfc /scannow

You should see: a result message. If it reports no integrity violations, the scan found no missing or corrupted system files, so system files are unlikely to be the cause.

If this fails: it reports corrupt files it could not fix. Stop here. Do not replace system files by hand.

Do not do this

  • Do not run takeown or icacls against system folders such as C:\Windows or Program Files. These commands change ownership and can break Windows.
  • Do not change permissions on C:\Windows or Program Files to make an error go away.
  • Do not download fixer tools, registry cleaners or repair programs from unknown sites.
  • Do not turn off antivirus or Windows Security just to open one file.
  • Do not restore quarantined files you cannot identify, or take ownership of a folder you did not create.
  • Do not copy system files from another PC into the Windows folder.

When to stop and get help

  • The only fix is a permission change inside Windows, Program Files or another system location.
  • The error names a system file, and DISM or SFC does not finish cleanly.
  • Protection history shows a block you cannot explain.
  • The PC is a work or school device, managed by an administrator.
  • The error stays after the shortcut, unblock, drive and extraction checks.

For a wider set of checks, browse the PC repair guides on this site.

Windows 10 note

Windows 10 support ended on October 14, 2025. Consumer Extended Security Updates run until October 12, 2027, according to Microsoft's Extended Security Updates page. Menu names can differ on Windows 10, so follow the closest matching item.

Frequently asked questions

About the error

Why does Windows say it cannot access the specified device if the file is there?

The file may be present but blocked, locked by another program, or reached through a broken shortcut or drive. Check the exact path first. Then check for a block, another program holding the file open, and whether your account can read it. The path usually tells you more than the message does.

Does this error mean my PC is infected?

Not necessarily. Blocked downloads, broken shortcuts and permission settings cause the same message. If the error comes with pop-ups, unknown programs or changed settings, run a full scan with Windows Security and follow a safe cleanup order. A single error on one shortcut rarely points to infection.

Why does the error mention permissions when I created the file?

Ownership and permission are not always the same. A file can carry a block, or a parent folder can restrict access, even when your account created the item. Look at the Security tab first and read the accounts listed. Change nothing until you understand why the setting is there.

Can a program show this error for a file that no longer exists?

Yes. A program can keep an old path after you move or delete what it opened, then report that Windows cannot access the specified device. Check the program settings for a file location, or reinstall it from its original source. Do not edit registry entries to fix this.

Fixing it

Is it safe to tick Unblock?

It is reasonable for a file you trust, such as a document from a known person or an installer from the original publisher. It is not a good idea for an unknown program, a macro or a file you did not expect. Scan the file with Windows Security first, and stop if the scan reports a threat.

Should I run DISM and SFC for this error?

Only when the error names a Windows component or a file in the Windows folder, and simpler checks did not help. Run DISM first, then sfc /scannow, and let both finish. If SFC reports corrupt files it cannot fix, stop and get help rather than repeating the scan.

Will extracting a zip fix the error?

Often, yes. Items opened inside a zip window can fail because the files are not really on the drive yet. Extract the whole archive to a new folder, then open the item from there. If the error stays, download the zip again, because an incomplete download can also cause it.

When should I stop and ask for help?

Stop when the only fix is a permission change on a system folder, when the PC is managed by an employer or school, or when security software reports a threat you cannot explain. A local technician or your administrator can check the device without guesswork.

How this guide was checked

The Microsoft Support page on System File Checker opened, and it confirms that DISM runs before SFC, using the commands shown here, the Run as administrator steps, and the advice to keep the window open until verification is complete. The Windows 10 support dates come from Microsoft's Extended Security Updates page. The Microsoft Support page on OneDrive Files On-Demand confirms the Always keep on this device option, and Microsoft's maximum path length page confirms the 260-character MAX_PATH limit. A Microsoft Learn page on Mark of the Web returned not found, and the search tool was unavailable, so no Microsoft page could be opened for the Unblock, shortcut, Security tab and Protection history steps. Those remain general guidance. No step was run on a real PC.

Sources