You may not have permission to use it. Error: Login failed: Target account is incorrect

You may not have permission to use it. Error: Login failed: Target account is incorrect

26.07.2023


Problem

When you try to install, update, or run a program or file, you receive the following error message:

Error: "Windows cannot access the specified device, path, or file. You may not have the correct permissions to access this item."


Cause

This issue occurs when any of the following conditions are true on your computer.

  • You do not have permission to access the file or its location.
  • The file is in a location that is not currently accessible, such as a network folder or external drive not currently connected to the computer.
  • The file has been moved or deleted.
  • The file or shortcut is damaged.
  • Windows may be blocking the file.
  • Antivirus software may block the file.
Solution

To resolve this issue, follow the steps below, starting with method 1. If this method does not fix the issue, move on to the next method.

Method 1: Check if you have permission to open the file.

Note: You must have administrator rights or be a member of the Administrators group if the computer is part of a domain.

Permissions are rules associated with files that determine whether a user can access a file and what actions they can perform on it. To check the permission of a file or folder, follow these steps:

Method 2: Make sure the file location is accessible.

This error can occur if a shortcut or installation tries to access a location that is not currently accessible (for example, a network folder or removable drive). Check the path of the file that Windows can't access and make sure the location is accessible. (A screenshot for this step is below.)

Method 3: Make sure the file has not been moved or deleted.

A similar error may also occur if the file has been moved or deleted. Go to the folder containing required file, and make sure it is there.

Method 4: Recreate the shortcut to check for damage.

A similar error can also occur if a shortcut or another type of file has been damaged. You can check your shortcuts for damage by re-creating the shortcut.

Method 5: Check if Is the file blocked by Windows?

In some cases, Windows may block the file. Review the file properties details - they may contain the following note: "This file came from another computer and may have been blocked to protect your computer." To check this and unlock the file, follow the steps below.
  1. Right-click the locked file and select Properties.
  2. On the General tab, click the Unblock button if the option is available.

Method 6: Check to see if your antivirus software is blocking the file.

To check if antivirus software is blocking a file, temporarily disable it and try to open the file. If you need to temporarily disable your antivirus software, turn it on immediately after completing the required action. If your computer is connected to the Internet during this outage, it is vulnerable to attack.

When setting local network on Windows 7,8 and 10, you need to correctly assign user access and configure services. Otherwise, a network error with codes 0x800070035, 0x80004005, or 0x800704cf occurs and a message appears that Windows cannot access the desired network folder, drive, device, or file.

The error message, depending on the OS version, may look like this:

  1. Windows cannot access a computer on the local network. Network path not found. Error code:
  2. Windows cannot access a network folder/drive/other location on the local network.
  3. Windows cannot access *Folder or file*. There is no permission to access *Folder Path*. Contact your network administrator to gain access.

[Update] It is possible to quickly fix errors with code 0x80004005 (and sometimes with others) with just one registry entry:

  1. Open “Start” -> “Run”, enter regedet and press Enter.
  2. In the HKEY_LOCAL_MACHINE registry key, go to the path \Software \Policies \Microsoft \Windows\LanmanWorkstation.
  3. RMB - create a new parameter name AllowInsecureGuestAuth type REG_DWORD Enabled Value 1 (value 1 - enabled). Restart your PC.

Fixing network errors 0x800070035 and 0x80004005

The reasons why Windows 7 or 10 can access a network folder or files almost always lie in incorrectly configured system settings rather than in any errors. For similar reasons, on a local network, the system may and will display the error “The connection could not be established. Network path not found." with similar codes. Most problems can be easily fixed with simple settings changes.

If Windows cannot access a network folder and displays errors 0x800070035 or 0x80004005, you need to:

  1. Check your sharing settings.
  2. Make sure it is enabled network service"Server".

Checking sharing settings

Errors when accessing a network folder often occur in Windows due to incorrect access settings. If a disk, folder, file or computer is not shared, other participants on the local network will not be able to establish a connection.

Sequencing:

  1. Select the network folder or drive that you want to share.
  2. Right click, select in context menu"General access".
  3. Go to the submenu item “Specific users”.
  4. In the window that opens, click on the triangular arrow located next to the “Add” button.
  5. Select from the list that appears the user to whom you want to grant access. If there are no users in the list, you should select the “All” option.
  6. Set access rights for the user: read only (view files), or read and write (the ability to change, add and delete files from a network folder).

After this, you need to click on the “Sharing” button and, if the system does not show any errors or warnings, click on the “Finish” button.

After this, the system should open access to the specified path for all users of the local network.

Checking the functionality of the Server service

“Server” is a built-in service in Windows necessary for the operation of the local network and connection to remote computers, devices or files. If the computer has not previously been used as a server or to connect to home network, the service may be disabled. This often causes errors in accessing network folders, even when the rights for all users are set correctly and other OS settings are normal.

Turning services on and off in Windows 7 and 10 occurs in the Control Panel:

  1. Click “Start” - “Administration” - “Services”.
  2. If the “Administrative Tools” tab is not in the “Start” menu, go to “Control Panel” and find the “Services” item in the list in the “Administration” tab.
  3. A window will open with all services in which you need to find “Server”.
  4. Right-click on the “Server” line and select “Properties” in the context menu that appears.
  5. In the window that opens, in the “General” tab, select “Startup type”: automatically or manually.

If the service was initially disabled, the Startup Type will be set to Disabled. Starting it manually will force you to restart the service every time you need to access a network folder, remote computer or files in a homegroup. IN automatic mode the service will start on its own, and you will not need to perform these steps again.

