How to load & use Active Directory PowerShell modules

IT Guy
IT Guy used Ask the Experts™
Please provide me with online references about how to load & use Server 2016 Active Directory PowerShell modules for AD administration, synchronization, troubleshooting, etc.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Managing Consultant
import-module ActiveDirectory
but only after you have loaded the module locally. on a server:

add-windowsfeature rsat-adds
If you are on a desktop operating system, the command is different.
IT GuyNetwork Engineer


What are the commands to load AD PowerShell administration within Windows 10?
Most Valuable Expert 2018
Distinguished Expert 2018
On Windows 10 earlier than 1809, you need to install the RSAT tools first (Pro Enterprise, Education required). Since Windows 10 1809, it's finally an included Windows feature that can just be enabled, so you don't have to re-install it again with each new version.
The install will by default enable all RSAT tools that come with it. From then on, it's Import-module ActiveDirectory as usual (though since PS 3.0, PS will auto-load any module that's found in $env:PSModulePath if a cmdlet from one of these modules is referenced.
Remote Server Administration Tools for Windows 10
Michael B. SmithManaging Consultant
On v1809, click on the start button, type "optional features" and click "Manage Optional Features". Then click "Add a Feature" and select "RSAT: Active Directory Domain Services..." and click "Install".

I expected to be able to use PowerShell for this process, but it appears that the relevant cmdlets (Get-WindowsOptionalFeature / Enable-WindowsOptionalFeature) don't work with the new RSAT modules. I'm investigating that.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial