Windows 11 network drive mapping problem

Associate
Joined
22 Aug 2010
Posts
2,213
Location
In My Command Center
I have two PC's that I use on the daily -

PC1 -
Windows 10 Pro Vers 21H1, Build 19043.1237
5900x
3090
32GB 3600Mhz RAM
NVME 512gb PCIE Gen 4 Boot drive
NVME 1tb PCIE Gen 3 Game Drive
HDD 2tb Media drive

PC2 -
Windows 11 Pro Vers 21H2, Build 22000.194
5600G
1070
16gb 3600Mhz RAM
NVME 256gb PCIE Gen 3 Boot Drive

PC1 is my main gaming/work rig and PC2 is for Media.
I share my 2TB HDD from PC1 to PC2 across my home network, both PC's are hardwired to the router.
It worked fine when both machines were on windows 10.
I have both machines configured the same with no passwords enabled for sharing.

The issue is when I map the drive in PC2 it keeps asking for the credentials of PC1, user name and password.
I have both machines signed in on my MS account, they both use the same user name and password.
When I input my details it says that the pw is wrong..... its not!

The things I have tried are as follows -

Confirmed the pw it is asking for is correct.
Made sure my network and sharing options are correct on both machines.
Made sure required PW is off.
Made sure SMB is active on both machines.

I don't know why it is asking for credentials, or why its saying the pw is incorrect.
 
Soldato
Joined
17 Oct 2005
Posts
6,243
Location
North of Watford Gap
I'm sure there's a user-friendly GIU method of automating it now, but I've always just made a drive or folder share, used a batch file to mount it as a drive, made a shortcut to the batch file and moved the shortcut to one of the start-up folders.

It works with Windows 10 and I assume it will with W11 too.


Create a batch file with the following:

If the share is open:
Code:
net use z: \\pcname\driveorfoldershare /persistent:yes password /USER:pcname\username



If the share is hidden:
Code:
net use z: \\pcname\driveorfoldershare$ /persistent:yes password /USER:pcname\username





Start-up folder for shortcut to batch file (paste the below into explorer to go straight there)
Code:
%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
 
Back
Top Bottom