Use the command line to configure the role and feature tools on Windows 7.

dism /online /enable-feature /featurename:*feature name*

For information about the current roles and features?

dism /online /get-features | more

How to install the Active Directory and Group Policy tools.

Must be in proper order

dism /online /enable-feature /featurename:RemoteServerAdministrationTools
dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles
dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD
dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS
dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns
dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-Powershell
dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features
dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Features-GP

How to install RSAT on Windows SP1 from CLI

On Server 2008 you configure features and roles using PowerShell

Load the Server Manager module

Import-Module Servermanager

See a list of features and roles

Get-WindowsFeature

Add the feature

Add-WindowsFeature *name* -restart

The “-restart” argument will cause the host to reboot.

How to install the Active Directory and Group Policy tools.

Add-WindowsFeature RSAT-AD-Tools,RSAT-ADDS,RSAT-ADDS-Tools,RSAT-AD-PowerShell