Recently while working with PowerShell to copy files from local drive to SharePoint document library I got the below error: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
The full error message looks like below:
net : System error 1219 has occurred.
At C:\Users\Bijaya.Sahoo\Desktop\LargeFileUpdated.ps1:181 char:1
+ net use $fileDirectory /USER:$username $password
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (System error 1219 has occurred.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
multiple connections to a server or shared resource by the same user rename computer
The fix the error multiple connections to a server or shared resource by the same user rename computer, run the below command:
net use * /delete
Read some SharePoint PowerShell tutorials:
- Enable or Disable List Throttling using PowerShell in SharePoint 2013
- Bulk SharePoint Online Site Collection Creation using PowerShell
- Delete Hidden Web Application in SharePoint 2013 using PowerShell
- Hide Document Library or Lists using PowerShell in SharePoint 2016 or SharePoint 2013
- SharePoint Online storage limits
- How to send email using PowerShell in Office 365
- Exception calling ExecuteQuery with 0 argument(s): Unable to connect to the remote server
- The term is not recognized as the name of a cmdlet function PowerShell
This PowerShell tutorial helps us to fix error multiple connections to a server or shared resource by the same user rename computer.
Hello Everyone!! I am Bhawana a SharePoint MVP and having about 10+ years of SharePoint experience as well as in .Net technologies. I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools. Now exploring more in SharePoint 2016 🙂 Hope here I can contribute and share my knowledge to the fullest. As I believe “There is no wealth like knowledge and no poverty like ignorance”