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.
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.
New-ADUser?The -Name parameter sets the full name of the new user. It is required to identify the user in Active Directory.
New-ADUser?You can use the -Enabled $true parameter with New-ADUser to activate the account right away.
Set-ADUser?Use Set-ADUser -Identity <username> -OfficePhone <new phone number> to update the phone number.
New-ADUser is used to create new users. Set-ADUser modifies existing users.
Set-ADUser updates properties like email address for existing users.
Set-ADUser?-Identity identifies the user to modify in Set-ADUser.
-Enabled $true activates the account immediately.
Set-ADUser updates existing user details like department.