欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

Windows2008安装组件命令行工具ServerManagerCmd用法介绍

程序员文章站 2022-05-17 16:52:18
转自:http://blog.sina.com.cn/s/blog_537de4b5010128al.html Windows2008 安装组件服务等内容比原来复杂的多,用鼠标点来点去,既繁琐也缓慢,所幸微软提供了命令行工具ServerManagerCmd.exe 用法: ServerManager ......

转自:http://blog.sina.com.cn/s/blog_537de4b5010128al.html

windows2008 安装组件服务等内容比原来复杂的多,用鼠标点来点去,既繁琐也缓慢,所幸微软提供了命令行工具servermanagercmd.exe

用法:

servermanagercmd.exe
安装和删除角色、角色服务和功能。也显示所有可用的
角色、角色服务和功能列表,并显示在此计算机上安装了
其中哪些内容。有关可以使用此工具指定的角色、
角色服务和功能的详细信息,请参阅服务器管理器的“帮助”。

      -query [<query.xml>] [-logpath <log.txt>]

      -install <名称>
          [-resultpath <result.xml> [-restart] | -whatif] [-logpath <log.txt>]
          [-allsubfeatures]

      -remove <名称>
          [-resultpath <result.xml> [-restart] | -whatif] [-logpath <log.txt>]

      -inputpath <answer.xml>
          [-resultpath <result.xml> [-restart] | -whatif] [-logpath <log.txt>]

      -help | -?

      -version
开关参数:

  -query [<query.xml>]
        显示所有可用的角色、角色服务和功能列表,
        并显示在此计算机上安装了其中哪些内容。(缩写: -q)
        如果已指定 <query.xml>,则还会将该信息保存
        到 query.xml 文件,其中还包含其他信息。

  -inputpath <answer.xml>
        安装或删除在 xml 应答文件中指定的
        角色、角色服务和功能,该文件的路径和名称由
        <answer.xml> 表示。(缩写: -ip)

  -install <名称>
        在由 <name> 参数指定的计算机上安装
        角色、角色服务或功能。必须用空格隔开
        多个角色、角色服务或功能。(缩写: -i)

  -allsubfeatures
        与 -install 参数一起使用,安装
        所有下级角色服务和功能以及使用 -install 参数
        命名的角色、角色服务或功能。(缩写: -a)

  -remove <名称>
        从由 <name> 参数指定的计算机上删除
        角色、角色服务或功能。必须用空格隔开
        多个角色、角色服务或功能。(缩写: -r)

  -resultpath <result.xml>
        以 xml 格式将 servermanagercmd.exe 操作的结果保存
        到 <result.xml> 文件。(缩写: -rp)

  -restart
        如果完成该操作时需要重新启动,则会自动
        重新启动计算机。

  -whatif
        显示要在 answer.xml 文件中指定的当前
        计算机上执行的操作。(缩写: -w)

  -logpath <log.txt>
        为日志文件指定非默认位置。(缩写: -l)

  -help
        显示帮助信息。(缩写: -?)

  -version
        显示正在运行的服务器管理器命令的版本、
        microsoft 商标信息和操作系统。
        (缩写: -v)
示例:

    servermanagercmd.exe -query

    servermanagercmd.exe -install web-server -resultpath installresult.xml

    servermanagercmd.exe -inputpath install.xml -whatif

下面是

 

role/service or main feature
r/s/f name
installatiom command
dhcp server dhcp server dhcp
print services print server print-services
  internet printing print-internet
  lpd service print-lpd-service
terminal services terminal services terminal-services
  terminal server ts-terminal-server
  ts licensing ts-licensing
  ts gateway ts-gateway
  ts web access ts-web-access
  ts session broker ts-session-broker
active directory domain services ad n/a
  active directory domain controller adds-domain-controller
  identity management for unix adds-identity-management
  server for network information service adds-nis
  password synchronization adds-password-sync
dns server dns  
file services file services n/a
  distributed file system (dfs) fs-dfs
  dfs namespace fs-dfs-namespace
  dfs replication fs-dfs-replication
  file server resource manager fs-resource-manager
  services for network file system fs-nfs-services
  windows search service fs-search-service
  windows server 2003 file services fs-win2003-services
  file replication service fs-replication
  indexing service fs-indexing-service
