1.打开windows powershell
2.执行import-module servermanager
3
3.1典型三合一安装(typical installation),CAS+HT+MBX:
add-windowsfeature net-framework,rsat-adds,web-server,web-basic-auth,web-windows-auth,web-metabase,web-net-ext,web-lgcy-mgmt-console,was-process-model,rsat-web-server,web-isapi-ext,web-digest-auth,web-dyn-compression,net-http-activation,rpc-over-http-proxy -restart
3.2二合一安装,CAS+HT:
add-windowsfeature net-framework,rsat-adds,web-server,web-basic-auth,web-windows-auth,web-metabase,web-net-ext,web-lgcy-mgmt-console,was-process-model,rsat-web-server,web-isapi-ext,web-digest-auth,web-dyn-compression,net-http-activation,rpc-over-http-proxy -restart
3.3单一CAS角色安装:
Add-WindowsFeature Desktop-Experience, NET-Framework, NET-HTTP-Activation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model, Web-Asp-Net, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI -Restart
3.4单一Edge角色安装:
add-windowsfeature net-framework,rsat-adds,adlds -restart
3.5单一MBX角色安装:
Add-WindowsFeature Desktop-Experience, NET-Framework, NET-HTTP-Activation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model, Web-Asp-Net, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI