Recently, we posted about The account is not authorized to log in from this station error while accessing the network resource share. Today in this post, we’re going to talk about yet another issue you might face while accessing the network (Network-attached share aka NAS, domain, or HomeGroup). Show Actually, following is the error we’ve just came across while connecting to the network share: <network-resource-name> is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.Logon failure: the user has not been granted the requested logon type at this computer.In this case, we’ve have the credentials for the accessible machine. But for this type of issue, you need to confirm that you’ve turned on File and Printer Sharing and turned off Password Protected Sharing on the machine you’re trying to connect. If you still have the issue after confirming these settings, check the permissions using Security Policy snap-in. FIX: The User Has Not Been Granted The Requested Logon Type At This Computer In Windows 10/8/7FYI: These steps are only applicable to Windows Pro, Enterprise, Education editions. 1. Press 2. Then in Security Policy snap-in window, navigate here: Security Settings > Local Policies > User Rights Assignment 3. In the right pane corresponding to User Right Assignment, look for the policy named Allow log on locally and double click on it. On the property sheet, at Local Security Setting tab, simply add the users who’re facing this issue using Add User or Group button. Then click Apply followed by OK. 4. Similarly check the Deny log on locally policy under Security Settings > Local Policies > User Rights Assignment and for this, make sure the users facing this issue are not listed on Local Security Setting tab of its property sheet. Close Security Policy snap-in. You must reboot the machines to make changes effective. After restart the issue should no longer occur. On the domain controlled machines, running gpupdate /force may also make the changes effective instead of reboot. Hope this helps! READ THESE ARTICLES NEXT
I have a file share on a remote PC, read only, guest access is on. I'm trying to read a file from that share via its UNC path, from a desktop app, using the code like this: var bytes = File.ReadAllBytes(@"\\someservser\someshare\somefile.txt");, but getting the following exception: System.IO.IOException HResult=0x80070569 Message=Logon failure: the user has not been granted the requested logon type at this computer. Source=<Cannot evaluate the exception source> StackTrace: <Cannot evaluate the exception stack trace> This exception was originally thrown at this call stack: System.IO.__Error.WinIOError(int, string) in __error.cs System.IO.FileStream.Init(string, System.IO.FileMode, System.IO.FileAccess, int, bool, System.IO.FileShare, int, System.IO.FileOptions, Microsoft.Win32.Win32Native.SECURITY_ATTRIBUTES, string, bool, bool, bool) in filestream.cs System.IO.FileStream.FileStream(string, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, int, System.IO.FileOptions, string, bool, bool, bool) in filestream.cs System.IO.File.InternalReadAllBytes(string, bool) in file.csI can open this file from Windows UI without any problem (same user as used to run the failing app). What has not been granted the requested logon type?To solve “The user has not been granted the requested logon type at this computer” error, you should make sure that the login user and all groups that belong to are allowed to log on locally to this computer.
How do I grant allow log on locally permissions to domain user accounts?The “Allow log on locally” setting specifies the users or groups that are allowed to log into the local computer. This policy can be found in Computer Configuration > Policies > Security Settings > Local Policies > User Rights Assignment > Allow log on locally.
What is logon failure?A user sees the error “Logon failure: the user has not been granted the requested logon type at this computer” when attempting to log in through Duo Authentication for Windows Logon (RDP). Alternatively, a user may see the error "To sign in remotely, you need the right to sign in through Remote Desktop Services.
How do I give log locally permission?Navigate to Local Computer Policy >> Computer Configuration >> Windows Settings >> Security Settings >> Local Policies >> User Rights Assignment. If any accounts or groups other than the following are granted the "Allow log on locally" user right, this is a finding.
|