web server web server (iis) web-server
  internet information services web-webserver
  common http features web-common-http
  static content web-static-content
  default document web-default-doc
  directory browsing web-dir-browsing
  http errors web-http-errors
  http redirection web-http-redirect
  application development web-app-development
  asp.net web-asp-net
  .net extensibility web-net-ext
  asp web-asp
  cgi web-cgi
  isapi extensions web-isapi-ext
  isapi filters web-isapi-filter
  server side includes web-includes
  health and diagnostics web-health
  http logging web-http-logging
  logging tools web-log-libraries
  request monitor web-request-monitor
  tracing web-http-tracing
  custom logging web-custom-logging
  odbc logging web-odbc-logging
  security web-security
  basic authentication web-basic-auth
  windows authentication web-windows-auth
  digest authentication web-digest-auth
  client certificate mapping authentication web-client-auth
  iis client certificate mapping authentication web-cert-auth
  url authorization web-url-auth
  request filtering web-filtering
  ip and domain restrictions web-ip-security
  performance web-performance
  static content compression web-stat-compression
  dynamic content compression web-dyn-compression
  management tools web-mgmt-tools
  iis management console web-mgmt-console
  iis management scripts and tools web-scripting-tools
  management service web-mgmt-service
  iis 6 management compatibility web-mgmt-compat
  iis 6 metabase compatibility web-metabase
  iis 6 wmi compatibility web-wmi
  iis 6 scripting tools web-lgcy-scripting
  iis 6 management console web-lgcy-mgmt-console
  ftp publishing service web-ftp-publishing
  ftp server web-ftp-server
  ftp management console web-ftp-mgmt-console
active directory federation services adfs none
  federation service adfs-federation
  federation service proxy adfs-proxy
  web agents adfs-web-agents
  claims-aware agent adfs-claims
  windows token-based agent adfs-windows-token
active directory lightweight directory services formerly adam adlds
application server application server application-server
  application server core as-appserver-core
  web server support as-web-support
  com+ network access as-ent-services
  tcp port sharing as-tcp-port-sharing
  windows process activation service support as-was-support
  http activation as-http-activation
  message queuing activation as-msmq-activation
  tcp activation as-tcp-activation
  named pipes activation as-named-pipes
  distributed transaction support as-dist-transaction
  incoming remote transactions as-incoming-trans
  outgoing remote transactions as-outgoing-trans
  ws-atomic transaction support as-ws-atomic
active directory certificate services active directory certificate services n/a
  certification authority adcs-cert-authority or ad-certificate
  online certificate status protocol adcs-online-cert
fax server fax server fax
network policy and access services network policy and access services npas
  network policy server npas-policy-server
  npas routing and remote access services npas-rras-services
  remote access service npas-rras
  routing npas-routing
  health registration authority npas-health
windows deployment services windows deployment services wds
hyper-v hyper-v hyper-v
failover clustering failover clustering failover-clustering
network load balancing network load balancing nlb
desktop experience desktop experience desktop-experience
.net framework 3.0 features .net framework 3.0 features net-framework
.net framework 3.0 .net framework 3.0 net-framework-core
xps viewer xps viewer net-xps-viewer
windows communication foundation activation components windows communication foundation activation components net-win-cfac
http activation http activation net-http-activation
non-http activation non-http activation net-non-http-activ
windows system resource manager windows system resource manager wsrm
wireless networking wireless networking wireless-networking
windows server backup windows server backup backup
wins server wins server wins-server
remote assistance remote assistance remote-assistance
simple tcp/ip services simple tcp/ip services simple-tcpip
telnet client telnet client telnet-client
telnet server telnet server telnet-server
subsystem for unix-based applications subsystem for unix-based applications subsystem-unix-apps
rpc over http proxy rpc over http proxy rpc-over-http-proxy
smtp server smtp server smtp-server
lpr port monitor lpr port monitor lpr-port-monitor
storage manager for sans storage manager for sans storage-mgr-sans
bits server extensions bits server extensions bits
message queuing message queuing msmq
  message queuing services msmq-services
  message queuing server msmq-server
  directory service integration msmq-directory
  message queuing triggers msmq-triggers
  http support msmq-http-support
  multicasting support msmq-multicasting
  routing service msmq-routing
  windows 2000 client support msmq-win2000
  messaging queue dcom proxy msmq-dcom
windows process activation service windows process activation service was
  process model was-process-model
  .net environment was-net-environment
  configuration apis was-config-apis
windows internal database windows internal database windows-internal-db
bitlocker drive encryption bitlocker drive encryption bitlocker
multipath i/o multipath i/o multipath-io
internet storage naming server internet storage naming server isns
removable storage manager removable storage manager removable-storage
tftp client tftp client tftp-client
snmp services snmp services snmp-services
  snmp service snmp-service
  snmp wmi provider snmp-wmi-provider
services for network file system services for network file system nfs-services
internet printing client internet printing client internet-print-client
peer name resolution protocol peer name resolution protocol pnrp
connection manager administration kit connection manager administration kit cmak
remote server administration tools remote server administration tools rsat
  role administration tools rsat-role-tools
  active directory certificate services tools rsat-adcs
  active directory domain services tools rsat-adds
  active directory domain controller tools rsat-addc
  server for nis tools rsat-snis
  active directory lightweight directory services tools rsat-adlds
  active directory rights management services (ad rms) tools rsat-rms
  dhcp server tools rsat-dhcp
  dns server tools rsat-dns
  fax server tools rsat-fax
  dfs management console tools rsat-dfs-mgnt-con
  file server resource manager management console tools rsat-fsrm-mgnt
  hyper-v tools rsat-hyper-v
  services for network file system tools rsat-nfs-admin
  file services tools rsat-file-services
  network policy and access services tools rsat-npas
  health registration authority tools rsat-hra
  network policy server tools rsat-nps
  print services tools rsat-print-services
  web server (iis) tools rsat-web-server
  terminal services tools rsat-ts
  ts remoteapp tools rsat-ts-remoteapp
  ts gateway tools rsat-ts-gateway
  ts licensing tools rsat-ts-licensing
  uddi services tools rsat-uddi
  feature administration tools rsat-feature-tools
  bitlocker drive encryption tools rsat-bitlocker
  bits server extensions tools rsat-bits-server
  failover clustering tools rsat-clustering
  network load balancing tools rsat-nlb
  smtp server tools rsat-smtp
  windows deployment services tools rsat-wds
  wins server tools rsat-wins
  hyper-v tools rsat-hyper-v
windows powershell windows powershell powershell
group policy management group policy management gpmc
quality windows audio video experience quality windows audio video experience  

 

role/service or main feature
r/s/f name
installatiom command
dhcp server dhcp server dhcp
print services print server print-services
  internet printing print-internet
  lpd service print-lpd-service
terminal services terminal services terminal-services
  terminal server ts-terminal-server
  ts licensing ts-licensing
  ts gateway ts-gateway
  ts web access ts-web-access
  ts session broker ts-session-broker
active directory domain services ad n/a
  active directory domain controller adds-domain-controller
  identity management for unix adds-identity-management
  server for network information service adds-nis
  password synchronization adds-password-sync
dns server dns  
file services file services n/a
  distributed file system (dfs) fs-dfs
  dfs namespace fs-dfs-namespace
  dfs replication fs-dfs-replication
  file server resource manager fs-resource-manager
  services for network file system fs-nfs-services
  windows search service fs-search-service
  windows server 2003 file services fs-win2003-services
  file replication service fs-replication
  indexing service fs-indexing-service
web server web server (iis) web-server
  internet information services web-webserver
  common http features web-common-http
  static content web-static-content
  default document web-default-doc
  directory browsing web-dir-browsing
  http errors web-http-errors
  http redirection web-http-redirect
  application development web-app-development
  asp.net web-asp-net
  .net extensibility web-net-ext
  asp web-asp
  cgi web-cgi
  isapi extensions web-isapi-ext
  isapi filters web-isapi-filter
  server side includes web-includes
  health and diagnostics web-health
  http logging web-http-logging
  logging tools web-log-libraries
  request monitor web-request-monitor
  tracing web-http-tracing
  custom logging web-custom-logging
  odbc logging web-odbc-logging
  security web-security
  basic authentication web-basic-auth
  windows authentication web-windows-auth
  digest authentication web-digest-auth
  client certificate mapping authentication web-client-auth
  iis client certificate mapping authentication web-cert-auth
  url authorization web-url-auth
  request filtering web-filtering
  ip and domain restrictions web-ip-security
  performance web-performance
  static content compression web-stat-compression
  dynamic content compression web-dyn-compression
  management tools web-mgmt-tools
  iis management console web-mgmt-console
  iis management scripts and tools web-scripting-tools
  management service web-mgmt-service
  iis 6 management compatibility web-mgmt-compat
  iis 6 metabase compatibility web-metabase
  iis 6 wmi compatibility web-wmi
  iis 6 scripting tools web-lgcy-scripting
  iis 6 management console web-lgcy-mgmt-console
  ftp publishing service web-ftp-publishing
  ftp server web-ftp-server
  ftp management console web-ftp-mgmt-console
active directory federation services adfs none
  federation service adfs-federation
  federation service proxy adfs-proxy
  web agents adfs-web-agents
  claims-aware agent adfs-claims
  windows token-based agent adfs-windows-token
active directory lightweight directory services formerly adam adlds
application server application server application-server
  application server core as-appserver-core
  web server support as-web-support
  com+ network access as-ent-services
  tcp port sharing as-tcp-port-sharing
  windows process activation service support as-was-support
  http activation as-http-activation
  message queuing activation as-msmq-activation
  tcp activation as-tcp-activation
  named pipes activation as-named-pipes
  distributed transaction support as-dist-transaction
  incoming remote transactions as-incoming-trans
  outgoing remote transactions as-outgoing-trans
  ws-atomic transaction support as-ws-atomic
active directory certificate services active directory certificate services n/a
  certification authority adcs-cert-authority or ad-certificate
  online certificate status protocol adcs-online-cert
fax server fax server fax
network policy and access services network policy and access services npas
  network policy server npas-policy-server
  npas routing and remote access services npas-rras-services
  remote access service npas-rras
  routing npas-routing
  health registration authority npas-health
windows deployment services windows deployment services wds
hyper-v hyper-v hyper-v
failover clustering failover clustering failover-clustering
network load balancing network load balancing nlb
desktop experience desktop experience desktop-experience
.net framework 3.0 features .net framework 3.0 features net-framework
.net framework 3.0 .net framework 3.0 net-framework-core
xps viewer xps viewer net-xps-viewer
windows communication foundation activation components windows communication foundation activation components net-win-cfac
http activation http activation net-http-activation
non-http activation non-http activation net-non-http-activ
windows system resource manager windows system resource manager wsrm
wireless networking wireless networking wireless-networking
windows server backup windows server backup backup
wins server wins server wins-server
remote assistance remote assistance remote-assistance
simple tcp/ip services simple tcp/ip services simple-tcpip
telnet client telnet client telnet-client
telnet server telnet server telnet-server
subsystem for unix-based applications subsystem for unix-based applications subsystem-unix-apps
rpc over http proxy rpc over http proxy rpc-over-http-proxy
smtp server smtp server smtp-server
lpr port monitor lpr port monitor lpr-port-monitor
storage manager for sans storage manager for sans storage-mgr-sans
bits server extensions bits server extensions bits
message queuing message queuing msmq
  message queuing services msmq-services
  message queuing server msmq-server
  directory service integration msmq-directory
  message queuing triggers msmq-triggers
  http support msmq-http-support
  multicasting support msmq-multicasting
  routing service msmq-routing
  windows 2000 client support msmq-win2000
  messaging queue dcom proxy msmq-dcom
windows process activation service windows process activation service was
  process model was-process-model
  .net environment was-net-environment
  configuration apis was-config-apis
windows internal database windows internal database windows-internal-db
bitlocker drive encryption bitlocker drive encryption bitlocker
multipath i/o multipath i/o multipath-io
internet storage naming server internet storage naming server isns
removable storage manager removable storage manager removable-storage
tftp client tftp client tftp-client
snmp services snmp services snmp-services
  snmp service snmp-service
  snmp wmi provider snmp-wmi-provider
services for network file system services for network file system nfs-services
internet printing client internet printing client internet-print-client
peer name resolution protocol peer name resolution protocol pnrp
connection manager administration kit connection manager administration kit cmak
remote server administration tools remote server administration tools rsat
  role administration tools rsat-role-tools
  active directory certificate services tools rsat-adcs
  active directory domain services tools rsat-adds
(0)
打赏 Windows2008安装组件命令行工具ServerManagerCmd用法介绍 微信扫一扫

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

Windows2008安装组件命令行工具ServerManagerCmd用法介绍
验证码: Windows2008安装组件命令行工具ServerManagerCmd用法介绍
Copyright © 2017-2022  保留所有权利. 粤ICP备17035492号-1
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com