Active Directory with PowerShell

Learn to configure and manage Active Directory using PowerShell in an efficient and smart way

Active Directory with PowerShell

This ebook is included in a Mapt subscription
Uma Yellapragada

1 customer reviews
Learn to configure and manage Active Directory using PowerShell in an efficient and smart way
$0.00
$26.99
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782175995
Paperback230 pages

Book Description

Windows PowerShell is a task-based command-line shell and is gaining popularity day-by-day. Using PowerShell to manage the Active Directory environment not only saves time for the system administrator, but end users also benefit as they see their requests being fulfilled in very little time.

The book starts with an overview of the components, software, and modules required to manage Active Directory with PowerShell. It then moves on to help you create and manage users, computer accounts, and group policies with simple examples to automate daily tasks. Furthermore, it covers topics such as GPOs, DNS Server/Client, DFS-N, and DFS-R automation. It also demonstrates how to automate some advanced operations so that they can be scripted to perform in a faster and more efficient way. By the end of this book, you will be competent enough to use PowerShell to manage your Active Directory environment and will gain all the required knowledge to automate your daily operations.

Table of Contents

Chapter 1: Let's Get Started
Ways to automate Active Directory operations
Summary
Chapter 2: Managing User and Computer Objects
Managing user accounts
Modifying user properties
Deleting user accounts
Managing computer accounts
Deleting computer accounts
Summary
Chapter 3: Working with Active Directory Groups and Memberships
Creating different types of security groups
Searching and modifying group object information
Adding members to a group
Listing members of a security group in Active Directory
Removing members from an AD group
Deleting a security group
Summary
Chapter 4: Configuring Group Policies
Installing the Group Policy module
Querying Group Policies
Creating and linking Group Policies
Working with links, enforcements, and order of GPOs
Working with Group Policy permissions
Updating Group Policy and generating Resultant Set of Policy
Removing Group Policy links and objects
Summary
Chapter 5: Managing Domains, Organizational Units, Sites, and Subnets
Managing domains
Managing Organizational Units
Managing sites and subnets
Summary
Chapter 6: Advanced AD Operations Using PowerShell
Installing a new domain
Adding additional domain controllers
Obtaining an Active Directory replication status
Managing Fine-Grained Password Policies
Transferring FSMO roles
Restoring deleted objects
Demoting domain controllers and removing domains
Summary
Chapter 7: Managing DFS-N and DFS-R Using PowerShell
Installing DFS roles
Managing DFS-N
Managing DFS-R
Summary
Chapter 8: Managing Active Directory DNS Using PowerShell
Installing and configuring a DNS server
Working with root hints and forwarders
Managing DNS zones
Creating, modifying, and deleting DNS records
Managing DNS Clients
Summary
Chapter 9: Miscellaneous Scripts and Resources for Further Learning
Checking whether a user, group, computer, or an OU exists
Getting membership of a user, computer, and group
Resetting the password for multiple user accounts
Bulk creation of user accounts
Getting the password expiry date of user accounts
Finding all the disabled user accounts
Getting all domain controllers and their site names in the forest
Moving objects from one OU to another
Finding inactive computers in Active Directory
Creating groups in bulk
Exporting an AD group member's details to CSV
Finding empty groups in Active Directory
Verifying whether a user is a member of the given group or not
Comparing AD groups' membership
Resources for further learning

What You Will Learn

  • Manage user and computer accounts using PowerShell
  • Automate group membership additions, removals, and bulk operations using PowerShell
  • Perform various query operations against Active Directory to fetch user, computer, and group details in an efficient and faster way
  • Understand how sites, subnets, and domains are managed
  • Perform advanced operations such as Domain Controller promotion/demotion
  • Discover how to automate replication checks, fine grained password policy creation, and FSMO roles transfer/seize using PowerShell
  • Get to know more about DNS server management, record creation/modification/ deletion, and DNS client management with PowerShell
  • Find out ways to automate DFS-N and DFS-R installation and configuration using PowerShell

Authors

Table of Contents

Chapter 1: Let's Get Started
Ways to automate Active Directory operations
Summary
Chapter 2: Managing User and Computer Objects
Managing user accounts
Modifying user properties
Deleting user accounts
Managing computer accounts
Deleting computer accounts
Summary
Chapter 3: Working with Active Directory Groups and Memberships
Creating different types of security groups
Searching and modifying group object information
Adding members to a group
Listing members of a security group in Active Directory
Removing members from an AD group
Deleting a security group
Summary
Chapter 4: Configuring Group Policies
Installing the Group Policy module
Querying Group Policies
Creating and linking Group Policies
Working with links, enforcements, and order of GPOs
Working with Group Policy permissions
Updating Group Policy and generating Resultant Set of Policy
Removing Group Policy links and objects
Summary
Chapter 5: Managing Domains, Organizational Units, Sites, and Subnets
Managing domains
Managing Organizational Units
Managing sites and subnets
Summary
Chapter 6: Advanced AD Operations Using PowerShell
Installing a new domain
Adding additional domain controllers
Obtaining an Active Directory replication status
Managing Fine-Grained Password Policies
Transferring FSMO roles
Restoring deleted objects
Demoting domain controllers and removing domains
Summary
Chapter 7: Managing DFS-N and DFS-R Using PowerShell
Installing DFS roles
Managing DFS-N
Managing DFS-R
Summary
Chapter 8: Managing Active Directory DNS Using PowerShell
Installing and configuring a DNS server
Working with root hints and forwarders
Managing DNS zones
Creating, modifying, and deleting DNS records
Managing DNS Clients
Summary
Chapter 9: Miscellaneous Scripts and Resources for Further Learning
Checking whether a user, group, computer, or an OU exists
Getting membership of a user, computer, and group
Resetting the password for multiple user accounts
Bulk creation of user accounts
Getting the password expiry date of user accounts
Finding all the disabled user accounts
Getting all domain controllers and their site names in the forest
Moving objects from one OU to another
Finding inactive computers in Active Directory
Creating groups in bulk
Exporting an AD group member's details to CSV
Finding empty groups in Active Directory
Verifying whether a user is a member of the given group or not
Comparing AD groups' membership
Resources for further learning

Book Details

ISBN 139781782175995
Paperback230 pages
Read More
From 1 reviews

Read More Reviews