Forum Discussion
Henn Sarv
Aug 30, 2021MCT
new-localuser -name 'MicrosoftAccount\...'
Dear freinds, how to create new MS Account User in WIndows 10/11 using powershell format in title gives me error - too long name or ask password Henn
farismalaeb
Aug 31, 2021Iron Contributor
Try this
New-LocalUser -Name "Test" -FullName "My Test" -Password (ConvertTo-SecureString -String "P@ssw0rd" -AsPlainText -Force)
New-LocalUser -Name "Test" -FullName "My Test" -Password (ConvertTo-SecureString -String "P@ssw0rd" -AsPlainText -Force)
- Henn SarvAug 31, 2021MCTThis one create LOCAL user without MS Account
My question was - how to create MS Account Local user- Jan 27, 2022A Microsoft account is something you will have to register online and you can use it to login to a Windows 10/11 machine. Using MicrosoftAccount\ in a new-localuser doesn't work, the cmdlet new-LOCALuser already tells you that 😉 A MicrosoftAccount is a online/personal account, a AZUREAD\ account is an account which is registered in Azure AD.
- Henn SarvJan 27, 2022MCT* I now exact what is MS Account - I'm using several of them
* I know exact what is AZUREAD Account - I'm using several of them
My question isn't about CREATION of MS Account
I'd like to create local accout bounded to [existing] MS Account using Powershell
* I can do this 'manually' using settings/account
* there is no way to do this through ComputerManager/USers
Actually today in Win11 is preferred (and close only) way to create new local account bind this account with MS Account. Create unbinded local account is hidden behind 3 "advanced" click
Powershell can create ONLY unbinded account. My question was and stay - How create binded (to MS Account) local user using powershell
HOw to do this same manually - I know
And next logical question is - how to create BInded (to MS Account) Domain account. Manually this is possible (through account linking)