Windows Server & RDP7 min read•Last updated: •By SkyRain Cloud Team

How to Install IIS on Windows Server and Host Your First Website

Internet Information Services (IIS) is the web server built into Windows Server. If you run ASP.NET applications, classic ASP, an intranet tool or a vendor product that "needs IIS", you will want to install IIS on your Windows VPS or dedicated server and configure it properly rather than accept every default.

This guide installs IIS with a single PowerShell command (and the Server Manager alternative), creates a website with its own application pool and correct folder permissions, opens the firewall, points a domain at it, and adds a free HTTPS certificate. It works on Windows Server 2019, 2022 and 2025.

Quick answer

To install IIS, run Install-WindowsFeature -Name Web-Server -IncludeManagementTools in an elevated PowerShell window, then open http://localhost to see the default page. Create a folder for your site, add it with New-IISSite using your domain as the host name, grant the application pool identity read access, point the domain's DNS A record to the server's IP, and add a Let's Encrypt certificate with a tool such as win-acme.

Step 1: Install IIS

With PowerShell (fastest)

Open PowerShell as Administrator and run:

Install-WindowsFeature -Name Web-Server -IncludeManagementTools

This installs the web server, the IIS Manager console and the PowerShell module. No restart is normally needed. To add ASP.NET 4.x support for older .NET Framework applications:

Install-WindowsFeature -Name Web-Asp-Net45

For modern ASP.NET Core applications, also install the .NET Hosting Bundle for your runtime version from Microsoft's .NET download page; it adds the module that lets IIS run ASP.NET Core apps.

With Server Manager

  1. Open Server Manager → Manage → Add Roles and Features.
  2. Choose Role-based or feature-based installation and select your server.
  3. Tick Web Server (IIS) and accept the extra management tools.
  4. Under Role Services, add what you need, such as ASP.NET 4.8 under Application Development.
  5. Click Install.

Check the installation by opening http://localhost in a browser on the server. You should see the IIS welcome page.

Install IIS – SkyRain Cloud servers in India

Which IIS features to add

Feature nameRole serviceAdd it when
Web-Asp-Net45ASP.NET 4.xRunning .NET Framework web apps or older vendor software
Web-WebSocketsWebSocket ProtocolApps with live updates (SignalR, chat, dashboards)
Web-Url-AuthURL AuthorizationRestricting folders to particular users or groups
Web-IP-SecurityIP and Domain RestrictionsLimiting admin areas to office IP addresses
Web-Dyn-CompressionDynamic Content CompressionCompressing generated pages to save bandwidth

Install only what you use. Every extra module is more code to patch.

Step 2: Create your website

Keep sites out of C:\inetpub\wwwroot so each has its own folder and permissions. In PowerShell:

Import-Module IISAdministration, WebAdministration
New-Item -ItemType Directory -Path C:\sites\example.com
Set-Content C:\sites\example.com\index.html '<h1>It works</h1>'
New-WebAppPool -Name "example.com"
New-IISSite -Name "example.com" -PhysicalPath C:\sites\example.com -BindingInformation "*:80:example.com"
Set-ItemProperty "IIS:\Sites\example.com" -Name applicationPool -Value "example.com"

The binding *:80:example.com tells IIS to answer requests for that host name on port 80 on every IP address. Add a second binding for www.example.com if you use it. New-IISSite comes from the IISAdministration module; New-WebAppPool and the IIS:\ drive come from WebAdministration. Both install with the management tools.

Set folder permissions for the application pool

Each application pool runs as its own virtual account. Give it read access to the site folder, and write access only to folders the application really writes to (uploads, cache):

icacls C:\sites\example.com /grant "IIS AppPool\example.com:(OI)(CI)RX"
icacls C:\sites\example.com\uploads /grant "IIS AppPool\example.com:(OI)(CI)M"

Separate pools per site mean one compromised or crashing site cannot read or take down the others.

Step 3: Open the firewall and point your domain

Installing IIS enables the World Wide Web Services (HTTP Traffic-In) firewall rule. Confirm HTTP and HTTPS are allowed:

Get-NetFirewallRule -DisplayGroup "World Wide Web Services (HTTP)" | Format-Table DisplayName, Enabled
New-NetFirewallRule -DisplayName "HTTPS 443" -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow

Then, at your domain registrar or DNS provider, create an A record for example.com (and www) pointing to the server's public IP. Once DNS updates, visiting the domain should show your test page.

Step 4: Add a free HTTPS certificate

