Hello, I'm Felipe and I'm an Independent Community Advisor, and I'll do my best to help you.
To force a drive to reconnect, you can try the following steps:
Open the Run dialog box by pressing the Windows key + R.
Type "cmd" and press Enter to open the Command Prompt.
Type "net use" and press Enter to see a list of all mapped network drives.
Find the drive you want to reconnect and take note of its name.
Type "net use <drive letter>: /delete" and press Enter to delete the mapping.
Type "net use <drive letter>: \server\share /persistent:yes" and press Enter to
recreate the mapping with the "persistent" option, which should keep the mapping
alive even after a disconnect.
Regarding your issue with network shares not reconnecting after a brief disconnect, this could be caused by a number of factors such as network configuration or security settings. You may want to check your network adapter properties to ensure that it is not being powered off to save energy, which could cause a disconnect. Additionally, you can try adjusting the network security settings to allow for better connectivity.
As for the other issues you mentioned, it's difficult to provide specific solutions without more information. It's possible that there may be underlying coding or configuration issues causing the problems you're experiencing, so it may be worth reaching out to Microsoft support for assistance.