Solved

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

Posted on 2016-11-02
2
40 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 84

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

856 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