Windows 11 22H2 Agent "API Error:Error running automation call <tt>diag-host</tt>"

hostname needs to be the name of the Windows machine you want to monitor.