Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Access a Shared Folder on Windows with a Different Username

May 28, 2026

Access a Shared Folder on Windows with a Different Username

This article explores ways to access a shared network folder from the current session using a different user account, including mapping a network drive with alternate credentials and saving the user’s credentials used to access the share to the Credential Manager. These methods can be useful when you need to temporarily access a file server in another domain or workgroup from the current user session without having to log out and sign in as a different user.

Contents:
  • Mapping a Network Drive with Different User Credentials
  • Access a Network Share as a Different User with NET USE
  • Open a Shared Folder Using Saved Credentials

Mapping a Network Drive with Different User Credentials

When mapping a network drive in File Explorer, you have the option of connecting to the shared folder using a different user account. When you enable the Remember my credentials option, this user’s credentials will be saved to the Windows Credential Manager.

Map a network drive with different user credentials

Open the Credential Manager (run control /name Microsoft.CredentialManager -> go to Windows Credential) and check that it now contains the saved credentials for that user account. View saved Windows Credentials to access shared folder

Now, when accessing the specified file server from the current user session, Windows will use the saved credentials. This method can be used when you need to access a shared folder or file server under a different account from the current one or from another domain.

Access a Network Share as a Different User with NET USE

Open the non-elevated command prompt (without using the ‘Run as administrator’ option). Use the following command to map a network folder using a different user account:

net use J: \\192.168.123.123\backup /USER:WOSHUB\maxbak * /PERSISTENT:YES

The specified network folder will be mounted as a network drive J:. In this case, the account password is prompted interactively and is not actually saved. Accessing this mapped network driver without re-entering the password is only possible within the current user session.

You can create a connection to a shared folder under a different user account without mounting it as a network drive. Use the following command:

net use \\192.168.123.123\Backup /USER:WOSHUB\mark * /PERSISTENT:YES

To open the specified shared folder in File Explorer, run:

explorer.exe \\192.168.123.123\Backup

net use command with a different username

It is not possible to access shared folders on the same file server simultaneously under different accounts. If you try to access the same file server using a different user, a multiple connection error will appear:

System error 1219 has occurred
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed.

Multiple connections to a share using more than one user name, are not allowed.

You will have to either delete the previous connection to a share:

net use
net use \\192.168.123.123\Backup /del

net use delete mapped network drive

or disconnect all sessions at once:

net use * /del

Alternatively, you can establish a second connection to the same network share using different credentials by connecting through the server’s FQDN or IP address, depending on how the first connection was created.

Open a Shared Folder Using Saved Credentials

In Windows, you can manually add other users’ credentials to Credential Manager and then use them to automatically access a specific file server (shared folder).

Open a non-elevated command prompt and save the user credentials required to access the file server or NAS storage:

cmdkey /add:m-fs01.woshub.com /user:WOSHUB\maxbak /pass

The command will prompt you for a password, which will then be saved in Credential Manager.

cmdkey - add user credentials for network access with /netonly

Now, when you open File Explorer and access a file server via the UNC path (using the server name specified in the previous command, for example \\m-fs01.woshub.com\share), the saved credentials will automatically be used for accessing any network shares on that server.

You can also open a shared folder under a specific user by using the runas command:

runas /netonly /user:WOSHUB\maxbak "explorer.exe \\m-fs01.woshub.com\Backup"

The /netonly parameter in the runas command means that the saved user credentials provided are only used to access remote network resources, but not to run a local program.

Storing the credentials of privileged accounts within a user session is not secure. Users can use them to perform destructive actions or even extract admin passwords in plain text.

List saved credentials in Credential Manager:

cmdkey /list

Delete the previously saved credentials:

cmdkey /delete:m-fs01.woshub.com

delete saved credentials using cmdkey

0 comment
0
Facebook Twitter Google + Pinterest
Questions and AnswersWindows 10Windows 11
previous post
How to Monitor Windows Machines with Zabbix

Related Reading

How to Move (Migrate) Windows Shares to a...

February 26, 2026

How to Detect Which User Installed or Removed...

June 25, 2025

Security Warnings When Opening RDP Files in Windows...

April 20, 2026

Find a Process Causing High Disk Usage on...

July 16, 2025

Monitor Windows Log Files in Real Time with...

March 26, 2026

SMB over QUIC: Mount File Share over Internet...

December 24, 2025

Pin and Unpin Apps to Taskbar in Windows...

March 26, 2026

Windows: Create (Install) a Service Manually

December 17, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Fixing Duplicate Security Identifier (SID) Issues in Windows

    May 25, 2026
  • Monitor a Folder for File Changes Using PowerShell and FileSystemWatcher

    May 15, 2026
  • Protect Windows Server from DDoS and Brute-Force Attacks with IPBan

    May 12, 2026
  • How to Force Uninstall ANY Stubborn Program in Windows

    May 7, 2026
  • How to Safely Disable IPv6 on Windows

    April 30, 2026
  • Updating UEFI Secure Boot Certificates on Windows Devices Explained

    April 20, 2026
  • Security Warnings When Opening RDP Files in Windows 11

    April 17, 2026
  • Find Computers with Pending Reboot Status Using PowerShell

    April 15, 2026
  • Mounting NFS Shares in Windows Using the Built-in Client

    March 26, 2026
  • Monitor Windows Log Files in Real Time with PowerShell

    March 17, 2026

Follow us

  • Facebook
  • Twitter
  • Youtube
  • Telegram
Popular Posts
  • Converting Windows 10 to Enterprise LTSC Without Losing Data
  • How to Remove ‘Some Settings are Managed by Your Organization’ on Windows 11 or 10
  • Remove the Max Path Length Limit (260-Characters) on Windows
  • Installing Windows without USB/DVD or Other External Drives
  • How to Pause (Delay) Update Installation on Windows 11 and 10
  • Unable to Map Drive: An extended error has occurred
  • Fix: The System Administrator Policies Prevent the App Installation
Footer Logo

@2014 - 2026 - Windows OS Hub. All about operating systems for sysadmins


Back To Top