windwos组件自动化安装-命令行DISM安装iis和msmq消息队列

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了windwos组件自动化安装-命令行DISM安装iis和msmq消息队列相关的知识,希望对你有一定的参考价值。

微软在xp时可以使用ocsetup.exe来安装部署windows组件,在vista之后推出了pkgmgr命令来安装windows组件
在win7/windows2008r2之后,新推出了Deployment image serviing and management(Dism.exe)工具,此工具提拱了强大的包安装功能,不仅可以对已经安装好并启动的winows进行组件的安装部署,还可以对没有启动起来的操作系统(比如mount到某个碰盘上的安装文件wim或vhd文件,对安装包进行预先部署,这样可以在安装完成后,这些组件就自动安装到系统中了)

比如:
取得已安装组件列表到文件中,

dism.exe /Online /Get-Features >%~dp0WindowsFeaturesInfo.txt

 

安装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  

 


安装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组件自动化安装-命令行DISM安装iis和msmq消息队列的主要内容,如果未能解决你的问题,请参考以下文章

我的 DISM 命令似乎运行成功,但没有安装

windows11必要环境安装

Windows 部署映像服务和管理(Dism)使用教程

windows server 2012 安装完只有命令行

Unity3D安装:从命令行安装 Unity

64位win8.1系统无法安装更新 kbKB2919355,求解决