Header Ads

Install IIS using Power Shell Script

I explain how to install IIS using power shell script.This way of installation is very faster then GUI installation.

function IsIISInstalled
	$FWcheck = get-windowsfeature web-server
	if (!($FWcheck -eq $null)) { return $true }

$ErrorActionPreference = "Stop"
Write-Host "Checking whether IIS installed or not..."
if (IsIISInstalled)
    Write-Host "IIS already installed. "

 Write-Host "IIS  installation started. "
Install-WindowsFeature -Name Web-Server
Install-WindowsFeature -Name Web-Mgmt-Tools
WRITE-HOST "IIS Installation Completed"



No comments:

Powered by Blogger.