Until Powershell takes over windows console completely, command prompt may be the simplest way to manage the issue.
- Start a command prompt
Start -> Run (or win-R) -> cmd.exe
- If you are attempting to mount a share on a server using a username that is different from the username for which you already have a connection to any share on the same server, you will first need to disconnect all connections to that server. You can view the connections using the below command.
net use
You will receive output similar to the following:
New connections will not be remembered.
Status Local Remote Network
-------------------------------------------------------------------------------
OK G: \\srv\share Microsoft Windows Network
OK H: \\fqdn\user$ Microsoft Windows Network
\\zombie-srv\share Microsoft Windows Network
The command completed successfully.
The "\zombie-srv\share" entry is not necssarily a zombie. These kinds of entries are created when you use a unc path for any reason. (typing \\server\share
into explorer.exe for example)
- Remove all the existing shares for the server you want to create the new connection to:
net use \\server\share /delete
Note that your share may actually be a deeper path, such as \\server\homedrives\myusername
- At this point, you can attempt to reconnect.
net use \\server\share /user:somedomain\someusername
- If you still get the dreaded 1219 error, you can perform the following commands to restart the smb client service, known as lanmanworkstation. It is often the case that this will be necessary in instances where the server hosting the share you want to connect to is the same share that your active directory indicated home drive is connected automatically for you at logon.
To view extraneous service dependencies (such as vmware-converter-server) you can run sc enumdepend lanmanworkstation
To stop lanmanworkstation, you'll need to first end the dependencies, commands for the standard dependencies follow.
sc stop netlogon
sc stop sessionenv
Then you can stop lanman workstation
sc stop lanmanworkstation
Then lastly, restart lanmanworkstation and then the dependencies
sc start lanmanworkstation
sc start sessionenv
sc start netlogon
At this point, you should be able to make a connection using another user:
net use \\server\share /user:somedomain\someusername