How to Prompt for Credentials while accessing Network Shared Folder in a Domain environment

IT Researcher 26 Reputation points
2024-04-25T11:44:46.24+00:00

I'm currently tasked with maintaining our internal file server in an SMB company. Our setup includes a Windows Server 2012 R2 machine serving as both a file server and a domain controller. We have around 40 computers joined to the domain, with some users logging in with non-domain/local accounts on these domain-joined computers.

The issue arises when users with non-domain accounts attempt to access shared folders on the domain server. Instead of being prompted for credentials, they receive a "Windows cannot access <\share_name\shared_folder>" error.

Our requirement is for non-domain users to access shares on the domain file server for specific needs. How can I configure the domain file server to prompt users to enter domain credentials (username and password) whenever they attempt to access the shared drive?

Any guidance or suggestions on resolving this issue would be greatly appreciated.

Thank you.

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,538 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,969 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 13,020 Reputation points MVP
    2024-04-25T12:06:51.15+00:00

    Follow https://serverfault.com/questions/268938/how-to-force-windows-to-prompt-for-credentials-while-accessing-share


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. Wesley Li 5,170 Reputation points
    2024-04-26T12:33:15.8833333+00:00

    Hello,

    Please make sure the permissions on the shared folder are set to allow local account access.

    When permissions on shared folders are set to domain users only, users who log in with local accounts will not be able to access those shares because their identity is not recognized by the domain controller. However, if the permissions on shared folders are set to allow access for all users, or if a specific local account or group is given access, it is possible that users who log in with a local account will be able to access those shares.

    0 comments No comments