Home > Store

Deploying and Managing Active Directory with Windows PowerShell: Tools for cloud-based and hybrid environments

Register your product to gain access to bonus material or receive a coupon.

Deploying and Managing Active Directory with Windows PowerShell: Tools for cloud-based and hybrid environments


  • Sorry, this book is no longer in print.
Not for Sale

eBook (Watermarked)

  • Your Price: $22.39
  • List Price: $27.99
  • Includes EPUB and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    Adobe Reader PDF The popular standard, used most often with the free Acrobat® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.


  • Copyright 2015
  • Dimensions: 7-3/8" x 9"
  • Pages: 256
  • Edition: 1st
  • Book
  • ISBN-10: 1-5093-0065-1
  • ISBN-13: 978-1-5093-0065-5

Streamline and modernize the way you manage Active Directory

Use Windows PowerShell to simplify and accelerate Active Directory domain controller management, whether you’re running Active Directory entirely in the cloud, on-premises, or in a hybrid environment. In this concise reference, Microsoft MVP Charlie Russel presents the commands, tested scripts, and best-practice advice you need to deploy and run Active Directory in a modern environment and to migrate smoothly to cloud or hybrid deployments wherever they offer more value.

Supercharge your productivity as an Active Directory administrator

  • Get proven scripts that leverage the power of Windows Server 2012 and Windows Management Framework 4.0 and 5.0
  • Deploy forests and Active Directory Domain Services (AD DS)
  • Manage DNS and DHCP
  • Create and manage users and groups
  • Deploy additional domain controllers, read-only domain controllers (RODCs), and domains
  • Implement and manage fine-grained password policies
  • Perform fast, reliable backups and restores
  • Quickly extend on-premises Active Directory deployments to the cloud
  • Efficiently manage roles and sites



  1. Click the following link: Download the companion content.
  2. Click Save.
  3. Locate the .zip file on your computer. Right-click the file, click Extract All, and then follow the instructions.

Sample Content

Sample Pages

Download the sample content

Table of Contents

Introduction     xi Chapter 1: Deploy your first forest and domain     1 Before you start     2 Prerequisites     2 Versions     2 Code     2 Deploy your first forest     2 Configure the server IP address     3 Set the server name     6 Install Active Directory Domain Services     6 Create the forest (dcpromo)      7 Summary     14 Chapter 2: Manage DNS and DHCP     15 Manage DNS zones     16 Manage primary zones     17 Manage secondary zones     22 Manage stub zones     24 Configure conditional forwards     25 Manage zone delegation     26 Manage DNS records     26 Create name (A and AAAA) resource records     28 Create CNAME resource records     33 Create MX resource records     34Create additional resource records     34 Configure zone scavenging and aging     35 Configure record options including Time To Live (TTL) and weight     36 Manage DHCP     37 Deploy DHCP     37 Configure IPv4     38 Configure IPv6     40 Summary     41 Chapter 3: Create and manage users and groups     43 Create users     43 Create a single user     44 Add users in a batch     48 Create and manage groups     51 Create a new group     52 Add users to a group     52 Manage groups     54 Create and manage OUs     56 Create an OU     57 Add computers and users to an OU     58 Summary     62 Chapter 4: Deploy additional domain controllers     63 Deploy domain controllers     64 Configure networking     64 Install the Active Directory role on the server     67 Join the server to the domain     68 Promote a server to domain controller     68 Clone a domain controller     72 Verify the environment     72 Prepare the source domain controller     73 Create the cloned domain controller     77Manage FSMO roles     79 Transfer FSMO roles     80 Seize FSMO roles     82 Summary     83 Chapter 5: Deploy read-only domain controllers (RODCs)      85 Prepare the forest and domain     86 Staged deployment of an RODC     87 Prepare the RODC account     87 Prepare the RODC target server     89 Deploy the RODC target server     91 Non-staged deployment of an RODC     94 Prepare the RODC target server     94 Deploy the non-staged RODC target server     97 Summary     100 Chapter 6: Deploy additional domains and forests     101 Create a child domain     102 Prepare the server     102 Install the Active Directory Domain Services role     105 Create the new domain     105 Create a tree domain     108 Prepare the server     108 Install the Active Directory Domain Services role     111 Create the new domain     112 Create a new forest     114 Configure networking     114 Test the promotion to domain controller     114 Deploy the new forest     116 Create a trust     117 Create a shortcut trust     118 Create a forest trust     120 Summary     120Chapter 7: Configure service authentication and account policies     121 Manage service authentication     122 Create service accounts     122 Configure managed service accounts (MSAs)      126 Configure group managed service accounts (gMSAs)      129 Configure virtual accounts     135 Configure account policies     135 Configure domain user password policy     136 Configure password settings objects (PSOs)      137 Summary     142 Chapter 8: Back up and restore AD DS     143 Back up Active Directory     144 Windows Server Backup     144 Create offline media     152 Configure Active Directory snapshots     153 Restore Active Directory     155 Perform a non-authoritative restore     155 Perform an authoritative restore     157 Restore an object by using the Active Directory Recycle Bin     162 Restore an object by using Active Directory snapshots     164 Summary     166 Chapter 9: Manage sites and replication     167 Configure sites     168 Create a new site     168 Create a replication subnet     169 Rename a site     173 Remove a site     174 Configure Universal Group Membership Caching (UGMC)      175 Create a site link     176Manage replication     178 Set the replication schedule     179 Change the replication server     181 Summary     182 Chapter 10: Deploy Active Directory in the cloud     183 Sidebar: Types of Active Directory in the cloud     185 Install the Windows PowerShell Azure model     185 Install the Windows PowerShell Azure module     186 Load the Windows PowerShell Azure module     187 Connect to an Azure account     195 Authenticate to your Azure account     195 Set the current subscription     199 Create a VPN     199 Create self-signed certificates     199 Create a point-to-site VPN     201 Create a virtual machine     210 Connect to the subscription     210 Set a location     211 Provision a service     212 Provision a storage account     212 Create a virtual machine     213 Configure the domain controller     218 Summary     219 Index     221


Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020