Microsoft can use Ocsetup.exe to install Windows components in XP, and the Pkgmgr command to install Windows components after Vista has been launched
After WIN7/WINDOWS2008R2, the new deployment Image serviing and Management (Dism.exe) tool, which features a powerful package installation, Not only can the installation and deployment of Winows installed and started, but also the installation package can be pre-deployed to an operating system that is not started (such as Mount file Wim or VHD file on a touch disk), so that after the installation is complete, These components are automatically installed in the system)
Like what:
Get the list of installed components in the file,
Dism.exe/online/get-features >%~dp0windowsfeaturesinfo.txt
Install MSMQ
Dism.exe/online/quiet/norestart/enable-feature/featurename: MSMQ-container/featurename: MSMQ- Server/limitaccess/featurename: MSMQ-triggers /featurename: MSMQ-adintegration/featurename : MSMQ-http /featurename:MSMQ-multicast/featurename: MSMQ-dcomproxy
Installing IIS
Dism/online/enable-feature/featurename: IIS-applicationdevelopment/featurename: IIS-asp/featurename: IIS-aspnet/featurename: IIS-basicauthentication/featurename: IIS-cgi/featurename: IIS-clientcertificatemappingauthentication/featurename: IIS-commonhttpfeatures/featurename: IIS-customlogging/featurename: IIS-defaultdocument/featurename: IIS-digestauthentication/featurename: IIS-directorybrowsing/featurename: IIS-ftpextensibility/featurename: IIS-ftpserver/featurename: IIS-ftpsvc/featurename: IIS-healthanddiagnostics/featurename: IIS-hostablewebcore/featurename: IIS-httpcompressiondynamic/featurename: IIS-httpcompressionstatic/featurename: IIS-httperrors/featurename: IIS-httplogging/featurename: IIS-httpredirect/featurename: IIS-httptracing/featurename: IIS-iis6managementcompatibility/featurename: IIS-iiscertificatemappingauthentication/featurename: IIS-ipsecurity/featurename: IIS-isapiextensions/featurename: IIS-isapifilter/featurename: IIS-legacyscripts/featurename: IIS-legacysnapin/featurename: IIS-logginglibraries/featurename: IIS-managementconsole/featurename: IIS-managementscriptingtools/featurename: IIS-managementservice/featurename: IIS-metabase/featurename: IIS-netfxextensibility/featurename: IIS-odbclogging/featurename: IIS-performance/featurename: IIS-requestfiltering/featurename: IIS-requestmonitor/featurename: IIS-security/featurename: IIS-serversideincludes/featurename: IIS-staticcontent/featurename: IIS-urlauthorization/featurename: IIS-webdav/featurename: IIS-webserver/featurename: IIS-webservermanagementtools/featurename: IIS-webserverrole/featurename: IIS-windowsauthentication/featurename: IIS-wmicompatibility/featurename: was-configurationapi/featurename: was-netfxenvironment/featurename: was-processmodel/featurename: was-windowsactivationservice
Windwos Component Automation Installation-command line DISM installs IIS and MSMQ Message Queuing