{"id":49320,"date":"2023-05-09T00:00:00","date_gmt":"2023-05-08T22:00:00","guid":{"rendered":"https:\/\/jotelulu.com\/blog\/powershell-commands-for-deploying-and-administrating-an-iis-web-server\/"},"modified":"2023-05-09T00:00:00","modified_gmt":"2023-05-08T22:00:00","slug":"powershell-commands-iis-server","status":"publish","type":"post","link":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/","title":{"rendered":"PowerShell Commands For Deploying And Administrating An IIS Web Server"},"content":{"rendered":"<p>In this short article, we&rsquo;ll share some&nbsp;<strong>PowerShell commands that you can use to deploy and administrate your IIS server&nbsp;<\/strong>more efficiently.<\/p>\n<p>Having a&nbsp;<strong>web server to publish online content&nbsp;<\/strong>is one of the most basic requirements for almost any business, whether it&rsquo;s for marketing, online sales,&nbsp;<strong>internal documentation&nbsp;<\/strong>or some other kind of service.<\/p>\n<p>Not long ago, we published an article explaining&nbsp;<a href=\"https:\/\/jotelulu.com\/en-gb\/blog\/what-is-iis-web-server\/\" target=\"_blank\" rel=\"noopener\">what IIS web server is and what it&rsquo;s used for<\/a> and we also published several tutorials: <a href=\"https:\/\/jotelulu.com\/en-gb\/support\/tutorials\/how-to-install-iis-web-server\/\" target=\"_blank\" rel=\"noopener\">How to Install an IIS Web Server<\/a>, <a href=\"https:\/\/jotelulu.com\/en-gb\/soporte\/tutoriales\/como-instalar-iis-en-windows-10\/\" target=\"_blank\" rel=\"noopener\">How to Install IIS on Windows 10<\/a> and <a href=\"https:\/\/jotelulu.com\/en-gb\/support\/tutorials\/how-to-install-and-configure-an-ftp-server-on-windows-iis\/\" target=\"_blank\" rel=\"noopener\">How to Install and Configure an FTP Server on Window (IIS)<\/a>. With all this information, we now think that this article on PowerShell is the perfect way to close the circle.<\/p>\n<p>Throughout this article, we&rsquo;ll explain how to <strong>install the server<\/strong>, <strong>deploy a website <\/strong>and <strong>perform some basic administrative tasks<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Installing the Web Server<\/strong><\/h2>\n<p>Even though this isn&rsquo;t exactly one of our usual tutorials, we&rsquo;ll still take a minute to talk about the things you will need to be able to install an IIS web server using PowerShell commands. First of all, you will need to be&nbsp;<strong>registered with an organisation on the Jotelulu platform&nbsp;<\/strong>and have <a href=\"https:\/\/admin.jotelulu.com\/login\">logged in<\/a>. Additionally, you&rsquo;ll need <a href=\"https:\/\/jotelulu.com\/en-gb\/support\/tutorials\/deploy-new-server-jotelulu\/\" target=\"_blank\" rel=\"noopener\">to have registered for a Servers subscription<\/a> if you&rsquo;re going to deploy the server on our infrastructure.<\/p>\n<p>You&rsquo;ll also need to have <strong>administrator privileges <\/strong>on the local machine that you&rsquo;re using.<\/p>\n<p>Before installing anything, we need to check whether any components have already been installed. To do this for IIS, run the following command:<\/p>\n<p><em># Get-WindowsFeature -Name *IIS*<\/em><\/p>\n<p>This will basically produce a list of all the Windows features that have the term &laquo;IIS&raquo; in their name, with an &laquo;X&raquo; next to those that have already been installed. As you can see in the screenshot, there are two components:<\/p>\n<ul>\n<li>IIS Server Extension.<\/li>\n<li>WinRM IIS Extension.<\/li>\n<\/ul>\n<p>Since there is no &laquo;X&raquo; between the square brackets in either case, these two components have not been installed. So, we can proceed to install the IIS web server and its management tools. To do this, run the following command:<\/p>\n<p><em># Install-WindowsFeature -name Web-Server -IncludeManagementTools<\/em><\/p>\n<p><figure id=\"attachment_18514\" aria-describedby=\"caption-attachment-18514\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18514 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Comprobamos-si-esta-instalado-IIS-y-lo-instalamos-mediante-PowerShell.jpg?resize=800%2C453&amp;ssl=1\" alt=\"Image - Check whether IIS is already installed and then install it using a PowerShell command\" width=\"800\" height=\"453\"><figcaption id=\"caption-attachment-18514\" class=\"wp-caption-text\">Image &ndash; Check whether IIS is already installed and then install it using a PowerShell command<\/figcaption><\/figure>\n<\/p>\n<p>If you now run the check command again, you should see that the IIS features have now been installed. You can also check this by looking for IIS in the left-hand menu of the Server Manager.<\/p>\n<p><em># Get-WindowsFeature -Name *IIS*<\/em><\/p>\n<p><figure id=\"attachment_18515\" aria-describedby=\"caption-attachment-18515\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18515 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Observamos-que-el-servicio-se-ve-como-instalado-dentro-del-administrador-del-servidor.jpg?resize=800%2C453&amp;ssl=1\" alt=\"Image - Check the the Server Manager to see whether the component has been successfully installed\" width=\"800\" height=\"453\"><figcaption id=\"caption-attachment-18515\" class=\"wp-caption-text\">Image &ndash; Check the Server Manager to see whether the component has been successfully installed<\/figcaption><\/figure>\n<\/p>\n<p>Another way of checking that the service has been installed correctly is to open a web browser and try to connect to the localhost. To do this, type &laquo;127.0.0.1&raquo; in the address bar and hit Enter. If all has gone well, your screen should look like the screenshot below.<\/p>\n<p><figure id=\"attachment_18516\" aria-describedby=\"caption-attachment-18516\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18516 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Comprobamos-que-IIS-es-accesible-desde-el-servidor-local.jpg?resize=800%2C453&amp;ssl=1\" alt=\"Image - Check that you can access IIS from the local server\" width=\"800\" height=\"453\"><figcaption id=\"caption-attachment-18516\" class=\"wp-caption-text\">Image &ndash; Check that you can access IIS from the local server<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Check the Available PowerShell Commands<\/strong><\/h3>\n<p>Whenever you install a new server or module, it&rsquo;s always a good idea to check what new commands are available. To do this, simply run the following command:<\/p>\n<p><em># Get-Command -Module &lsquo;IIS Administration&rsquo;<\/em><\/p>\n<p>In this case, the feature we&rsquo;re interested in is &laquo;IIS Administration&raquo;, but you can replace this with whatever module you&rsquo;re interested in. The command will produce a list of &laquo;cmdlet&raquo; commands that you can use to manage your services, and you can find out more information about these either on the system itself or on Microsoft&rsquo;s Knowledge Base.<\/p>\n<p><figure id=\"attachment_18517\" aria-describedby=\"caption-attachment-18517\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18517 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Comprobamos-los-comandos-de-PowerShell-relacionados-con-IIS.jpg?resize=800%2C453&amp;ssl=1\" alt=\"Image - Check the PowerShell commands available for managing IIS\" width=\"800\" height=\"453\"><figcaption id=\"caption-attachment-18517\" class=\"wp-caption-text\">Image &ndash; Check the PowerShell commands available for managing IIS<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Setting Up a New IIS Site Using PowerShell Commands<\/strong><\/h3>\n<p>Now, that you&rsquo;ve installed IIS Web Server, you&rsquo;ll be able to use PowerShell commands to deploy and manage a new website. To this, we&rsquo;ll start with the &laquo;New-Item&raquo; command and create a new directory to contain all our website files. The full command will look something like this:<\/p>\n<p><em># New-Item -ItemType Directory -Name &lsquo;&lt;Directory&gt;&rsquo; -Path &lsquo;&lt;Directory_Path&gt;&rsquo;<\/em><\/p>\n<p>For this command:<\/p>\n<ul>\n<li>New-Item: is the command to create a new element.<\/li>\n<li>ItemType -Directory: identifies the new element as a directory.<\/li>\n<li>Name &lsquo;&lt;Directory&gt;&rsquo;: specifies the name of the new directory, where &lsquo;&lt;Directory&gt;&rsquo; is the name.<\/li>\n<li>Path &lsquo;&lt;Directory_Path&gt;&rsquo;: specifies the complete path for the new directory, where &lsquo;&lt;Directory_Path&gt;&rsquo; is the path.<\/li>\n<\/ul>\n<p>For example:<\/p>\n<p><em># New-Item -ItemType Directory -Name &lsquo;NachoTest&rsquo; -Path &lsquo;C:inetpubwwwrootNachoTest&rsquo;<\/em><\/p>\n<p>Then, you can also create a file to contain the HTML code for the website. To do this, we use the following command:<\/p>\n<p><em># New-Item -ItemType File -Name &lsquo;index.html&rsquo; -Path &lsquo;C:inetpubwwwrootNachoTest&rsquo;<\/em><\/p>\n<p>If you have multiple sites on the server, you may need to also configure the bindings to set each site to use a specific port. To do this, use the following command:<\/p>\n<p># New-IISSite -Name &lsquo;&lt;Site&gt;&rsquo; -PhysicalPath &lsquo;&lt;Site_Path&gt;&rsquo; -BindingInformation &laquo;*:&lt;Ports_used&gt;:&raquo;<\/p>\n<p>Where:<\/p>\n<ul>\n<li>New-IISSite: is the command to create a new site.<\/li>\n<li>Name &lsquo;&lt;Site&gt;&rsquo;: specifies the name of the site.<\/li>\n<li>PhysicalPath &lsquo;&lt;Site Path&gt;&rsquo;: specifies the folder where the site files are contained.<\/li>\n<li>BindingInformation &laquo;*:&lt;Ports used&gt;:&raquo;: specifies the port that should be used to listen for requests.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example of the full command:<\/p>\n<p><em># New-IISSite -Name &lsquo;NachoTest&rsquo; -PhysicalPath &lsquo;C:inetpubwwwrootNachoTest&rsquo; -BindingInformation &laquo;*:8080:&raquo;<\/em><\/p>\n<p>With this command, you have now created and set up your new site.<\/p>\n<p><figure id=\"attachment_18518\" aria-describedby=\"caption-attachment-18518\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18518 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Creamos-un-nuevo-sitio-para-servir-una-nueva-web-desde-nuestro-servidor-IIS.jpg?resize=800%2C453&amp;ssl=1\" alt=\"Image - Create a new site to host on your IIS web server\" width=\"800\" height=\"453\"><figcaption id=\"caption-attachment-18518\" class=\"wp-caption-text\">Image &ndash; Create a new site to host on your IIS web server<\/figcaption><\/figure>\n<\/p>\n<p>At this point, you can also edit your newly created file &ldquo;index.html&rdquo; to include the necessary HTML code for your website, such as the following:<\/p>\n<p><em>&lt;!DOCTYPE html&gt;<\/em><\/p>\n<p><em>&lt;html&gt;<\/em><\/p>\n<p><em>&nbsp;&nbsp;&nbsp; &lt;head&gt;<\/em><\/p>\n<p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;title&gt;IIS Test created with PowerShell&lt;\/title&gt;<\/em><\/p>\n<p><em>&nbsp;&nbsp;&nbsp; &lt;\/head&gt;<\/em><\/p>\n<p><em>&nbsp;&nbsp;&nbsp; &lt;body&gt;<\/em><\/p>\n<p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h1&gt;IIS Test created with PowerShell&lt;\/h1&gt;<\/em><\/p>\n<p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;We do this for &lt;b&gt;Jotelulu&lt;\/b&gt; tests.&lt;\/p&gt;<\/em><\/p>\n<p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;Creating an IIS webpage using &lt;b&gt;PowerShell&lt;\/b&gt;&lt;\/p&gt;<\/em><\/p>\n<p><em>&nbsp;&nbsp;&nbsp; &lt;\/body&gt;<\/em><\/p>\n<p><em>&lt;\/html&gt;<\/em><\/p>\n<p>Save the file to apply the changes.<\/p>\n<p><figure id=\"attachment_18519\" aria-describedby=\"caption-attachment-18519\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18519 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Comprobamos-que-el-sitio-desplegado-es-accesible-a-traves-del-navegador.jpg?resize=800%2C453&amp;ssl=1\" alt=\"Image - Check that you can access your newly deployed site using your browser\" width=\"800\" height=\"453\"><figcaption id=\"caption-attachment-18519\" class=\"wp-caption-text\">Image &ndash; Check that you can access your newly deployed site using your browser<\/figcaption><\/figure>\n<\/p>\n<p>You now have a (very simple) functioning website that you can enhance with HTML, CSS, etc.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Starting and Stopping an IIS Site Using PowerShell Commands<\/strong><\/h3>\n<p>You can also use PowerShell commands to start and stop your IIS Site or query its status. For example, if you use the command &laquo;Stop-IISSite&raquo;, you will be asked to confirm which site to stop. If you use the command &laquo;Stop-IISite -Name &laquo;NachoTest&raquo;&raquo;, for example, explicitly stating the name of the site, you won&rsquo;t be asked for any further information.<\/p>\n<p>Similarly, if you run the command &laquo;Start-IISSite&raquo;, you will be asked to confirm the site to start, while entering &laquo;Start -IISSite -Name &laquo;NachoTest&raquo;&raquo; will start the site &laquo;NachoTest&raquo; without asking for more information.<\/p>\n<p>If you want to know the status of your site, you can use the command &laquo;Get-IISSite&raquo;. Once again, you can specify the site to query up front by using the command &laquo;Get-IISSite &ndash; Name &lsquo;&lt;Site_Name&gt;&#8217;&raquo;, changing &lt;Site_Name&gt; for the name of your IIS Site.<\/p>\n<p>You can also query a specific property of the site, such as the listening ports (bindings). To do this, run the following command:<\/p>\n<p>(Get-IISSite -Name &lsquo;NachoTest&rsquo;).Bindings<\/p>\n<p><figure id=\"attachment_18520\" aria-describedby=\"caption-attachment-18520\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18520 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Comprobamos-distintas-opciones-de-arranque-y-parada-del-sitio-que-hemos-creado.jpg?resize=800%2C453&amp;ssl=1\" alt=\"Image - Starting and stopping a recently deployed IIS Site\" width=\"800\" height=\"453\"><figcaption id=\"caption-attachment-18520\" class=\"wp-caption-text\">Image &ndash; Starting and stopping a recently deployed IIS Site<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Deleting an IIS Site Using PowerShell Commands<\/strong><\/h3>\n<p>The last operation we need to cover is deleting a site. To do this, use the command &laquo;Remove-IISSite&raquo;, adding the site name as parameter. When doing this, you actually have two options:<\/p>\n<p>First, you can run the following command, which will delete the site in question:<\/p>\n<p><em># Remove-IISSite -Name &lsquo;NachoTest&rsquo; <\/em><\/p>\n<p>Or, on the other hand, you can run the following command which will run a simulation of the command to check whether any problems could occur:<\/p>\n<p><em># Remove-IISSite -Name &lsquo;NachoTest&rsquo; -WhatIf<\/em><\/p>\n<p><figure id=\"attachment_18521\" aria-describedby=\"caption-attachment-18521\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18521 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Simulamos-la-eliminacion-de-un-sitio-mediante-el-uso-de-WhatIf.jpg?resize=800%2C453&amp;ssl=1\" alt='Image - Simulating the deletion of a site using the \"WhatIf\" command' width=\"800\" height=\"453\"><figcaption id=\"caption-attachment-18521\" class=\"wp-caption-text\">Image &ndash; Simulating the deletion of a site using the &laquo;WhatIf&raquo; command<\/figcaption><\/figure>\n<\/p>\n<p>That&rsquo;s it! These are the most basic things you can do with IIS and PowerShell, but we&rsquo;re sure to cover more tasks and commands in the future.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Summary<\/strong><\/h2>\n<p>In this article, we have looked at the <strong>PowerShell commands that you can use to deploy and manage an IIS Server <\/strong>on Windows Server 2022, though they&rsquo;re valid for other versions, such as Windows Server 2019 or Windows Server 2016. We&rsquo;ve also explained how you can use PowerShell commands to install IIS, deploy a new website, start and stop the service and even delete a site.<\/p>\n<p>If you&rsquo;d like to find out more about IIS, check out <a href=\"https:\/\/learn.microsoft.com\/es-es\/iis\/get-started\/introduction-to-iis\/introduction-to-iis-architecture\" target=\"_blank\" rel=\"noopener\">the Microsoft website<\/a>.<\/p>\n<p>If you have any problems managing your services, please, don&rsquo;t hesitate to get in touch. We&rsquo;ll always do our very best to help.<\/p>\n<p>Thanks for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this short article, we&rsquo;ll share some&nbsp;PowerShell commands that you can use to deploy and administrate your IIS server&nbsp;more efficiently. Having a&nbsp;web server to publish online content&nbsp;is one of the most basic requirements for almost any business, whether it&rsquo;s for marketing, online sales,&nbsp;internal documentation&nbsp;or some other kind of service. Not long ago, we published an [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":18523,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-49320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-y-sistemas"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PowerShell Commands For Deploying And Administrating An IIS Web Server - Jotelulu<\/title>\n<meta name=\"description\" content=\"In this short article, we&#039;ll share some\u00a0PowerShell commands that you can use to deploy and administrate your IIS server\u00a0more efficiently.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell Commands For Deploying And Administrating An IIS Web Server - Jotelulu\" \/>\n<meta property=\"og:description\" content=\"In this short article, we&#039;ll share some\u00a0PowerShell commands that you can use to deploy and administrate your IIS server\u00a0more efficiently.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Jotelulu\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-08T22:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-IIS-Server-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1196\" \/>\n\t<meta property=\"og:image:height\" content=\"723\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Juan Ignacio Oller Aznar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Juan Ignacio Oller Aznar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/\"},\"author\":{\"name\":\"Juan Ignacio Oller Aznar\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#\\\/schema\\\/person\\\/2ae97818cae086c48f108cd74234aca9\"},\"headline\":\"PowerShell Commands For Deploying And Administrating An IIS Web Server\",\"datePublished\":\"2023-05-08T22:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/\"},\"wordCount\":1660,\"image\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Comandos-de-Powershell-IIS-Server-1.jpg\",\"articleSection\":[\"Cloud y sistemas\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/\",\"url\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/\",\"name\":\"PowerShell Commands For Deploying And Administrating An IIS Web Server - Jotelulu\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Comandos-de-Powershell-IIS-Server-1.jpg\",\"datePublished\":\"2023-05-08T22:00:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#\\\/schema\\\/person\\\/2ae97818cae086c48f108cd74234aca9\"},\"description\":\"In this short article, we'll share some\u00a0PowerShell commands that you can use to deploy and administrate your IIS server\u00a0more efficiently.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Comandos-de-Powershell-IIS-Server-1.jpg\",\"contentUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Comandos-de-Powershell-IIS-Server-1.jpg\",\"width\":1196,\"height\":723,\"caption\":\"Comandos de Powershell IIS Server\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/powershell-commands-iis-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell Commands For Deploying And Administrating An IIS Web Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#website\",\"url\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/\",\"name\":\"Jotelulu\",\"description\":\"Cloud Paradise for Tech Companies\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#\\\/schema\\\/person\\\/2ae97818cae086c48f108cd74234aca9\",\"name\":\"Juan Ignacio Oller Aznar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g\",\"caption\":\"Juan Ignacio Oller Aznar\"},\"url\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/author\\\/juanignaciooller\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PowerShell Commands For Deploying And Administrating An IIS Web Server - Jotelulu","description":"In this short article, we'll share some\u00a0PowerShell commands that you can use to deploy and administrate your IIS server\u00a0more efficiently.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/","og_locale":"en_GB","og_type":"article","og_title":"PowerShell Commands For Deploying And Administrating An IIS Web Server - Jotelulu","og_description":"In this short article, we'll share some\u00a0PowerShell commands that you can use to deploy and administrate your IIS server\u00a0more efficiently.","og_url":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/","og_site_name":"Jotelulu","article_published_time":"2023-05-08T22:00:00+00:00","og_image":[{"width":1196,"height":723,"url":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-IIS-Server-1.jpg","type":"image\/jpeg"}],"author":"Juan Ignacio Oller Aznar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Juan Ignacio Oller Aznar","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/#article","isPartOf":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/"},"author":{"name":"Juan Ignacio Oller Aznar","@id":"https:\/\/jotelulu.com\/en-gb\/#\/schema\/person\/2ae97818cae086c48f108cd74234aca9"},"headline":"PowerShell Commands For Deploying And Administrating An IIS Web Server","datePublished":"2023-05-08T22:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/"},"wordCount":1660,"image":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/#primaryimage"},"thumbnailUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-IIS-Server-1.jpg","articleSection":["Cloud y sistemas"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/","url":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/","name":"PowerShell Commands For Deploying And Administrating An IIS Web Server - Jotelulu","isPartOf":{"@id":"https:\/\/jotelulu.com\/en-gb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/#primaryimage"},"image":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/#primaryimage"},"thumbnailUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-IIS-Server-1.jpg","datePublished":"2023-05-08T22:00:00+00:00","author":{"@id":"https:\/\/jotelulu.com\/en-gb\/#\/schema\/person\/2ae97818cae086c48f108cd74234aca9"},"description":"In this short article, we'll share some\u00a0PowerShell commands that you can use to deploy and administrate your IIS server\u00a0more efficiently.","breadcrumb":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/#primaryimage","url":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-IIS-Server-1.jpg","contentUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-IIS-Server-1.jpg","width":1196,"height":723,"caption":"Comandos de Powershell IIS Server"},{"@type":"BreadcrumbList","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-iis-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/jotelulu.com\/en-gb\/"},{"@type":"ListItem","position":2,"name":"PowerShell Commands For Deploying And Administrating An IIS Web Server"}]},{"@type":"WebSite","@id":"https:\/\/jotelulu.com\/en-gb\/#website","url":"https:\/\/jotelulu.com\/en-gb\/","name":"Jotelulu","description":"Cloud Paradise for Tech Companies","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jotelulu.com\/en-gb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/jotelulu.com\/en-gb\/#\/schema\/person\/2ae97818cae086c48f108cd74234aca9","name":"Juan Ignacio Oller Aznar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/87efd80399b2c40a1d78dd5cee4e788d3f6c29d33e3b67bcfbc6abbf91d0fdcf?s=96&d=mm&r=g","caption":"Juan Ignacio Oller Aznar"},"url":"https:\/\/jotelulu.com\/en-gb\/author\/juanignaciooller\/"}]}},"_links":{"self":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/posts\/49320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/comments?post=49320"}],"version-history":[{"count":0,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/posts\/49320\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/media\/18523"}],"wp:attachment":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/media?parent=49320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/categories?post=49320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/tags?post=49320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}