Thank you, Get-LocalUser however lists all local accounts, but in the mean time I’ve figured out following works for current user only:
[System.Security.Principal.WindowsIdentity]::GetCurrent().AuthenticationType -eq "CloudAP"
Thank you, Get-LocalUser however lists all local accounts, but in the mean time I’ve figured out following works for current user only:
[System.Security.Principal.WindowsIdentity]::GetCurrent().AuthenticationType -eq "CloudAP"