Configuring network card properties

Connection errors network devices with codes 0x800070035 and 0x80004005 can be resolved by setting the settings network connection. In settings network card you need to uncheck the iPv6 protocol, and also configure iPv4. The method works equally well in all versions of Windows 7 and 10. First, you should only try to disable the iPv6 protocol, and only then perform the remaining steps if this simple method does not help.

Step-by-step instruction:

  1. Go to the “Start” menu, go to “Control Panel”.
  2. IN Windows 7: Go to the “Network and Sharing Center” section shared access", then "Change adapter settings". For Windows 10: In the control panel, select “Network and Internet”, then “Network and Sharing Center”, select “Change adapter settings” in the left menu.
  3. Select the local network connection that cannot be accessed. Right-click on it and select “Properties”.
  4. In the properties of the network card, remove the icon from the iPv6 protocol.
  5. Open the properties of the iPv4 protocol, go to the “Advanced” tab.
  6. Open the tab called “WINS”, click on “NetBIOS Settings”.
  7. Check the box depending on the type of IP addressing: “Default” for dynamic IP addressing and “Enable NetBIOS over TCP/IP” for static.
  8. Press “Ok”, “Ok”, “Ok” three times.

After this, you need to perform a few simple steps in Device Manager:

  1. Open “Start” - “Control Panel” - “Hardware and Sound” - “Device Manager”.
  2. Go to the “View” tab, select the “Show hidden devices” checkbox.
  3. Click " Network adapters" and remove all 6to4 adapters.

The changes will take effect after you restart your computer.

Configuring Component Services

The settings of this service rarely cause access errors to network folders and devices. For this reason, it is advisable to change the service settings last, if other methods do not help.

Setup instructions local access via Component Service:

  1. Click the "Start" button and enter "Component Services" in the search box.
  2. Right-click on the result found and select “Run as administrator” from the context menu.
  3. In the window that pops up, allow the program to make changes to this computer. A window with the service should open.
  4. Open the Component Services window and open the second Computers window.
  5. Right-click on “My Computer”, go to the “Properties” tab, then “Default Properties”.
  6. Set "Default Authentication Level" to "Default".
  7. Set the "Default Impersonation Level" to "Impersonate".
  8. Click the “Apply” button.
  9. Click the “Ok” button.
  10. Close the Component Services window.

It is advisable to immediately restart the computer and then try to connect again. If the error persists, you should check your network folder access settings.

Network folder access settings

Windows may display an error when accessing the folder and ask you to contact the administrator if the settings of the shared folder where the distributed files are located are incorrect. In this case, all devices within the local network can normally detect each other, and the connection is established without problems.

Only those users who have access can view the contents of a network folder. It's easy to check:

  1. Right-click on the desired folder and open “Properties”.
  2. Go to the "Security" tab.
  3. In the “Groups or Users” window, “Everyone” should be selected.

If so, then everything is fine. Otherwise, you need to add a new group:

  1. Click the “Edit” button under the “Groups or Users” window.
  2. Click on the “Add” button and go to the “Advanced...” tab.
  3. Click “Search”, select the line “All” in the search results, and then click “OK”.
  4. Click “Ok” again.

It remains to set the rights for the created user group “Everyone” - read, access, change, and so on. In the same way you can install different settings for individual groups, but this is not required. The same settings for all users will reduce the risk of repeated access errors to a minimum.

Problem: The network resource cannot be accessed. The network folder is displayed...

but when I try to log in, the system displays the following message:

Windows cannot access \\computer\network_resource. Permission to access \\computer\network_resource absent. Contact your network administrator to gain access.

IN operating system Windows XP similar message sounds like this:

No access to \\computer\network_resource. You may not have permission to use this network resource. Contact the administrator of this server to obtain the appropriate access rights. Access denied

Why can't I access the network resource?

The reason may be due to the following factors:

  • The user does not have permission to access the share.
    These rights are configured on the tab Access and are relevant only for setting up network access.
  • The user does not have permission to access the folder at the NTFS permission level
    Configured on the tab Safety. This setting regulates access rights both over the network and locally.
  • The user does not have network access permissions or NTFS rights.

How to share a network folder with all users

Settings must be performed on the computer where the network resource is located.

Go to Computer Management:

Open the section Shared folders. Select a subsection Shared Resources and find out the local path to the folder that is open to the network.
In our example, we see that the network resource temp matches local path C:\temp :

We find local folder, right-click on it and call Properties:

1 The first thing to check is network access permissions. Open the tab Access and press the button Advanced setup:

Press the button Permissions:

Let's check who it's open to network access, and also check the rights.
In order for all users to be able to access the network resource, the list Share Permissions need to add a group All.
In our case, full access is open to the group All. This means everything is fine with network permissions:

2 The second thing you need to check is NTFS rights. Go to the tab Safety and check the global permissions to access the folder.
In our example, we see that only users and administrators of the local computer can see and enter this folder. This means that if we try to log into a network resource under a user who does not have an account on the local computer, we will be denied access.

In order to allow access to the folder to all users, even those who do not have an account on the local computer, you need to add the same group to the list All. To do this, press the button Change:

Click Add:

Adding a group All and press OK.

Attention! It is NOT necessary to search for a group in the list of groups and users. You can simply write the word “Everything” with your hands - always with a capital letter.

© 2024 hecc.ru - Computer technology news