PowerShell - Active Directory
You want to create a new user 'mjohnson' with the display name 'Mary Johnson' and then immediately set her office location to 'HQ-5'. Which sequence of commands correctly achieves this?
-SamAccountName and -DisplayName to create the user. Office location is not set here.Set-ADUser -Identity 'mjohnson' -Office 'HQ-5' to set the office property after creation.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions