Load Active Directory Powershell Module Windows 10

Introduction to PowerShell Modules. PowerShell modules are like mini-apps, they have instructions to deliver useful gismos. Configuring the path for the Import-Module cmdlet requires moderately complex preparation, and the purpose of this page is just get readers started.

The Active Directory (AD) module may be installed as part of the RSAT feature or by default, with the AD DS or AD LDS server roles.

Once installed, the Active Directory module may be loaded with Import-Module ActiveDirectory or click Start, Administrative Tools, Active Directory Module for Windows PowerShell. It will automatically load when any of the cmdlets are used, so this step is optional.

If your machine is joined to a domain then a default PSDrive named AD: is created. Use all the regular file system commands to navigate this:
PS C:> cd AD:
PS AD:> dir

To use the AD module to manage an Active Directory domain, the Windows Server 2008 R2 Active Directory Web Services (ADWS) service must be installed on at least one domain controller in the domain.

To list all the Active Directory cmdlets installed, type Get-Command *-AD*

Related PowerShell Cmdlets:

Group Policy Cmdlets - GPO / Permissions / Inheritance
TechNet - Active Directory Module for Windows PowerShell
CSVDE / LDIFDE - Create, modify or delete directory objects.

Copyright © 1999-2020 SS64.com
Some rights reserved

Today we’ll show you how to install and use the Windows PowerShell Active Directory Module. You can perform AD management tasks and use its cmdlets to get different information on domain users, computers, groups, and other objects. This PowerShell module in the server OS is installed as a separate feature. On the desktop OS versions (Windows 10, 8.1, 7) the module is a part of the Remote Server Administration Tools (RSAT). RSAT includes all necessary management tools, command-line utilities, and Windows PowerShell modules. You must download the RSAT package for your version of the OS from the Microsoft website (how to install RSAT on Windows 10?).

Install PowerShell Active Directory Module on Windows Server

The Active Directory module for Windows PowerShell first appeared on Windows Server 2008 R2. It is installed on the Windows Server after you installed ADDS role (Active Directory Domain Services). It also promotes a server to the domain controller. To use the cmdlets from the Active Directory module, at least one controller with Windows Server 2008 R2 or higher must exist in your domain. If your network has only DCs with Windows Server 2003 or 2008, you must download and install the Active Directory Management Gateway Service. The cmdlets from the Active Directory module interact with the web service that is a part of the domain controller with the ADDS role or ADMGS.

  • You can install the Active Directory module for PowerShell on the domain controller, on any Windows server or workstation.
  • In Windows Server 2019/2016/2012 R2, you can install the Active Directory module for Windows PowerShell. You can do it by using the Add Roles and Features Wizard from the Server Manager. It is enough to start the wizard and at the step when selecting features, you need to select the item Remote Server Administration Tools > Role Administration Tools > AD DS and AD LDS Tools > Active Directory module for Windows PowerShell.
  • You can also install this module using PowerShell. Open the PowerShell console as an administrator and run the following commands:

Installing the AD PowerShell Module on Windows 10

In Windows 10, Windows 8.1, and Windows 7, to install the RSAT-AD-PowerShell module, at first you must install the appropriate version of RSAT. You can install RSAT only in the Professional, Education, and Enterprise Windows editions. The installation of RSAT on Windows Home or Single Language is not available.

  • You can install the RSAT module on Windows 7, 8.1, and Windows 10 up to 1803 built. For this you need to download and install a special MSU package;
  • Then you need to enable the module (Control Panel > Programs > Turn Windows Features On or Off > Remote Server Administration Tools > Role Administration Tools > AD DS and AD LDS Tools > Active Directory module for Windows PowerShell).Or using PowerShell:
  • On Windows 10 1809 and newer the RSAT became a part of Features on Demand (FoD). You can install AD RSAT Tools from the Settings menu (Settings > Apps > Manage Optional Features > Add features > RSAT: Active Directory Domain Services and Lightweight Directory Tools > Install). Or from the PowerShell console:

Importing PowerShell Active Directory Module on Windows

  1. In Windows 7 and Windows Server 2008 R2 with PowerShell 2.0 installed, to start using the Active Directory module, you need to import it into the PowerShell session with the command:
  2. Also, you can export the module from a remote computer/server and import it into your PowerShell session:
  3. On Windows Server 2016/2016/2012 R2 and Windows 8.1/Windows 10, the module imports into the session automatically.
  4. To confirm the AD PoSh module is loaded, run the command:

When the computer joins to the AD domain, by default a separate disk is created with the name AD:. You can go to this disk using the CD command and use the familiar commands of working with the file system to navigate this disk. The paths are in X500 format.

PS C:> cd AD:


PS AD:> dir

PS AD:> cd “DC=contoso,DC=com”

PS AD:> dir

You can display the list of available cmdlets for working with Active Directory as follows:

Different versions of Windows (RSAT) have a different number of cmdlets available:

  • Windows Server 2008 R2 — 76 cmdlets;
  • Windows Server 2012 — 135 cmdlets;
  • Windows Server 2012 R2/2016 — 147 cmdlets.
READ ALSOConfiguring Proxy Settings via GPO on Windows 10/Windows Server 2016

Using RSAT-AD-PowerShell Module

Let’s look at a few examples of using the cmdlets of the RSAT-AD-PowerShell module.

  • To get the list of AD domain controllers, run the command:
  • You can create several AD users at once by importing the user list from the CSV file. Use it together with the New-ADUser cmdlet.
  • Use the New-ADGroup cmdlet to create AD group. For example, to create a new group named ItalyUsers in the specific OU, run the command:
  • To get the AD group info, use the Get-ADGroup cmdlet:
  • Use the New-ADOrganizationalUnit cmdlet to create
  • Use the Unlock-ADAccount cmdlet to unlock
  • Or you can use the

If the computer is not a part of the Active Directory domain, the following warning appears when you try importing the AD-PoSh module:

Load Active Directory Powershell Module Windows 10 Pro

WARNING: Error initializing default drive: ‘Unable to find a default server with Active Directory Web Services running.’.

In this case, you need to specify the AD domain controller and user credentials to connect it.

READ ALSOFix: Active Directory Domain Controller Could Not Be Contacted

First of all, you need to get the user’s credentials to access the domain. Any authenticated domain user can view almost all AD objects properties.

For example, to get the user’s info from the DC named TOR-DC01 under saved credentials, use the command:

As you can see, you have received the AD account info.

So now you can use the PowerShell cmdlets to manage and query Active Directory.


Install Active Directory Powershell Module Windows 10 1803

Recent PostsCyril KardashevskyI enjoy technology and developing websites. Since 2012 I'm running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.

Install Active Directory Powershell Module Windows 10

Latest posts by Cyril Kardashevsky (see all)Install active directory powershell module windows 10 1803

Load Active Directory Powershell Module Windows 10 64-bit

Load Active Directory Powershell Module Windows 10

Load Active Directory Powershell Module Windows 10 Download

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it.