Error 1219 occurs when I try to map a network server to multiple servers

I have a network drive (e.g. G: on server A). And I'm trying to map an additional network drive (H :) to the new server (Server B). I tried the net use command, which led to error 1219 on Windows XP.

 net use h: \\ServerB\docs /user:ServerB\user Password 

I connect the network drive of server A using the account of server A. And I have to use both network drives at the same time, so I don’t think I can use the net use * /del command to connect to server B.

What can I do?

+4
source share
2 answers

Any user commands:

net use (to view all existing connections)

net use * / del / yes (to delete all existing connections)

Script

 @echo off set "svrname=server" set "share=share$" set "usr=administrator" set "pwd=password" for /f "tokens=2" %%# in ('net use^|find /i "\\%svrname%"') do net use %%# /delete>nul net use l: \\%svrname%\%share% /user:%usr% "%pwd%">nul 
+8
source

If you use the IP address of the server instead of the DNS name, it will bypass these stupid Windows restrictions.

So instead

 net use h: \\ServerB\docs /user:ServerB\user Password 

If the "Server" has an IP address of 192.168.0.1, you can use

 net use h: \\192.168.0.1\docs /user:ServerB\user Password 

Hope this helps

+4
source

All Articles