Is there a way to get all Microsoft accounts and the admin user in them?
Get all local admin user by
win32_UserAccount
, if it's Microsoft account, we cant get related info, such as email info.WindowsIdentity.Getcurrent()
can get current user, and if it is Microsoft account, it can get email info.