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 Sarv
Aug 31, 2021MCT
This one create LOCAL user without MS Account
My question was - how to create MS Account Local user
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)- Jan 27, 2022
Ok, than I didn't interpret your question correctly. Never did that, I usually login using AzureAD account or a local account in which I add a work/school account. Linking these two together is something I didn't do before, for my understanding it's a local account (which you create during installation) with a online Microsoft account on top of that in the same local user profile.
And you want to do this using scripting when deploying a new workstation?