码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2017-09-09 10:55:47      阅读:1690      评论:0      收藏:0      [点我收藏+]

标签:name   windows   efault   ice   cert   ide   environ   span   ssi   

微软在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消息队列

标签:name   windows   efault   ice   cert   ide   environ   span   ssi   

原文地址:http://www.cnblogs.com/trphoenix/p/7497240.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!