Looking for a shorter route...

My company integrated Teams last year, which has been great, but with it, the embedded SharePoint documents structures has brought on new challenges. Personally, I like to map my most heavily used Teams file folders as network drives for quick access, which is great when they work but....as a result of forced IT updates, my laptop is often rebooted in the middle of the night without any warning or notice to me (a whole other level of frustration). Whenever I log in and attempt to access those mapped network drives, those drives would fail to connect. After researching, I found out why and how to resolve. Basically, the fix was to log in to SharePoint via IE, going to your Documents folder, clicking the link "Return to classic SharePoint", clicking the Library ribbon, then clicking "Open with Windows Explorer". Once you do that, all of my linked SharePoint network drives work without issue.

That all said, is there any way to create a batch file to:

  1. Authenticate LDAP credentials when prompted initially from the login.microsoft.com page
  2. Trigger whatever script is opening that Documents folder in Windows Explorer

If feasible, I would look to incorporate that batch in to my startup routine.


Do not expect this feature to have a much longer life due to IE being dropped from support in M365.

Instead, use the OneDrive sync client to sync the necessary libraries. This can be done automatically.


  • Thanks Trevor! Appreciate the insight and will work to migrate. Jan 28 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.