Had this myself. I'd have two windows open (a program and an explorer window) then it would close with a popup saying the mapped drive was not available. The solution:
From another forum:
"It appears this issue has actually been around since Windows 8 and is caused by Group Policy drives which are set to "Recreate". Windows 8/10 automatically runs Group Policy updates in the background and disconnects/reconnects the drive to Recreate it.
Change the drive to "Update" in group policy and the issue will disappear!"
I hope that helps others - it was driving me bonkers!
From another forum:
"It appears this issue has actually been around since Windows 8 and is caused by Group Policy drives which are set to "Recreate". Windows 8/10 automatically runs Group Policy updates in the background and disconnects/reconnects the drive to Recreate it.
Change the drive to "Update" in group policy and the issue will disappear!"
I hope that helps others - it was driving me bonkers!