I recently have very long login times on a Windows Server 2016 Datacenter VM.
The boot is super fast, but after I type in credentials, it takes about 60 min until I get to the desktop. The login screen keeps "Applying User Settings" in the meantime.
This happens only on ONE of many (30+) servers within the domain environment, so Group Policy can't be an issue.
Shortly after rebooting, this does not occur, but after a few minutes of runtime, the issue keeps reoccuring.
It is not userspecific.
It is not a RDSH server.
Windows is up to date.
Dism shows repairable components, but fails after 100% with error message "Error: 1734 - The array bounds are invalid."