Unable to connect to Synology SMB share from Windows 10 Pro, solution.

One of my machines was giving me a headache. I could not connect to my Synology file shares. All my other machines in my could just fine except this machine. Even after a reinstall it didn’t work. I kept getting the error: The specified server cannot perform the requested operation. The difference between the machines working and not working was the machine not working was Azure Active Directory Joined. The other machines weren’t.