Advertisement
private775

Server 2012 R2 and SharePoint 2013: The tool was unable to i

Aug 8th, 2018
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Server 2012 R2 and SharePoint 2013: The tool was unable to install Application Server Role, Web Server (IIS) Role.
  2. # http://www.someshinyobject.com/posts/server-2012-r2-and-sharepoint-2013-the-tool-was-unable-to-install-application-server-role-web/
  3.  
  4. Import-Module ServerManager
  5.  
  6. Copy-Item -Path "$($ENV:SystemRoot)\System32\ServerManager.exe" `
  7.     -Destination "$($ENV:SystemRoot)\System32\ServerManagerCmd.exe" -Force
  8.  
  9. Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45
  10.  
  11. Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer, `
  12.     Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing, `
  13.     Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext, `
  14.     Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor, `
  15.     Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering, `
  16.     Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression, `
  17.     Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,Application-Server, `
  18.     AS-Web-Support,AS-TCP-Port-Sharing,AS-WAS-Support, AS-HTTP-Activation, `
  19.     AS-TCP-Activation,AS-Named-Pipes,AS-Net-Framework,WAS,WAS-Process-Model, `
  20.     WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation, `
  21.     Server-Media-Foundation,Xps-Viewer
  22.  
  23. Restart-Computer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement