<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>PowerShell Commands &#8211; Winsides.com</title>
	<atom:link href="https://winsides.com/tag/powershell-commands/feed/" rel="self" type="application/rss+xml" />
	<link>https://winsides.com</link>
	<description>Windows Insides</description>
	<lastBuildDate>Sat, 30 Nov 2024 10:29:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://winsides.com/wp-content/uploads/2024/05/cropped-android-chrome-512x512-1-150x150.png</url>
	<title>PowerShell Commands &#8211; Winsides.com</title>
	<link>https://winsides.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Enable Internet Information Services using Command Prompt (CMD)</title>
		<link>https://winsides.com/how-to-enable-iis-using-command-prompt-powershell/</link>
					<comments>https://winsides.com/how-to-enable-iis-using-command-prompt-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Vigneshwaran Vijayakumar]]></dc:creator>
		<pubDate>Sat, 30 Nov 2024 10:21:53 +0000</pubDate>
				<category><![CDATA[CMD & PowerShell]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[How to Enable in Windows 11]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Internet Information Services]]></category>
		<category><![CDATA[PowerShell Commands]]></category>
		<category><![CDATA[windows 11]]></category>
		<category><![CDATA[Windows Features]]></category>
		<guid isPermaLink="false">https://winsides.com/?p=3327</guid>

					<description><![CDATA[Enable IIS using CMD: It is a web server developed by Microsoft for hosting Websites, Applications, and Services on the Windows OS. IIS provides seamless integration with Windows Server and the broader Microsoft ecosystem. Its reliability and widespread support make it a trusted platform for enterprise environments, offering the stability and performance required for critical [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>Enable IIS using CMD</strong>: It is a <strong>web server</strong> developed by <strong><a href="https://www.microsoft.com/en-in" target="_blank" rel="noreferrer noopener">Microsoft</a></strong> for hosting <strong>Websites, Applications, and Services</strong> on the Windows OS. IIS provides seamless integration with <strong>Windows Server</strong> and the broader Microsoft ecosystem. Its reliability and widespread support make it a trusted platform for <strong>enterprise environments</strong>, offering the stability and performance required for <strong>critical operations</strong>. </p>



<p>There are several ways available to enable this feature on Windows OS, you can either <a href="https://winsides.com/enable-internet-information-services-iis-in-windows-11/" data-type="post" data-id="21">Enable Internet Information Services via <strong>Windows Features (GUI)</strong> on Windows 11 OS</a>, or you can use the <strong>Command prompt</strong> to enable this feature in the <strong>CLI interface</strong>. With a little tweak in the command, we can enable IIS on Windows Servers using CLI. This article will provide detailed steps to <strong>enable Internet Information Services using Command Prompt. Let&#8217;s get started. </strong></p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li><a href="#i">Internet Information Services (IIS) availability on different Windows Editions</a></li><li><a href="#easy">Easy way to Enable Internet Information Services using Command Prompt</a><ul><li><a href="#l">Let&#8217;s decode the command:</a></li></ul></li><li><a href="#enabl">Enable Internet Information Services using PowerShell</a></li><li><a href="#v">Video Walkthrough for Enabling IIS using CMD and PowerShell</a></li><li><a href="#t">Take away</a></li></ul></nav></div>



<h2 class="wp-block-heading" id="i">Internet Information Services (IIS) availability on different Windows Editions</h2>



<p>This section provides information on the availability of this feature on different Windows Editions.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td>Windows Editions</td><td>Availability</td></tr><tr><td>Windows Servers</td><td>Fully Available</td></tr><tr><td>Windows 11 Home</td><td>Yes</td></tr><tr><td>Windows 11 Professional</td><td>Yes</td></tr><tr><td>Windows 11 Education</td><td>Yes</td></tr><tr><td>Windows 11 Enterprise</td><td>Yes</td></tr><tr><td>Windows 11 Pro Education</td><td>Yes</td></tr><tr><td><a href="https://learn.microsoft.com/en-us/education/windows/windows-11-se-overview" target="_blank" rel="noreferrer noopener nofollow">Windows 11 SE</a></td><td>No</td></tr><tr><td><a href="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-11-iot-enterprise-ltsc" target="_blank" rel="noreferrer noopener nofollow">Windows 11 IoT Enterprise</a></td><td>Yes</td></tr></tbody></table></figure>



<h2 class="wp-block-heading" id="easy">Easy way to Enable Internet Information Services using Command Prompt</h2>



<ul class="wp-block-list">
<li>Go to the <strong>Start menu</strong> and Search for Command Prompt. <strong>Run Command Prompt as Administrator</strong>.</li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img fetchpriority="high" decoding="async" width="749" height="392" src="https://winsides.com/wp-content/uploads/2024/11/Open-Command-Prompt-as-Administrator.webp" alt="Open Command Prompt as Administrator" class="wp-image-3334" title="Enable Internet Information Services using Command Prompt (CMD) 1" srcset="https://winsides.com/wp-content/uploads/2024/11/Open-Command-Prompt-as-Administrator.webp 749w, https://winsides.com/wp-content/uploads/2024/11/Open-Command-Prompt-as-Administrator-300x157.webp 300w" sizes="(max-width: 749px) 100vw, 749px" /><figcaption class="wp-element-caption">Open Command Prompt as Administrator</figcaption></figure>



<ul class="wp-block-list">
<li><strong>User Account Control (UAC)</strong> will prompt for your permission to open CMD in Administrator mode. To confirm the action, click <strong>Yes</strong>. </li>
</ul>



<ul class="wp-block-list">
<li>On the Command Prompt, execute the following command. <code><strong>dism /online /enable-feature /featurename:IIS-WebServerRole /all /norestart</strong></code></li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img decoding="async" width="898" height="324" src="https://winsides.com/wp-content/uploads/2024/11/Command-to-Enable-IIS-using-CMD.webp" alt="Command to Enable IIS using CMD" class="wp-image-3329" title="Enable Internet Information Services using Command Prompt (CMD) 2" srcset="https://winsides.com/wp-content/uploads/2024/11/Command-to-Enable-IIS-using-CMD.webp 898w, https://winsides.com/wp-content/uploads/2024/11/Command-to-Enable-IIS-using-CMD-300x108.webp 300w, https://winsides.com/wp-content/uploads/2024/11/Command-to-Enable-IIS-using-CMD-768x277.webp 768w" sizes="(max-width: 898px) 100vw, 898px" /><figcaption class="wp-element-caption">Command to Enable IIS using CMD</figcaption></figure>



<ul class="wp-block-list">
<li>The above command will use <strong>DISM</strong> to Enable IIS using Command Prompt. Kindly be patient when the system enables this feature. </li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img decoding="async" width="898" height="324" src="https://winsides.com/wp-content/uploads/2024/11/System-Enables-the-required-Feature.webp" alt="System Enables the required Feature" class="wp-image-3332" title="Enable Internet Information Services using Command Prompt (CMD) 3" srcset="https://winsides.com/wp-content/uploads/2024/11/System-Enables-the-required-Feature.webp 898w, https://winsides.com/wp-content/uploads/2024/11/System-Enables-the-required-Feature-300x108.webp 300w, https://winsides.com/wp-content/uploads/2024/11/System-Enables-the-required-Feature-768x277.webp 768w" sizes="(max-width: 898px) 100vw, 898px" /><figcaption class="wp-element-caption">The system enables the required Feature</figcaption></figure>



<ul class="wp-block-list">
<li>Once the process is complete, we will get the message, &#8220;<strong>The operation completed successfully</strong>&#8220;.</li>



<li>That is it.<strong> Internet Information Services is enabled via Command Prompt</strong>. </li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="898" height="324" src="https://winsides.com/wp-content/uploads/2024/11/Operation-completed-successfully.webp" alt="Operation completed successfully" class="wp-image-3333" title="Enable Internet Information Services using Command Prompt (CMD) 4" srcset="https://winsides.com/wp-content/uploads/2024/11/Operation-completed-successfully.webp 898w, https://winsides.com/wp-content/uploads/2024/11/Operation-completed-successfully-300x108.webp 300w, https://winsides.com/wp-content/uploads/2024/11/Operation-completed-successfully-768x277.webp 768w" sizes="auto, (max-width: 898px) 100vw, 898px" /><figcaption class="wp-element-caption">The Operation was completed successfully</figcaption></figure>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>The same CMD command, <code>dism /online /enable-feature /featurename:IIS-WebServerRole /all</code>, can be used to install IIS on all modern Windows Server editions, including Windows Server 2012, 2016, 2019, and 2022, as it leverages the DISM tool, which is consistent across these versions.</p>
</blockquote>



<h3 class="wp-block-heading" id="l">Let&#8217;s decode the command:</h3>



<figure class="wp-block-image aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://winsides.com/wp-content/uploads/2024/11/Decoding-IIS-Enable-Command-1024x576.png" alt="Decoding IIS Enable Command" class="wp-image-3337" title="Enable Internet Information Services using Command Prompt (CMD) 5" srcset="https://winsides.com/wp-content/uploads/2024/11/Decoding-IIS-Enable-Command-1024x576.png 1024w, https://winsides.com/wp-content/uploads/2024/11/Decoding-IIS-Enable-Command-300x169.png 300w, https://winsides.com/wp-content/uploads/2024/11/Decoding-IIS-Enable-Command-768x432.png 768w, https://winsides.com/wp-content/uploads/2024/11/Decoding-IIS-Enable-Command-1536x864.png 1536w, https://winsides.com/wp-content/uploads/2024/11/Decoding-IIS-Enable-Command-390x220.png 390w, https://winsides.com/wp-content/uploads/2024/11/Decoding-IIS-Enable-Command.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Decoding IIS Enable Command</figcaption></figure>



<ul class="wp-block-list">
<li><strong>dism</strong>: This stands for <strong>Deployment Imaging Service and Management Tool</strong>. It is a command-line tool used for managing Windows features, packages, and Windows image files (WIMs).</li>



<li><strong>/online</strong>: This flag indicates that the operation is being performed on the currently running (online) Windows installation. It is used to modify the features of the live system.</li>



<li><strong>/enable-feature</strong>: This flag tells <code>DISM</code> that you want to enable a specific feature in the operating system.</li>



<li><strong>/featurename:IIS-WebServerRole</strong>: <strong>IIS-WebServerRole</strong> is the feature that installs the core IIS Web Server components. It includes necessary IIS functions like HTTP Server, configuration management, and core modules.</li>



<li><strong>/all</strong>: This flag ensures that all required dependent features (Dependicies) for the IIS Web Server are also enabled.</li>



<li><strong>/norestart</strong>: This flag prevents Windows from restarting automatically after enabling the feature. If you want the system to restart automatically once the feature is enabled, you can omit this flag.</li>
</ul>



<h2 class="wp-block-heading" id="enabl">Enable Internet Information Services using PowerShell</h2>



<p>In this section, we will check out how to enable IIS using PowerShell. The following are the steps. </p>



<ul class="wp-block-list">
<li>Open the <strong>Start menu</strong> using the shortcut Win Key + S<span style="box-sizing: border-box; margin: 0px; padding: 0px;">, search for PowerShell, and&nbsp;<strong>run PowerShell as an</strong></span><strong> Administrator</strong>.</li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="750" height="376" src="https://winsides.com/wp-content/uploads/2024/11/Run-PowerShell-as-Administrator.webp" alt="Run PowerShell as Administrator" class="wp-image-3340" title="Enable Internet Information Services using Command Prompt (CMD) 6" srcset="https://winsides.com/wp-content/uploads/2024/11/Run-PowerShell-as-Administrator.webp 750w, https://winsides.com/wp-content/uploads/2024/11/Run-PowerShell-as-Administrator-300x150.webp 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /><figcaption class="wp-element-caption">Run PowerShell as Administrator</figcaption></figure>



<ul class="wp-block-list">
<li>Enter the following command in the PowerShell and click Enter. <code><strong>Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole -All</strong></code></li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="827" height="395" src="https://winsides.com/wp-content/uploads/2024/11/PowerShell-is-installing-IIS.webp" alt="PowerShell is installing IIS" class="wp-image-3341" title="Enable Internet Information Services using Command Prompt (CMD) 7" srcset="https://winsides.com/wp-content/uploads/2024/11/PowerShell-is-installing-IIS.webp 827w, https://winsides.com/wp-content/uploads/2024/11/PowerShell-is-installing-IIS-300x143.webp 300w, https://winsides.com/wp-content/uploads/2024/11/PowerShell-is-installing-IIS-768x367.webp 768w" sizes="auto, (max-width: 827px) 100vw, 827px" /><figcaption class="wp-element-caption">PowerShell is installing IIS</figcaption></figure>



<ul class="wp-block-list">
<li>Now, the PowerShell will install the <strong>Internet Information Services</strong> Feature and its related <strong>dependencies</strong>. Kindly be patient. </li>



<li>Once the process is completed, the system will prompt you whether you want to Restart or not. Enter <strong>Y</strong> for Restart and <strong>N</strong> for Restart later. </li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="808" height="363" src="https://winsides.com/wp-content/uploads/2024/11/Choose-whether-you-want-to-restart-your-system-or-not.webp" alt="Choose whether you want to restart your system or not" class="wp-image-3342" title="Enable Internet Information Services using Command Prompt (CMD) 8" srcset="https://winsides.com/wp-content/uploads/2024/11/Choose-whether-you-want-to-restart-your-system-or-not.webp 808w, https://winsides.com/wp-content/uploads/2024/11/Choose-whether-you-want-to-restart-your-system-or-not-300x135.webp 300w, https://winsides.com/wp-content/uploads/2024/11/Choose-whether-you-want-to-restart-your-system-or-not-768x345.webp 768w" sizes="auto, (max-width: 808px) 100vw, 808px" /><figcaption class="wp-element-caption">Choose whether you want to restart your system or not</figcaption></figure>



<ul class="wp-block-list">
<li>Upon entering your desired value, the system will conclude the process by displaying the summary. If the <strong>Restart needed column is True</strong>, then the system strongly suggests that it requires a restart so that the changes made will reflect. </li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="827" height="395" src="https://winsides.com/wp-content/uploads/2024/11/Restart-needed.webp" alt="Restart needed" class="wp-image-3344" title="Enable Internet Information Services using Command Prompt (CMD) 9" srcset="https://winsides.com/wp-content/uploads/2024/11/Restart-needed.webp 827w, https://winsides.com/wp-content/uploads/2024/11/Restart-needed-300x143.webp 300w, https://winsides.com/wp-content/uploads/2024/11/Restart-needed-768x367.webp 768w" sizes="auto, (max-width: 827px) 100vw, 827px" /><figcaption class="wp-element-caption">Restart needed</figcaption></figure>



<ul class="wp-block-list">
<li>That is it. IIS is now enabled on Windows 11 via PowerShell.</li>
</ul>



<h2 class="wp-block-heading" id="v">Video Walkthrough for Enabling IIS using CMD and PowerShell</h2>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Enable IIS using Command Prompt and Powershell [For Windows 11 &amp; Windows Server Editions]" width="860" height="484" src="https://www.youtube.com/embed/M1t9_eAtnds?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading" id="t">Take away</h2>



<p>This approach of <strong>enabling IIS on Windows 11 and Windows Server Editions using Command Prompt</strong>, and PowerShell is beneficial for web developers for <strong>automation</strong>, <strong>remote management</strong>, and <strong>streamlined setups</strong>. If you have any <strong>queries</strong>, kindly let us know in the <strong>comment</strong> section. For more interesting articles, stay tuned to <strong><a href="https://winsides.com">Winsides.com</a></strong>. <strong>Happy Coding! Peace out!</strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://winsides.com/how-to-enable-iis-using-command-prompt-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://www.youtube.com/embed/M1t9_eAtnds" medium="video">
			<media:player url="https://www.youtube.com/embed/M1t9_eAtnds" />
			<media:title type="plain">PowerShell Commands - Winsides.com</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://winsides.com/wp-content/uploads/2024/11/Enable-IIS-using-Command-Prompt-PowerShell.png" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
	</channel>
</rss>
