Module 2 day 2: Windows adding and removing users, ben life as a cio Flashcards
how to add a user in Windows
Go to computer management tool, local users and groups, users, right click, select new user.
in the new user screen, what does it need us to do?
set a username, full name, and password for the new user.
if you are setting up an account for a user, what do you do with their password?
set a default password, and then make the user change the password when they log in. Make sure the box for: user must change password at next log on: is checked
how do you remove a user?
go into computer management, local users and groups, users, right click on the user you want to remove, and select delete. click yes through the warning message
if you delete a user and make a new user with the same name, will the user still be able to access their old resources?
no
how do you create a new account, Andrea, in the Windows PowerShell CLI?
net user Andrea * /add
what command do we use in PowerShell to add a new user?
net
what PowerShell real command requires some scripting to use to make a new user account?
new-LocalUser
how do you modify net to add a new local user?
/add parameter
what does the /add parameter do to the net command?
instructs net to create the account
what does the asterisk with the net command format do?
it takes the place of a password so that you are prompted to enter a password.
What does the Get-LocalUser command do?
shows you a list of local users on the computer
what must you remember to do each time you make a new user account?
flag it as needing a password change.
how do you use the log on password change parameter? for Andrea’s account
net user andrea /logonpasswordchg:yes
how do you combine commands so you make a new account that requires a password change at the first login? Make an account like this for cesar
net user cesar pa5sw0rd /add /logonpasswordchg:yes
if you are setting up an account that requires the user to change their password, can you do the asterisk thing?
no.
how to remove user accounts in the PowerShell CLI? use net. remove Andrea’s account.
net user andrea /del
how do you remove a user’s account with Remove-LocalUser? remove Cesar.
Remove-LocalUser cesar
what commands can you use to remove users?
Remove-LocalUser and net
how do you add users in linux?
sudo useradd
add the user juan in your linux machine
sudo useradd juan
what does sudo useradd do?
sets up basic configurations for the new user and sets up a home directory