0
0
PowerShellscripting~5 mins

New-ADUser and Set-ADUser in PowerShell - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the PowerShell cmdlet <code>New-ADUser</code> do?

New-ADUser creates a new user account in Active Directory. It is like adding a new contact to your phone but for your company's user directory.

Click to reveal answer
beginner
What is the purpose of Set-ADUser in PowerShell?

Set-ADUser changes or updates properties of an existing Active Directory user. Think of it as editing a contact's details after you saved it.

Click to reveal answer
beginner
Which parameter is required to specify the full name when creating a new user with New-ADUser?

The -Name parameter sets the full name of the new user. It is required to identify the user in Active Directory.

Click to reveal answer
intermediate
How can you enable a user account immediately after creating it with New-ADUser?

You can use the -Enabled $true parameter with New-ADUser to activate the account right away.

Click to reveal answer
beginner
What is a simple way to change a user's phone number using Set-ADUser?

Use Set-ADUser -Identity <username> -OfficePhone <new phone number> to update the phone number.

Click to reveal answer
Which cmdlet creates a new user in Active Directory?
AGet-ADUser
BSet-ADUser
CNew-ADUser
DRemove-ADUser
How do you update an existing user's email address?
ASet-ADUser -EmailAddress
BNew-ADUser -EmailAddress
CGet-ADUser -EmailAddress
DRemove-ADUser -EmailAddress
What parameter specifies the username when using Set-ADUser?
A-Name
B-UserName
C-AccountName
D-Identity
Which parameter enables a user account during creation?
A-Enabled $true
B-Active $true
C-AccountEnabled $true
D-UserEnabled $true
If you want to change a user's department, which cmdlet would you use?
ANew-ADUser
BSet-ADUser
CGet-ADUser
DAdd-ADUser
Explain how to create a new Active Directory user with PowerShell and enable the account immediately.
Think about the cmdlet and parameters needed to add and activate a user.
You got /4 concepts.
    Describe how to update an existing user's phone number using PowerShell.
    Focus on the cmdlet used to change user details and how to specify the user.
    You got /4 concepts.