So knowing that we can add features to an install we decided to go and install the Remote Server Administration Tools (RSAT). Well funny thing here. I did as i described in my article A language is a language is a patch?. But Microsoft seems to have made a change with Windows 8. In Windows 7 you needed to manually enable all the roles after you installed the update package, in Windows 8 everything is enabled. But that’s not what I wanted.
I wanted everything installed but not more than that. So lets use the knowledge of another of my late entries about removing features during the install. So lets build a good image now.
So first follow the first two blog entries about adding the RSAT package as a language package. And then modify the task sequence to allow the uninstall OS features.
Now for the hard part. Lets just enter the RSAT features and be done then.. Well which features are those then, well this is a list:
- RemoteServerAdministrationTools-ServerManager
- RemoteServerAdministrationTools-Roles
- RemoteServerAdministrationTools-Roles-CertificateServices
- RemoteServerAdministrationTools-Roles-CertificateServices-CA
- RemoteServerAdministrationTools-Roles-CertificateServices-OnlineResponder
- RemoteServerAdministrationTools-Roles-AD
- RemoteServerAdministrationTools-Roles-AD-DS
- RemoteServerAdministrationTools-Roles-AD-DS-SnapIns
- RemoteServerAdministrationTools-Roles-AD-DS-AdministrativeCenter
- RemoteServerAdministrationTools-Roles-AD-DS-NIS
- RemoteServerAdministrationTools-Roles-AD-Powershell
- RemoteServerAdministrationTools-Roles-DHCP
- RemoteServerAdministrationTools-Roles-DNS
- RemoteServerAdministrationTools-Roles-RemoteAccess
- RemoteServerAdministrationTools-Roles-FileServices
- RemoteServerAdministrationTools-Roles-FileServices-Dfs
- RemoteServerAdministrationTools-Roles-FileServices-Fsrm
- RemoteServerAdministrationTools-Roles-FileServices-Nfs
- RemoteServerAdministrationTools-Roles-FileServices-StorageMgmt
- RemoteServerAdministrationTools-Roles-RDS
- RemoteServerAdministrationTools-Roles-RDS-Gateway
- RemoteServerAdministrationTools-Roles-RDS-LicensingUI
- RemoteServerAdministrationTools-Roles-RDS-LicensingDiagUI
- RemoteServerAdministrationTools-Roles-VA
- RemoteServerAdministrationTools-Roles-WSUS
- RemoteServerAdministrationTools-Roles-WSUS-API
- RemoteServerAdministrationTools-Roles-WSUS-UI
- RemoteServerAdministrationTools-Features
- RemoteServerAdministrationTools-Features-BitLocker
- RemoteServerAdministrationTools-Features-Clustering
- RemoteServerAdministrationTools-Features-GP
- RemoteServerAdministrationTools-Features-IPAM
- RemoteServerAdministrationTools-Features-LoadBalancing
- RemoteServerAdministrationTools-Features-NICTeaming
Now just add all these in a comma separated list to the property..A bit to much work?
Well there is a Powershell way to make it easier. Okey you need to have RSAT on the machine to run the query.
[string]::join(',',(Get-WindowsOptionalFeature -Online|Where-Object {$_.featurename -Like 'RemoteServerAdministrationTools*'}|Select -ExpandProperty FeatureName))
Just add the output to the UninstallOSFeature
property in the deployment policy.