Image via Wikipedia
If you run dcdiag and get a failure on the systemlog, it means you have errors in the system event log. You can clear the system event log (make sure you save it) and then your dcdiag should show success for the systemlog.
I ran into that issue today, thanks to petri.co I found the answer and I thought I?d share.
Quick link from Twitter, don’t want to lose the link https://twitter.com/anoopmannur/status/1497256566206181376?s=21 https://www.anoopcnair.com/set-automatic-lock-screen-for-inactive-device-intune/