Active Directory Powershell Module Windows 10

Installing the Active Directory PowerShell Module on Windows 10. Also I'm attaching the code itself and a screenshot of my result after executing the code. Basically the code provided creates a function called Install-ADModule and then invokes it. Good afternoon! I need to add only the module rsat Active Directory module powershell in windows 10 Execute command: Enable-WindowsOptionalFeature -Online -FeatureName RSATClient-Roles-AD-Power.

  1. Enable Active Directory Powershell Module Windows 10
  2. Microsoft Active Directory Module

Information Technology, How To Guides. How do I install Active Directory module on Windows 10? Normally you just install RSAT and then enable the option in Windows Features but in Windows 10 it does not show up in Windows Features? Aug 20, 2019  A prerequisite for just about every Active Directory task in Windows PowerShell is to install the Active Directory PowerShell module. This popular module allows administrators to quickly query and make changes to Active Directory with PowerShell. Active Directory Module for Windows PowerShell. The Active Directory module for Windows PowerShell first appeared in Windows Server 2008 R2. It is automatically installed on the domain controller. To use the PowerShell cmdlets from the Active Directory module, at least one controller with Windows Server 2008 R2 or higher must exist in your domain.

Today I share a script to automate all of the manual steps involved with setting up the Active Directory PowerShell module on your Windows 10 workstation.

Clickety, Click. Scripty, script.

Import active directory module powershell windows 10

I recently reloaded my everyday work laptop. After three years it had in-place upgrades from Windows 8 to Windows 8.1 to Windows 10. You can imagine that we dogfood a lot of software as Microsoft employees, so it was well past time for a reload.

Enable Active Directory Powershell Module Windows 10

As part of this I had to set up the Active Directory module. Since the process was more than one quick step, I decide this deserves a script to help everyone else in the world as well. How many steps does it take?

Microsoft Active Directory Module

  • Find and download the CPU-architecture-appropriate Windows 10 RSAT package (Remote Server Administration Tools)
  • Install the RSAT
  • Enable the Active Directory PowerShell feature
  • Update-Help for the AD module

This is mostly a one-time task, except for updating the module help. Generally I only script things that are more repeatable. However, I know many of you like to reload your laptop on a regular basis. I also know that lots of people are deploying Windows 10 right now. So this seemed like a good community service project.

The Script

This script needs to run from an elevated ISE or console session, since it is configuring your system. Obviously it will only run on Windows 10, because that is the goal.

Powershell active directory tools

Like any good PowerShell scripter I borrowed code from various sources on the internet. I included comments with the links where I found handy code for downloading a file, installing a hotfix, etc.

Rather than explain the entire script line-by-line, I’ll provide the interesting parts here with comments. DO NOT copy/paste/run the code below. It is not complete. Use the download link at the bottom of this post to get a copy of the full script.

I turned this into a function with full help and verbose output. I always like watching the blue verbose scroll as PowerShell runs. You get that sense of satisfaction that everything in the world is good when you watch your own code perform. #nerdthrills

Download

Powershell

You can find the code here on the TechNet Script Gallery. Enjoy!