Recently for a user I’ve had an issue with the mapped drives disappearing from the desktop. As a test, I used UNC paths and they stayed on the desktop. The network connection wasn’t dropping as I was doing a constant ping. It seems that Windows 10 will drop idle connections after a specified time-out period by default, to prevent wasting resources.
You can turn of the auto-disconnect feature by typing the following in an elevated command prompt and hit Enter.
net config server /autodisconnect:-1