In: Computer Science
Write a Powershell script to create a Windows user account that is a non-admin user. This assignment assumes that you already have a Windows VM, with the administrator account created..
To complete the assignment, write the PowerShell script, run it on your VM, and submit the script here.
To create a non admin user account using powershell
step1:
run powershell as administrator
Step2:
use command
New-LocalUser -Name "usernaem" -Description "describe the user" -NoPassword
It will create a new user account
Step3:
There should be a password for the user. So now we will create a password
use the following command and press enter and then enter the password
$Password = Read-Host -AsSecureString
Now our new user account is created.
To check how many users are in our system use the command
Get-LocalUser
Here we can see that our new account jack is created.