Book Image

Active Directory with PowerShell

By : Pamarthi Venkata Sitaram, YELLAPRAGADA U PADMAVATHI
5 (1)
Book Image

Active Directory with PowerShell

5 (1)
By: Pamarthi Venkata Sitaram, YELLAPRAGADA U PADMAVATHI

Overview of this book

Table of Contents (16 chapters)
Active Directory with PowerShell
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Managing domains


Most small organizations comprise only one domain in their environment where all users, computers, and other resources are created and managed. These are called single-forest, single-domain environments. However, in large scale organizations, there might be a complex environment containing several forests, each forest containing several domains with different types of trusts across domains and forests. In this section, you will learn to query these details using PowerShell.

Active Directory module has several cmdlets that can help in querying the forest and domain details. To get the list of cmdlets that work with a domain or forest, run the following commands after importing the Active Directory module:

Get-Command -Module ActiveDirectory -Name *Domain*
Get-Command -Module ActiveDirectory -Name *Forest*

Each of the previous commands will return a bunch of cmdlets, that you can go through and understand in-depth. In this section, we will be using some of these cmdlets to...