Don't have Telegram yet? Try it now!
https://deploywindows.com/2020/09/16/dont-wrap-dsregcmd-with-powershell-use-this-to-get-azure-ad-information-from-the-local-computer/
Don't wrap DsRegCmd with PowerShell - Use this to get Azure AD information from the local computer