Your manager has asked you to create various user objects using Windows PowerShell.
Which of the following must you do to accomplish this?
A.
Use the Create-User createUsert
B.
Use the objUser = new OUUser statement
C.
Use the AddUser method of ADSL
D.
Invoke the Create method of OU
Explanation:
Sample script:
http://www.mysmallcorneroftheweb.co.uk/programming-software-developement/powershell-creating-configuring-a-active-directory-user
The user is created by first defining the OU and then invoking the ou.Create method.
I sure hope this isn’t correct. New-ADUser is the standard PowerShell cmdlet for creating user accounts in AD. Has been for a long time. https://technet.microsoft.com/en-us/library/ee617253.aspx
I think “D” must be correct, because all the others make no sense.
That is pretty messed up. The other answers make no sense at all, so one must then assume that you need to create an OU for the accounts first.