Home > PowerShell > Using the new Active Directory cmdlets- Part 3: Installing and loading the Active Directory Module.

Using the new Active Directory cmdlets- Part 3: Installing and loading the Active Directory Module.

 

In this blog post I will discuss the Active Directory module that is included with Windows 7 and Windows Server 2008 R2. In the previous blogs, I discussed Active Directory Web Services (ADWS) and Active Directory Management Gateway Service (ADMGS). Remember, if you don’t have at least one domain controller running one of these services you won’t be able to use the Active Directory cmdlets.

Lets talk about the Active Directory module and how to use it in PowerShell. The Active Directory module is only available on Windows 7 and Windows 2008 R2 after you install the Remote Server Administration Tools (RSAT).  When installing RSAT, make sure you drill down into, AD DS and AD LDS Tools, then Active Directory Module for Windows PowerShell.

image

Now that the module is installed, we have to load the module into PowerShell. To load the module start PowerShell and type the following command:

Import-Module ActiveDirectory

 

Once the module is loaded, you can type the following to display the cmdlets loaded with the module:

(Get-Module ActiveDirectory).ExportedCmdlets

Advertisement
Categories: PowerShell
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.