How to determine if account is a Microsoft account with relevance?

Hi, I’m trying to determine whether some “mixed management” PCs have Microsoft or local accounts - particularly if those accounts have been converted from one type to the other.

For example: logging in as BigfixUser/Password vs logging in as BigfixUser@Microsoft.com/Password.

I can find ways to determine this locally in the GUI, but I haven’t had too much luck with determining it programmatically in any way - command line, relevance, PowerShell, or tool with output.
Ideally, I’d like to detect all three scenarios:

  1. pure local account
  2. local account converted into Microsoft account
  3. pure Microsoft account

Related Links:
https://support.microsoft.com/en-us/help/17201/windows-10-sign-in-with-a-microsoft-account