Solved

enable powershell ad module in turn windows features on or off windows 7

Posted on 2016-11-02
2
34 Views
Last Modified: 2016-11-02
adfeature.pngIn windows 7 the "Turn windows feature on or off" window how can I turn on "activate directory module for windows powershell"  with powershell or command line?
0
Comment
Question by:Roccat
2 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 500 total points
ID: 41870635
Assuming the RSAT package is already installed, you need to use dism.exe on Windows 7.
This will show you all available features:
dism.exe /online /get-features

Open in new window

The feature you're looking for is RemoteServerAdministrationTools-Roles-AD-Powershell.
You can enable it like this (the parent features must be listed as well):
dism.exe /online /enable-feature /featurename:RemoteServerAdministrationTools /featurename:RemoteServerAdministrationTools-Roles /featurename:RemoteServerAdministrationTools-Roles-AD  /featurename:RemoteServerAdministrationTools-Roles-AD-Powershell

Open in new window


Note: keep the case of the feature names exactly as posted (that is, how "get-features" will show them - they are case sensitive!
0
 

Author Closing Comment

by:Roccat
ID: 41870672
Perfect, Thank you!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help you understand what HashTables are and how to use them in PowerShell.
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question