Is my Windows User a Microsoft Account or a Local command line query!
It is practical and easy to determine from the command line in PowerShell: whether there is a Microsoft Account or is a Local Account on Windows 11, 10, ... !
Using PowerShell to query under Windows 11, 10, ... or MS Server 2022, 2019, .... whether the Windows account is a Microsoft account or a local account is sometimes faster than using the user account management !
1.) Querying the account type via the MS Powershell
1. Windows + R shortcut
2. Enter PowerShell
3. Username with the command whoami query
PS: Optional with the command "net user" all user names list
4. Now the command to query:
Get-LocalUser -Name 'User' | Select PrincipalSource (confirm with Enter)
(... see Image-1 Point 1 to 3)
In the place of username, enter your username and the status will appear, whether it is a Microsoft account or a local user. If it is a local account, Local will appear, if not "MicrosoftAccount"
| (Image-1) Is my Windows account a Microsoft or a local command line account!
2.) More links to Windows users!
FAQ 90: Updated on: 7 August 2021 14:49
Under MS Windows 11, 10, Desktops and MS Server, information on a specific user account can be obtained quickly via the command line Important user
Changing workgroup or PC name using Command Prompt or PowerShell is om MS Windows 11, 10, and MS Server OS Is not impossible either, this is often used
You can find out the mac address physical address of a computer with the getmac command on MS Windows 11, 10, etc. This can also be used to get the
Its easy to find out the computer name using the command prompt or Powershell commands on Windows 11, 10, etc. You can determine your computer name
The Shutdown command under MS Windows 11, 10, . + MS Server is one of the most popular PC shutdown or restart command lines To use the command line,
Its easy to enable and disable Remote Desktop from the command line on MS Windows 11, 10, etc. and Server OS The remote desktop can be turned off,
It is easy to find out with PowerShell which app or program is preventing shutdown, standby or hibernation on Windows 11, 10, etc. With all Microsoft
»» My question is not there in the FAQ
Keywords: windows, 11, 10, console, account, microsoft, local, command, line, determine, powershell, query, Questions, Answers, Software