Relative Content

Tag Archive for powershell

Get with PowerShell if the local acount was changed to a Microsoft acount

I have a Windows 10 computer where I created a local user account used by multiple people. Occasionally, users sign in with their Microsoft accounts, and these accounts remain signed in. I can see the Microsoft account on top in the Settings app, but it is still listed as a local account in the Control Panel. How can I accurately detect if the current user is signed in with a Microsoft account using PowerShell?

Get with PowerShell if the local acount was changed to a Microsoft acount

I have a Windows 10 computer where I created a local user account used by multiple people. Occasionally, users sign in with their Microsoft accounts, and these accounts remain signed in. I can see the Microsoft account on top in the Settings app, but it is still listed as a local account in the Control Panel. How can I accurately detect if the current user is signed in with a Microsoft account using PowerShell?