Search code examples
powershellwindows-10localuser-accounts

Creating a New Local User Account in W10 using Powershell but doesn't populate front end


I am attempting to make a new local user account working on my actual host machine through the administrator powershell terminal page. I ran the code below successfully and saw the account populate the computer management>User page but I was not able to select my new account through the lock screen nor through the start>account page neither. I tried restarting the host machine, but there was still no option to sign in as this new user through start menu account options, ctrl alt delete nor switch user.

@Community, Do you have any modifications you would make to these commands listed below to make the new user account populate to the front end to be selectable to log in through the user sign in page?

'''

PS>$Password = Read-Host -AsSecureString

PS>New-LocalUser -AccountNeverExpires -Description "Test" -FullName "John Smith" -Name john.smith - 
Password $Password -Confirm

'''

Any help will be appreciated - thanks.


Solution

  • John.Smith must be member of at least one local group. Put him in "Users" group, it will appear at the logon screen.