Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Active Directory with PowerShell

You're reading from   Active Directory with PowerShell Learn to configure and manage Active Directory using PowerShell in an efficient and smart way

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher Packt
ISBN-13 9781782175995
Length 230 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (2):
Arrow left icon
YELLAPRAGADA U PADMAVATHI YELLAPRAGADA U PADMAVATHI
Author Profile Icon YELLAPRAGADA U PADMAVATHI
YELLAPRAGADA U PADMAVATHI
Pamarthi Venkata Sitaram Pamarthi Venkata Sitaram
Author Profile Icon Pamarthi Venkata Sitaram
Pamarthi Venkata Sitaram
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Let's Get Started FREE CHAPTER 2. Managing User and Computer Objects 3. Working with Active Directory Groups and Memberships 4. Configuring Group Policies 5. Managing Domains, Organizational Units, Sites, and Subnets 6. Advanced AD Operations Using PowerShell 7. Managing DFS-N and DFS-R Using PowerShell 8. Managing Active Directory DNS Using PowerShell 9. Miscellaneous Scripts and Resources for Further Learning Index

Chapter 1. Let's Get Started

Welcome to managing Active Directory using PowerShell. There are lot of good books from Packt Publishing that you might want to refer to improve your PowerShell skills. Assuming that you know the basics of PowerShell, this book further helps you to manage Active Directory using PowerShell. Do not worry if you are not familiar with PowerShell. You can still make use of the content in this book because most of the one-liners quoted in this book are self-explanatory. This chapter will take you through some of the essential tools that are required for managing Active Directory using PowerShell:

  • The Microsoft Active Directory PowerShell module
  • The Quest Active Directory PowerShell module
  • Native PowerShell cmdlets

Details of how to get these tools, install, and configure them are also provided in this chapter. The content in this book completely relies on these tools to query Active Directory, so it is important to install and configure them before you proceed with further chapters in this book.

Though you can install and use these tools on legacy operating systems such as Windows XP, Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, and so on, we will focus mostly on using them on the latest versions of operating systems, such as Windows 8.1 and Windows Server 2012 R2. Most of the operations performed on Windows 8.1 and Windows Server 2012 work on its predecessors. Any noticeable differences will be highlighted as far as possible.

Another reason for using the latest versions of operating systems for demonstration is the features list that they provide. When the Microsoft Active Directory PowerShell module was initially introduced with Windows Server 2008 R2, it came with 76 cmdlets. In Windows Server 2012, the number of cmdlets increased from 76 to 135. Similarly, the Windows Server 2012 R2 release has 147 Active Directory cmdlets. Looking at this pattern, it is clear that Microsoft is focusing on bringing more and more functionality into the Active Directory PowerShell module with its new releases. This means the types of actions we can perform with the Microsoft Active Directory module are increasing. Because of these reasons, Windows 8.1 and Windows Server 2012 R2 are being used for demonstration so that you can learn more about managing Active Directory using PowerShell.

To see how many cmdlets a module has, use the following commands once you have the Active Directory PowerShell module installed using the approach that is discussed later in this chapter:

Import-Module ActiveDirectory

First, import the Active Directory module in a PowerShell window. You will see a progress bar as shown in the following screenshot:

Let's Get Started

Once the module is imported, then you can run the following command to verify how many cmdlets Active Directory module has:

(Get-Command -Module ActiveDirectory).Count

As you can see in the following screenshot, there are 147 cmdlets available in Active Directory module on a Windows Server 2012 R2 server:

Let's Get Started
You have been reading a chapter from
Active Directory with PowerShell
Published in: Jan 2015
Publisher: Packt
ISBN-13: 9781782175995
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime