Question Locked

system error 53 with net use

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

This might be a simple problem, but I am trying to map a drive in a .bat file using net use.

When I do
net use \\serverA\folder
I get error 53 and "The network path was not found.

However, I can map the drive in explorer and can browse the server just fine in i.e. using the same path.

Any thoughts?

8 replies

by etienneh8y

Typo in the post, woops. I tried a variety of different drive letters, including ones that I successfully mapped to other servers (I unmapped them before trying with this one).

Sorry for the confusion.

by sbx14

If you use %username% variable to create a user folder with net use command, it will return the error 53 as net use cannot create the user folder for you.

Otherwise check if the folder exists and then its share and NTFS permissions.

by nickadmin

I had the extact situation you are experiencing.
After checking for small details I made sure to use a CAPITAL letter for the share as such: net use S: \\servername\share
whala all is well---Of course my server has its fireweall off

by sharpear

I have issues with the same thing. I am able to view it and know the location is shared, but some machines seem to have issues when looking for PCs by names. I just switch the scripts over to use the IP address of the server instead.

My scripts look like this to get around it:
net use K: \\192.168.1.1\share Persistent:YES

by andriesjb

I have the same problem as the user above, the problem is that I can manually do the the net user X:\\server\folder in the command prompt, the moment I add it to a batch script it bombs out?

This discussion is closed to new replies.