fkeles

install-iis-asp.net.ps

Jan 16th, 2026 (edited)
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 6.02 KB | Software | 0 0
  1. # Run as Administrator, swithc to new windows
  2. Start-Process powershell -Verb runAs
  3.  
  4. # Install IIS with ASP.NET Framework support
  5. PS C:\Windows\system32> Install-WindowsFeature Web-Server, Web-Asp-Net45 -IncludeManagementTools
  6.  
  7. Success Restart Needed Exit Code      Feature Result
  8. ------- -------------- ---------      --------------
  9. True    No             Success        {ASP.NET 4.8, Application Development, ASP...
  10.  
  11. PS C:\Windows\system32> Get-WindowsFeature Web*
  12.  
  13. Display Name                                            Name                       Install State
  14. ------------                                            ----                       -------------
  15.     [ ] Web Application Proxy                           Web-Application-Proxy          Available
  16. [X] Web Server (IIS)                                    Web-Server                     Installed
  17.     [X] Web Server                                      Web-WebServer                  Installed
  18.         [X] Common HTTP Features                        Web-Common-Http                Installed
  19.             [X] Default Document                        Web-Default-Doc                Installed
  20.             [X] Directory Browsing                      Web-Dir-Browsing               Installed
  21.             [X] HTTP Errors                             Web-Http-Errors                Installed
  22.             [X] Static Content                          Web-Static-Content             Installed
  23.             [ ] HTTP Redirection                        Web-Http-Redirect              Available
  24.             [ ] WebDAV Publishing                       Web-DAV-Publishing             Available
  25.         [X] Health and Diagnostics                      Web-Health                     Installed
  26.             [X] HTTP Logging                            Web-Http-Logging               Installed
  27.             [ ] Custom Logging                          Web-Custom-Logging             Available
  28.             [ ] Logging Tools                           Web-Log-Libraries              Available
  29.             [ ] ODBC Logging                            Web-ODBC-Logging               Available
  30.             [ ] Request Monitor                         Web-Request-Monitor            Available
  31.             [ ] Tracing                                 Web-Http-Tracing               Available
  32.         [X] Performance                                 Web-Performance                Installed
  33.             [X] Static Content Compression              Web-Stat-Compression           Installed
  34.             [ ] Dynamic Content Compression             Web-Dyn-Compression            Available
  35.         [X] Security                                    Web-Security                   Installed
  36.             [X] Request Filtering                       Web-Filtering                  Installed
  37.             [ ] Basic Authentication                    Web-Basic-Auth                 Available
  38.             [ ] Centralized SSL Certificate Support     Web-CertProvider               Available
  39.             [ ] Client Certificate Mapping Authentic... Web-Client-Auth                Available
  40.             [ ] Digest Authentication                   Web-Digest-Auth                Available
  41.             [ ] IIS Client Certificate Mapping Authe... Web-Cert-Auth                  Available
  42.             [ ] IP and Domain Restrictions              Web-IP-Security                Available
  43.             [ ] URL Authorization                       Web-Url-Auth                   Available
  44.             [ ] Windows Authentication                  Web-Windows-Auth               Available
  45.         [X] Application Development                     Web-App-Dev                    Installed
  46.             [ ] .NET Extensibility 3.5                  Web-Net-Ext                    Available
  47.             [X] .NET Extensibility 4.8                  Web-Net-Ext45                  Installed
  48.             [ ] Application Initialization              Web-AppInit                    Available
  49.             [ ] ASP                                     Web-ASP                        Available
  50.             [ ] ASP.NET 3.5                             Web-Asp-Net                    Available
  51.             [X] ASP.NET 4.8                             Web-Asp-Net45                  Installed
  52.             [ ] CGI                                     Web-CGI                        Available
  53.             [X] ISAPI Extensions                        Web-ISAPI-Ext                  Installed
  54.             [X] ISAPI Filters                           Web-ISAPI-Filter               Installed
  55.             [ ] Server Side Includes                    Web-Includes                   Available
  56.             [ ] WebSocket Protocol                      Web-WebSockets                 Available
  57.     [ ] FTP Server                                      Web-Ftp-Server                 Available
  58.         [ ] FTP Service                                 Web-Ftp-Service                Available
  59.         [ ] FTP Extensibility                           Web-Ftp-Ext                    Available
  60.     [X] Management Tools                                Web-Mgmt-Tools                 Installed
  61.         [X] IIS Management Console                      Web-Mgmt-Console               Installed
  62.         [ ] IIS 6 Management Compatibility              Web-Mgmt-Compat                Available
  63.             [ ] IIS 6 Metabase Compatibility            Web-Metabase                   Available
  64.             [ ] IIS 6 Management Console                Web-Lgcy-Mgmt-Console          Available
  65.             [ ] IIS 6 Scripting Tools                   Web-Lgcy-Scripting             Available
  66.             [ ] IIS 6 WMI Compatibility                 Web-WMI                        Available
  67.         [ ] IIS Management Scripts and Tools            Web-Scripting-Tools            Available
  68.         [ ] Management Service                          Web-Mgmt-Service               Available
  69. [ ] IIS Hostable Web Core                               Web-WHC                        Available
  70. [ ] WebDAV Redirector                                   WebDAV-Redirector              Available
  71.  
Advertisement
Add Comment
Please, Sign In to add comment