Microsoft has always prioritized security over accessibility. Sometimes errors occur when trying to access the system or accounts or a specific folder and problems occur, even though we technically have full rights to do so. However, the systems have been designed in such a way that if there is even the slightest chance of a security breach, it blocks access instantly.
One such case is when users get the error:
"Access denied to destination folder."
The error occurs with both shared folders and local files.
A known cause behind the problem is when multiple users log into the system and one of them tries to update the OS version. However, there may be other reasons as well.
Solution 1] Check connectivity between systems and permissions
In case we are facing this issue with shared folders, our first approach should be to check the connectivity between the 2 systems. Even if they are visibly on the same network, connectivity can be hampered due to many other reasons such as the firewall.
Check your system's IP address as follows:
1] Press Win + R to open the file run window and type the command cmd. Press Enter to open the Command Prompt window.
2] Enter the command ipconfig and press Enter.
3] In the list of information displayed, check and make a note of the IPv4 address.
4] Now go to the host system and open the command prompt as explained above. Type the command:
Where is it what we noted earlier.
5] Press Enter to execute the command and it will be useful to check if the 2 systems are connected or not.
In case they are not connected, we may temporarily disable the Firewall as follows:
1] Press Win + R to open the Run window and type the command control panel. Press Enter to open the Control Panel.
2] Select Window Defender Firewall of the list.
3] In the list on the left side, click Turn Windows Defender Firewall on or off.
4] Move the radio button to Disable Windows Defender Firewall (not recommended) for public and private network settings.
In addition to the Firewall, antivirus software may also be temporarily disabled.
Once the connectivity issue is fixed, we could check the permissions.
1] Right-click the shared folder (may need to be on the host system) and select Properties.
2] On the Share tab, click Share.
3] Add, remove users and change permissions as needed.
Solution 2] Verify that network discovery and file sharing are ON
Even if the 2 systems are connected and the permissions are checked, the error may occur if network detection is disabled. Here's how to check and fix the same:
1] Press Win + R to open the file run window and type the command control panel. Press Enter to open the Control Panel.
2] In the Control Panel window, select Networks and Shares.
3] In the list on the left, select Change advanced sharing settings.
4] In the Network Discovery section, select Enable network discovery.
5] In the File and Printer Sharing section, select Enable file and printer sharing.
If the 2 solutions mentioned above don't work, we might try removing and re-adding permissions.
I hope this helps!