“An error occurred while reconnecting Z: [drive letter:] to \\server-name\shares
Microsoft Windows Network: The handle is invalid.
This connection has not been restored. “
I believe you tried many fix, but the problem is still there.
One of the best solution:
instead of use NETBIOS name,
Use IP address, eg:
\\192.168.1.100\shares