net use - error code 1219

I am trying to understand what causes the error code 1219 (multiple connections to server by same user).

The background of my question, we are currently installing a machine at a customer, where our service technician tried to connect with the host server. This caused issues, so I asked her to make the connection with net use, which gave the error code 1219.

As I saw that before, I remembered the sort of work-around, by using the IP address instead of the server name.

Now I was about to email the person responsible for their host environment that this issue was at hand, and ask them if they could help with a proper solution. Before I send that email, I wanted to reproduce the issue on my laptop, but I can't.

What I tried to do, is map another drive letter to a shared folder from my laptop, which I thought would give the same error, but my laptop allows me to make more than one network drive mapping to the same server.

net use:

C:\Users\bp>net use
New connections will be remembered.


Status       Local     Remote                    Network

----------------------------------------------------------------------------
OK           O:        \\***-hka-fs01\data       Microsoft Windows Network
OK           W:        \\***-hka-fs01\data\machine
                                                Microsoft Windows Network
OK           Y:        \\***-hka-fs01\data\machine\300
                                                Microsoft Windows Network
OK           Z:        \\***-hka-fs01.iai.nl\data
                                                Microsoft Windows Network
The command completed successfully.

Who can explain me a bit more about the background of the error code 1219 when using net use? Why am I allowed to make multiple connections, and when would it indeed result in the expected error code 1219?

Share

Improve this question

Follow

asked Apr 26, 2016 at 17:44

bas's user avatar

bas

13311 silver badge77 bronze badges

Add a comment

2 Answers

Sorted by:

                                              Highest score (default)                                                                   Date modified (newest first)                                                                   Date created (oldest first)                              

4

The error 1219 says that you cannot open multiple sessions to a server, not connections. The number of connections is nearly unlimited by default (65532)

A session is a successfully authenticated combination of username/password from user(session) to a server, independently from the host (or the ressource you want to use, eg. network mapping, rpc, printer share or whatever). You can only open up two different (network-)sessions in one (user-)session. And always remember, yout local (and saved) credentials are sent to the remote server and if those successfully authenticate, this is session #1.

For example:

  • UserA connects to SERVER as "john", because he is logged on as "john" on his local machine
  • UserA connects to SERVER as "walker", because he needs to be "walker". he is using "net use \server /USER:walker"

In this case, the two sessions are used. 'Net use' will give you 1219 for any new connections.

The old NT trick using different server names (SERVER, SERVER.DOMA.IN, 192.168.0.1) to get up to six different sessions will no longer work, depending on your configuration.

To clean up your session connection credentials, follow these steps:

  1. net use \\SERVER /delete
  2. Clear the Credentials Cache (from the Control Panel), more on theat here: authentication - How do I clear cached credentials from my Windows Profile? - Information Security Stack Exchange

Share

Improve this answer

Follow

edited Apr 7, 2022 at 16:57

Shubham's user avatar

Shubham

322 bronze badges

answered Apr 28, 2016 at 7:55

bjoster's user avatar

bjoster

4,84755 gold badges2525 silver badges3333 bronze badges

  • thanks for the explanation. So what would happen if (from the same PC) I make one netuse connection without using credentials (thus use the credentials of the current user, say, "user1") and make a new connection where I do supply the username password, but with the exact same username as the local logged in user ("user1")? What I understand from your answer, is that the error would be given when two different users try to connect, but the error message states that 1 user can not create multiple session, right? 

    – bas

     May 2, 2016 at 8:32 
  • Windows asumes a secondary session, if you supply username+password. Just like apps where you can chose between 'Windows Authentication" or Username+Password. There is no "use windows auth but with other credentials" option. 

    – bjoster

     May 2, 2016 at 9:17

Add a comment

0

DFS can also cause mystery 1219 errors. If you are trying to directly connect to a server using it's name, and you have a drive mounted through DFS that ultimately resolves to that same actual server name, you will get 1219.

This caused one of our file moving services to suddenly stop working after home directories were re-hosted to a new server. The name showing up in explorer was the DFS name, but the actual server had been changed to be the same as the server we were connecting to in the service.

The fix was to have the service look up the IP for the server name, and to rebuild the address for both the connection and the file.copy to use the IP address.

Share

Improve this answer

Follow

answe

  • 20
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
SQL Error code: 1045是一个数据库连接错误,表示访问被拒绝。具体地说,这个错误是由于用户'root'@'slave1'在连接数据库时使用的密码错误导致的。 您可以通过添加"--verbose"参数来获取详细的堆栈跟踪信息,以便更好地了解错误的原因和解决方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [hive初始化SQL Error code:1045错误解决方法](https://blog.csdn.net/minyanping/article/details/89455979)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [deploy-to-cocoapods-github-action:Github行动部署到Cocoapods.org](https://download.csdn.net/download/weixin_42121058/18203297)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [浅谈vue-cli加载不到dev-server.js的解决办法](https://download.csdn.net/download/weixin_38568031/13198943)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值