Which of the following lines of Windows PowerShell code are necessary - ProProfs
     

Which of the following lines of Windows PowerShell code are necessary to create a user object in the People OU?



A. $objUser=$objOU.Create("user","CN=Jeff Ford")
B. $objUser.SetInfo()
C. $objUser=CreateObject("LDAP://CN=Jeff Ford,OU=People,DC=contoso,DC=com")
D. $objOU=[ADS"LDAP://OU=People,DC=contoso,DC=com"

This question is part of

MS 70-640

+ AnswerRequest Answer
...

1 Answer

John Smith

John Smith

Answered on Sep 08, 2016

1. $objuser=$objou.create(\"user\",\"cn=jeff ford\")-2. $objuser.setinfo()-3. $objou=[adsi]\"ldap://ou=people,dc=contoso,dc=com\"-a. correct: an object is created by invoking the create method of a container such as an ou.b. correct: the setinfo method commits a new user and its properties to active directory. if the setinfo method is not used, the new object and changes to its properties occur in your local representation of the object only.c. incorrect: this code is invalid. it is similar to code that would be used in vbscript, though not in the creation of user objects.d. correct: you must connect to the container in which the user will be created.

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.