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
- Open Server Manager → Manage → Add Roles and Features.
- Choose Role-based or feature-based installation and select your server.
- Tick Web Server (IIS) and accept the extra management tools.
- Under Role Services, add what you need, such as ASP.NET 4.8 under Application Development.
- Click Install.
Check the installation by opening http://localhost in a browser on the server. You should see the IIS welcome page.

Which IIS features to add
| Feature name | Role service | Add it when |
|---|---|---|
Web-Asp-Net45 | ASP.NET 4.x | Running .NET Framework web apps or older vendor software |
Web-WebSockets | WebSocket Protocol | Apps with live updates (SignalR, chat, dashboards) |
Web-Url-Auth | URL Authorization | Restricting folders to particular users or groups |
Web-IP-Security | IP and Domain Restrictions | Limiting admin areas to office IP addresses |
Web-Dyn-Compression | Dynamic Content Compression | Compressing 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:
- Download win-acme and extract it to a permanent folder such as
C:\tools\win-acme. - Run
wacs.exeas Administrator and choose to create a certificate for an IIS site. - Select your site; win-acme reads its bindings, validates the domain over HTTP and adds an HTTPS binding.
- 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-Byheader 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
| Error | Usual cause |
|---|---|
| HTTP 403.14 Forbidden | No default document (index.html, default.aspx) and directory browsing is off |
| HTTP 500.19 | Invalid web.config, or a module it references is not installed |
| HTTP 503 Service Unavailable | The application pool stopped, often after repeated crashes; check its identity and the Event Log |
| 401 or access denied on files | Application pool identity lacks NTFS permission on the folder |
| Site works by IP but not by domain | DNS 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?
Does installing IIS need a restart?
Is IIS free?
Can IIS run PHP or WordPress?
How do I add HTTPS to an IIS website for free?
Why does my IIS site show 503 Service Unavailable?
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| RDP Plan 1 | 4 | 8 GB DDR4 | 60 GB Enterprise Disk | 1 Gbps, unmetered | ₹999/month | Data entry, virtual assistants, one MetaTrader terminal | Order |
| RDP Plan 2 | 6 | 16 GB DDR4 | 80 GB Enterprise Disk | 1 Gbps, unmetered | ₹1,799/month | Tally Prime for small teams, several browser profiles or terminals | Order |
| RDP Plan 3 | 8 | 24 GB DDR4 | 120 GB Enterprise Disk | 1 Gbps, unmetered | ₹2,499/month | Multi-user remote work, automation and SEO tools | Order |
| RDP Plan 4 | 12 | 32 GB DDR4 | 160 GB Enterprise Disk | 1 Gbps, unmetered | ₹3,499/month | Remote teams, large ERP datasets, many concurrent sessions | Order |
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.