Enable RSAT Features with PowerShell and Dism

less than 1 minute read

Checking boxes gets old quickly, and I’ve installed and checked those little boxes for the Remote Server Administration Tools (RSAT) on Windows 7 enough times for it to be annoying. I just wanted a static script with the names of the features to enable, but Xenophane’s Blog has some examples of extracting the output of the /Get-Features switch to dynamically generate the command to enable everything in RSAT.

Enable-RSATFeatures.zip

dism /Online /Enable-Feature `
/FeatureName:RemoteServerAdministrationTools `
/FeatureName:RemoteServerAdministrationTools-ServerManager `
/FeatureName:RemoteServerAdministrationTools-Roles `
/FeatureName:RemoteServerAdministrationTools-Roles-CertificateServices `
/FeatureName:RemoteServerAdministrationTools-Roles-CertificateServices-CA `
/FeatureName:RemoteServerAdministrationTools-Roles-CertificateServices-OnlineResponder `
/FeatureName:RemoteServerAdministrationTools-Roles-AD `
/FeatureName:RemoteServerAdministrationTools-Roles-AD-DS `
/FeatureName:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns `
/FeatureName:RemoteServerAdministrationTools-Roles-AD-DS-AdministrativeCenter `
/FeatureName:RemoteServerAdministrationTools-Roles-AD-DS-NIS `
/FeatureName:RemoteServerAdministrationTools-Roles-AD-LDS `
/FeatureName:RemoteServerAdministrationTools-Roles-AD-Powershell `
/FeatureName:RemoteServerAdministrationTools-Roles-DHCP `
/FeatureName:RemoteServerAdministrationTools-Roles-DNS `
/FeatureName:RemoteServerAdministrationTools-Roles-FileServices `
/FeatureName:RemoteServerAdministrationTools-Roles-FileServices-Dfs `
/FeatureName:RemoteServerAdministrationTools-Roles-FileServices-Fsrm `
/FeatureName:RemoteServerAdministrationTools-Roles-FileServices-StorageMgmt `
/FeatureName:RemoteServerAdministrationTools-Roles-HyperV `
/FeatureName:RemoteServerAdministrationTools-Roles-RDS `
/FeatureName:RemoteServerAdministrationTools-Features `
/FeatureName:RemoteServerAdministrationTools-Features-BitLocker `
/FeatureName:RemoteServerAdministrationTools-Features-Clustering `
/FeatureName:RemoteServerAdministrationTools-Features-GP `
/FeatureName:RemoteServerAdministrationTools-Features-LoadBalancing `
/FeatureName:RemoteServerAdministrationTools-Features-StorageExplorer `
/FeatureName:RemoteServerAdministrationTools-Features-StorageManager `
/FeatureName:RemoteServerAdministrationTools-Features-Wsrm