When mapping a network drive in an environment that uses Active Directory or a workgroup, it is important to enter the username in the correct format to ensure successful authentication.
Domain-Joined Systems (Active Directory)
For systems that are joined to an Active Directory domain, the username should be entered in one of the following formats:
DOMAIN\Username
Example: CORPDOMAIN\Hunter
Username@domain.com
Example: Hunter@corpdomain.com
The "DOMAIN" might also be the device name.
These formats specify that authentication should occur against the specified domain.
If connecting to a computer that is not part of a domain (such as a standalone machine or one in a workgroup), you must specify the local device name followed by a backslash and the username:
COMPUTERNAME\Username
Example: DEVICENAME\Hunter
This format ensures that the credentials are authenticated against the local user accounts on the target machine rather than a domain controller.
Always verify whether the target system is part of a domain or a workgroup to determine the appropriate username format before mapping the network drive.