How to create Local User Account using PowerShell in Windows 11/10

If you are ineffectual to open Windows Settings panel and you want to create a new user account along your Windows 11 or Windows 10 computer, past this clause wish help you. You can create a Local User Account victimisation PowerShell.

There are mainly two types of user accounts in Windows 11/10-

  1. Local User Account
  2. Microsoft Answer for machine-accessible User Account

It is not possible to create a Microsoft account connected drug user invoice with the assistanc of Windows PowerShell but is very easy to create a local user account victimization PowerShell.

In front getting started, you should know that you tush create a user score with or without a password, and the commands are different as they depend on your choice.

Make up unused Local User Answer for without password using PowerShell

To create a rising local drug user account without any password using Windows PowerShell, open Windows PowerShell with administrator privilege. For that, jam Win+X and select Windows PowerShell (Admin) from the list. After that, execute the following command-

New-LocalUser -Name "user-name" -Description "Small description" -NoPassword

DO not forget to replace the user-advert with an actual username that you want. Also, replace Small verbal description text with the matter that you want to record as a verbal description.

How to create new local user account using Windows PowerShell

After executing the command, as mentioned higher up, you will be competent to set up your describe and use IT consequently.

Create a new Local User Account with a password exploitation PowerShell

Unconcealed the Windows PowerShell with administrator perquisite. For that, you can follow the manoeuvre as mentioned earliest, surgery you can hunting for the "PowerShell" in the Taskbar search box and blue-ribbon the Run As Administrator option on your right side.

After opening PowerShell, you need to create a password for your user account. To do so, enter this command-

$Parole = Read-Innkeeper -AsSecureString

Now you need to A password that you want. Make a point you have set a strong parole.

After typing the password and hitting the Recruit button, you need to enter this command-

Revolutionary-LocalUser "TWCTEST2" -Countersign $Password -FullName "TWC Mental test Account" -Verbal description "Small description"

Replace TWCTEST2 with your desirable username, TWC Test Account with the full name of your user account, and Teensy-weensy description with brief info about your account.

After entering this command, you give notice find a screen like this-

That agency your account is successfully created and ready to use. Yet, if you want to assign your account to a aggroup, you can expend the following overtop-

Add-LocalGroupMember -Group "Administrators" -Member "TWCTEST2"

Here are deuce things that you should have sex. First, if you'atomic number 75 going to add the new account to your Executive group, you can keep it as is. Second, you have to replace TWCTEST2 with the username of your new exploiter score.

How to cancel User Account using PowerShell

To delete user account using Windows PowerShell, receptive the Windows PowerShell with administrator and enter this control-

Remove-LocalUser -Name "user-name"

Do not forget to replace the substance abuser-name with the germinal user name that you want to delete from your computer.

That's it! I hope information technology will help oneself you.

How to create Local User Account using PowerShell in Windows 11/10

Source: https://www.thewindowsclub.com/create-new-local-user-account-using-powershell

Posting Komentar

Lebih baru Lebih lama