PrepAway - Latest Free Exam Questions & Answers

You need to automate the creation of Active Directory subnet objects

Your company has a main office and 50 branch offices. Each office contains multiple
subnets.
You need to automate the creation of Active Directory subnet objects.
What should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
the Dsadd tool

B.
the Netsh tool

C.
the New-ADObject cmdlet

D.
the New-Object cmdlet

Explanation:

http://technet.microsoft.com/en-us/library/ee617260.aspx
New-ADObject Creates an Active Directory object.
Syntax:
New-ADObject [-Name] <string> [-Type] <string> [-AuthType {<Negotiate> | <Basic>}] [-
Credential
<PSCredential>] [-Description <string>] [-DisplayName <string>] [-Instance <ADObject>] [-
OtherAttributes <hashtable>] [-PassThru <switch>] [-Path <string>] [-
ProtectedFromAccidentalDeletion <System.Nullable [bool]>] [-Server <string>] [-Confirm] [-
WhatIf] [<CommonParameters>]
Detailed Description
The New-ADObject cmdlet creates a new Active Directory object such as a new
organizational unit or new user account. You can use this cmdlet to create any type of Active
Directory object. Many object properties are defined by setting cmdlet parameters.
Properties that are not set by cmdlet parameters can be set by using the OtherAttributes
parameter.
You must set the Name and Type parameters to create a new Active Directory object. The
Name specifies the name of the new object. The Type parameter specifies the LDAP display
name of the Active Directory Schema
Class that represents the type of object you want to create. Examples of Type values include
computer, group, organizational unit, and user.
The Path parameter specifies the container where the object will be created.. When you do
not specify the Path parameter, the cmdlet creates an object in the default naming context
container for Active Directory objects in the domain.


Leave a Reply