Objective Questions

Which of the following tools allow for the creation of Active Directory security principals (user, computer, and group accounts) based on user or file input? (Choose all that apply.)

A. Active Directory Users And Computers

B. Active Directory Domains And Trusts

C. Ntdsutil

D. Ldifde

E. Csvde

F. Dsadd

G. Dsquery

H. Dsmod

You are the administrator of the Windows Server 2003 domain contoso.com. Your company employs many temporary workers. Some of these workers are employed only once; others are employed periodically on a recurring basis.

Your goal is to automate a process that will determine which accounts have not been used within the last month and then disable them. If the accounts are needed again, you will reenable them at that time.

Which Directory Service command-line tool is the appropriate one to achieve your goal?

A. dsquery user domainroot -inactive 4 -disabled yes

B. dsquery user domainroot -inactive 4|dsmod user -disabled yes

C. dsquery user domainroot -inactive 4|dsrm -q

D. dsquery user domainroot -inactive 4|dsmove - newparent OU=disabled,DC= contoso, DC=com -q

You have been given an administrative task related to user accounts in the contoso.com Active Directory. You need to move all accounts in the East group located in the Sales OU into the newly created East Sales OU.

Which procedure will accomplish this task?

A. Use Active Directory Users And Computers to move the East group to the East Sales OU.

B. Use Dsquery to get the members of the group, and then pipe (stdin) the output to the Dsmod command with the East Sales OU as the target.

C. Use Dsquery to get the members of the group, and then pipe (stdin) the output to the Dsmove command with the East Sales OU as the target.

D. Use Dsquery to get the members of the group, and then pipe (stdin) the output to the Dsadd command with the East Sales OU as the target.

4. You are configuring the properties of user accounts in the Sales OU of the contoso.com domain. You wish their home directories to be stored on the network server computer named Server01. The home directories are to be stored in a shared folder, named Home, on the server's D drive. The share name is Homedir.

In the Home Folder property for each user, how will you set the home directories?

C. \\Server01\%Homedir%\%Username%

D. \\Server01\Homedir\%Username%

5. What will running the following VBScript accomplish?

Set objOU = GetObject("LDAP://OU=Management,dc=Fabn'kam,dc=com") Set objUser = objOU.Create("User", "cn=Orin Thomas") objUser.Put "sAMAccountName", "Orin Thomas" objUser.SetInfo

Set objGroup = GetObject _ ("LDAP://cn=Engineers,OU=Employees, dc=Fabrikam,dc=com") objGroup.Add "LDAP://cn=Orin Thomas,ou=Management,dc=Fabn'kam,dc=com"

A. Create a user account named Orin Thomas in the Employees OU and then add that user account to the Engineers group located in the Management OU.

B. Create a user account named Orin Thomas in the Management OU and then add that user account to the Engineers group located in the Employees OU.

C. The script will create a group named Engineers and put the user account named Orin Thomas into that group.

D. The script will create the Management and Employees OUs. It will then create the user account Orin Thomas and place it into the existing Engineers user group.

6. What will running the following VBScript accomplish?

Set objUser = GetObject _ ("LDAP://cn=Oksana,OU=Engineers,dc=Litware,dc=com") objMemberOf = objUser.GetEx("MemberOf")

For Each Group in objMemberOf Wscript.Echo Group

Next

A. This script will put the Oksana user account into the Engineers OU.

B. This script will provide a list of all groups of which the user account Oksana is a direct and indirect member.

C. This script will provide a nonnested list of all groups of which the user account Oksana is a member.

D. This script will provide a nonnested list of all groups of which user accounts in the Engineers OU are a member.

7. Which of the following commands will force users in the Engineers OU who have not changed their password in the last three weeks to change their password at their next logon?

A. dsquery user ou=Engineers,dc=contoso,dc=com -stalepwd 21 | dsmod user -mustchpwd yes

B. dsquery user ou=Engineers,dc=contoso,dc=com -stalepwd 21 | dsmod user -disabled yes

C. dsget user ou=Engineers,dc=contoso,dc=com -stalepwd 21 | dsmod user -mustchpwd yes

D. dsquery user ou=Engineers,dc=contoso,dc=com -stalepwd 21 | dsmove user -mustchpwd yes

Was this article helpful?

0 0

Post a comment