Browsers mark plain HTTP sites as "Not secure". The open-source win-acme client gets free Let's Encrypt certificates for IIS and renews them automatically through a scheduled task:

  1. Download win-acme and extract it to a permanent folder such as C:\tools\win-acme.
  2. Run wacs.exe as Administrator and choose to create a certificate for an IIS site.
  3. Select your site; win-acme reads its bindings, validates the domain over HTTP and adds an HTTPS binding.
  4. Confirm the scheduled renewal task was created.

Then redirect HTTP to HTTPS using the URL Rewrite module or your application's settings.

Basic IIS hardening

  • Remove what you do not use: the default site, unused modules and sample files.
  • Hide version details: remove the X-Powered-By header in HTTP Response Headers.
  • Disable directory browsing unless a folder genuinely needs it.
  • Turn on logging and keep logs long enough to investigate problems.
  • Patch monthly: IIS updates arrive through Windows Update.
  • Protect the server itself: a web server is only as safe as its Remote Desktop access, so follow our RDP security guide.

If you are hosting ASP.NET applications for business use, our overview of Windows VPS hosting for ASP.NET covers sizing, and running SQL Server on a Windows VPS covers the database side.

Common IIS problems

ErrorUsual cause
HTTP 403.14 ForbiddenNo default document (index.html, default.aspx) and directory browsing is off
HTTP 500.19Invalid web.config, or a module it references is not installed
HTTP 503 Service UnavailableThe application pool stopped, often after repeated crashes; check its identity and the Event Log
401 or access denied on filesApplication pool identity lacks NTFS permission on the folder
Site works by IP but not by domainDNS not updated yet, or the binding's host name does not match

Why teams run Windows on SkyRain Cloud

A website on IIS needs a solid Windows server underneath. SkyRain Cloud Windows plans offer:

  • Windows Server ready to use. Plans come with Windows Server pre-installed and activated, so you log in over RDP and start working.
  • Full Administrator access. Install your own software, change the RDP port, create users and set firewall rules yourself.
  • Resources that are yours. Each plan is a private virtual machine with its own vCores, RAM and disk, not a shared terminal-server account.
  • Indian locations, Indian latency. Servers sit in India, so a remote desktop session from Mumbai, Delhi or Bengaluru feels responsive.
  • Unmetered 1 Gbps port. Updates, file transfers and browser work are not capped by a monthly data allowance.
  • Simple billing and real support. Monthly billing in rupees with UPI, net banking and cards, plus 24/7 tickets, WhatsApp and Discord.

Frequently Asked Questions

How do I install IIS with PowerShell?
Run Install-WindowsFeature -Name Web-Server -IncludeManagementTools in PowerShell as Administrator. Add -Name Web-Asp-Net45 if you need ASP.NET 4.x.
Does installing IIS need a restart?
Usually not. Some additional role services or the .NET Hosting Bundle may require restarting IIS (iisreset) or the server.
Is IIS free?
Yes. IIS is included with Windows Server at no extra cost.
Can IIS run PHP or WordPress?
Yes, with PHP installed and configured through FastCGI. Many people still prefer Linux with Nginx or Apache for PHP sites because more guides and hosting tools assume it.
How do I add HTTPS to an IIS website for free?
Use a Let's Encrypt client for Windows such as win-acme. It validates your domain, adds the HTTPS binding and renews the certificate automatically.
Why does my IIS site show 503 Service Unavailable?
The application pool has stopped, usually because the application crashed repeatedly or its identity lacks permissions. Check the pool in IIS Manager and the Windows Event Log.

Conclusion

Installing IIS takes one command; running it well takes a few minutes more. Give each site its own folder and application pool, grant only the permissions it needs, open ports 80 and 443, point DNS, and add a free certificate with automatic renewal. Keep the server patched and RDP locked down, and IIS is a dependable host for .NET and Windows web applications.

To host it on a Windows server in India, see our Windows RDP and VPS plans.

SkyRain Cloud Windows RDP Plans

Windows RDP servers in India with full Administrator access and a 1 Gbps unmetered uplink.

PlanvCoresRAMStorageNetworkPriceGood forBuy
RDP Plan 148 GB DDR460 GB Enterprise Disk1 Gbps, unmetered₹999/monthData entry, virtual assistants, one MetaTrader terminalOrder
RDP Plan 2616 GB DDR480 GB Enterprise Disk1 Gbps, unmetered₹1,799/monthTally Prime for small teams, several browser profiles or terminalsOrder
RDP Plan 3824 GB DDR4120 GB Enterprise Disk1 Gbps, unmetered₹2,499/monthMulti-user remote work, automation and SEO toolsOrder
RDP Plan 41232 GB DDR4160 GB Enterprise Disk1 Gbps, unmetered₹3,499/monthRemote teams, large ERP datasets, many concurrent sessionsOrder

Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.

Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning