{"id":49344,"date":"2023-05-29T00:00:00","date_gmt":"2023-05-28T22:00:00","guid":{"rendered":"https:\/\/jotelulu.com\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/"},"modified":"2023-05-29T00:00:00","modified_gmt":"2023-05-28T22:00:00","slug":"how-to-create-a-hyper-v-vm-using-powershell","status":"publish","type":"post","link":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/","title":{"rendered":"How to Create a Hyper-V VM Using PowerShell"},"content":{"rendered":"<p>In this article, we&rsquo;ll explain&nbsp;<strong>how to <\/strong><strong>create a Hyper-V VM<\/strong> quickly and easily using<strong> PowerShell&nbsp;<\/strong><\/p>\n<p><strong>Deploying&nbsp;<\/strong>new servers or creating&nbsp;<strong>virtual machines&nbsp;<\/strong>(VMs) can be quite <strong>a boring task<\/strong>, particularly if you have deploy multiple servers that are largely similar or all the same.<\/p>\n<p>That&rsquo;s why we&rsquo;ve written this article to show you&nbsp;<strong>how you can use&nbsp;<\/strong><strong>PowerShell&nbsp;<\/strong>to&nbsp;<strong>deploy your VMs&nbsp;<\/strong>with a few simple&nbsp;<strong>commands<\/strong>. You can also <strong>use these commands to create scripts <\/strong>so you can automate the process in the future.<\/p>\n<p>&nbsp;<\/p>\n<h1><strong>How to Create a Hyper-V VM Using PowerShell<\/strong><\/h1>\n<h3><strong>Basic PowerShell Commands for Creating a VM<\/strong><\/h3>\n<p>PowerShell offers countless commands for use with multiple processes and services, and that includes Hyper-V! Even though most processes and services have a graphic interface, PowerShell can really speed things up to make life easier for sysadmins.<\/p>\n<p><strong>NOTE:<\/strong> <em>In the summary at the end, we&rsquo;ve included some links to other articles about Hyper-V and PowerShell in case you&rsquo;re interested in learning more.<\/em><\/p>\n<p>In this case, since we&rsquo;re talking about&nbsp;<strong>creating a new Hyper-V VM<\/strong>, we&rsquo;ll start with the&nbsp;<strong>&laquo;New-VM&raquo; command<\/strong>. This command has quite a rich syntax and there are many different available parameters:<\/p>\n<p><em>New-VM<br \/>\n[[-Name] &lt;String&gt;]<br \/>\n[[-MemoryStartupBytes] &lt;Int64&gt;]<br \/>\n[-BootDevice &lt;BootDevice&gt;]<br \/>\n[-SwitchName &lt;String&gt;]<br \/>\n-NewVHDPath &lt;String&gt;<br \/>\n-NewVHDSizeBytes &lt;UInt64&gt;<br \/>\n[-Path &lt;String&gt;]<br \/>\n[-Version &lt;Version&gt;]<br \/>\n[-Prerelease]<br \/>\n[-Experimental]<br \/>\n[[-Generation] &lt;Int16&gt;]<br \/>\n[-Force]<br \/>\n[-AsJob]<br \/>\n[-CimSession &lt;CimSession[]&gt;]<br \/>\n[-ComputerName &lt;String[]&gt;]<br \/>\n[-Credential &lt;PSCredential[]&gt;]<br \/>\n[-WhatIf]<br \/>\n[-Confirm]<br \/>\n[&lt;CommonParameters&gt;]<br \/>\n&hellip;<\/em><\/p>\n<p>Don&rsquo;t worry, we&rsquo;re not going to look at everything here. We&rsquo;re going to keep things simple and have a look at a few of these parameters, as well as show you some examples.<\/p>\n<p>However, before we do anything else, as we&nbsp;<a href=\"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-hyper-v\/\" target=\"_blank\" rel=\"noopener\">mentioned in a previous article<\/a>, it&rsquo;s important to first make sure that&nbsp;<strong>all the PowerShell help files are up to date<\/strong>. You can do this using the&nbsp;<strong>&laquo;Update-Help&raquo; command<\/strong>. Once updated, if you need more information about any of the available commands, you can simply <strong>run the command &laquo;Get-Help &lt;PowerShell_Command&gt;&raquo;<\/strong>.<\/p>\n<p><figure id=\"attachment_18641\" aria-describedby=\"caption-attachment-18641\" style=\"width: 1937px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18641 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Actualizacion-de-la-ayuda-de-PowerShell-con-el-comando-Update-Help.jpg?resize=800%2C428&amp;ssl=1\" alt=\"Image - Updating PowerShell help files using the Update-Help command\" width=\"800\" height=\"428\"><figcaption id=\"caption-attachment-18641\" class=\"wp-caption-text\">Image &ndash; Updating PowerShell help files using the Update-Help command<\/figcaption><\/figure>\n<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Creating a Hyper-V Virtual Machine<\/strong><\/h3>\n<p>As with anything else in life, it&rsquo;s best to start with the simple things first. So, we&rsquo;ll first create a <strong>VM assigning just a name and allocating the startup memory<\/strong>.<\/p>\n<p><em># New-VM -Name &laquo;&lt;Name&gt;&raquo; -MemoryStartupBytes &lt;RAM&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>&lt;Name&gt;<\/strong>: is the <strong>name of the VM<\/strong>.<\/li>\n<li><strong>&lt;RAM&gt;<\/strong>: is the amount of <strong>startup memory <\/strong>you want to allocate this. You can express this in bytes, KB, MB or GB, but as you might have suspected, doing it in&nbsp;<strong>GB&nbsp;<\/strong>keeps things simple.<\/li>\n<\/ul>\n<p>Here&rsquo;s an example:<\/p>\n<p><em># New-VM -Name &laquo;VMTests1&raquo; -MemoryStartupBytes 1GB<\/em><\/p>\n<p><figure id=\"attachment_18703\" aria-describedby=\"caption-attachment-18703\" style=\"width: 1930px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18703 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Ejemplo-de-comandos-de-PowerShell-para-el-despliegue-de-una-VM-mas-o-menos-sencilla.jpg?resize=800%2C427&amp;ssl=1\" alt=\"Image - PowerShell command to deploy a simple VM\" width=\"800\" height=\"427\"><figcaption id=\"caption-attachment-18703\" class=\"wp-caption-text\">Image &ndash; PowerShell command to deploy a simple VM<\/figcaption><\/figure>\n<\/p>\n<p><strong>NOTE:<\/strong> <em>You should always assign a name to your VMs and make sure that it makes sense to you in the future. It&rsquo;s also important not to rename your VMs all the time as the name will be used to generate the names of VHDs, etc.<\/em><\/p>\n<p>With this command, you can create a VM, but it won&rsquo;t be running or have anything installed. It also won&rsquo;t have disks, network configurations, etc. However, this command can be useful for&nbsp;<strong>deploying VMs en masse&nbsp;<\/strong>to then make changes to them later.<\/p>\n<p>Let&rsquo;s look at some of the other parameters.<\/p>\n<p>Here, we&rsquo;re going to specify the <strong>name<\/strong>,&nbsp;<strong>amount of memory<\/strong>,&nbsp;<strong>hard disk size<\/strong>, <strong>VM location&nbsp;<\/strong>and the&nbsp;<strong>location of the<\/strong> <strong>virtual hard drive&nbsp;<\/strong>(VHD\/VHDX). To do this, we&rsquo;ll use the following command:<\/p>\n<p><em># New-VM -Name &laquo;&lt;Name&gt;&raquo; -MemoryStartupBytes &lt;RAM&gt; -Path &lt;VM_Location&gt; -NewVHDPath &lt;Disk_Location&gt; -NewVHDSizeBytes &lt;Disk_Size&gt;<\/em><\/p>\n<p>Where:<\/p>\n<ul>\n<li><strong>&lt;Name&gt;<\/strong>: is the name of the VM.<\/li>\n<li><strong>&lt;RAM&gt;<\/strong>: is the amount of memory in GB.<\/li>\n<li><strong>&lt;VM_Location&gt;<\/strong>: is where the VM is located.<\/li>\n<li><strong>&lt;Disk_Location&gt;<\/strong>: is where the disk is located, normally a level below the VM.<\/li>\n<li><strong>&lt;Disk_Size&gt;<\/strong>: is the size of the hard disk in GB.<\/li>\n<\/ul>\n<p>And if we take our previous example and add these parameters, it would look like this:<\/p>\n<p><em># New-VM -Name &laquo;&lt;Name&gt;&raquo; -MemoryStartupBytes &lt;RAM&gt; -Path &lt;VM_Location&gt; &nbsp;-NewVHDPath &lsquo;c:vhdbase.vhdx&rsquo; -NewVHDSizeBytes 40GB<\/em><\/p>\n<p><figure id=\"attachment_18704\" aria-describedby=\"caption-attachment-18704\" style=\"width: 1930px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18704 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Ejemplo-de-one-line-de-PowerShell-para-la-provision-de-una-VM.jpg?resize=800%2C427&amp;ssl=1\" alt=\"Image - Single command to deploy a new VM\" width=\"800\" height=\"427\"><figcaption id=\"caption-attachment-18704\" class=\"wp-caption-text\">Image &ndash; Single command to deploy a new VM<\/figcaption><\/figure>\n<\/p>\n<p>We can also add other parameters, including:<\/p>\n<ul>\n<li><strong>Generation &lt;Generation_Number&gt;<\/strong>: is the VM generation, 1 or 2.<\/li>\n<li><strong>BootDevice &lt;Boot_Device&gt;<\/strong>: is the device that will boot the VM.<\/li>\n<li><strong>SwitchName &lt;Virtual_Switch_Name&gt;<\/strong>: is the virtual network device that the VM will use.<\/li>\n<\/ul>\n<p><figure id=\"attachment_18704\" aria-describedby=\"caption-attachment-18704\" style=\"width: 1930px\" class=\"wp-caption alignnone\"><img decoding=\"async\" data-recalc-dims=\"1\" loading=\"lazy\" class=\"wp-image-18704 size-full\" src=\"https:\/\/i0.wp.com\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Imagen.-Ejemplo-de-one-line-de-PowerShell-para-la-provision-de-una-VM.jpg?resize=800%2C427&amp;ssl=1\" alt=\"Image - Single PowerShell command to deploy a new VM\" width=\"800\" height=\"427\"><figcaption id=\"caption-attachment-18704\" class=\"wp-caption-text\">Image &ndash; Single PowerShell command to deploy a new VM<\/figcaption><\/figure>\n<\/p>\n<p>These are the most basic commands for creating a VM in Hyper-V. And with these commands, you can easily create a script for deploying multiple VMs at once. But that will have to wait for a future article&hellip;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Summary<\/strong><\/h2>\n<p>As you can see,&nbsp;<strong>creating a Hyper-V VM with PowerShell&nbsp;<\/strong>is really a very efficient way of deploying your virtualised infrastructure, especially if you have to create multiple similar machines at once. Using PowerShell is not only more convenient; it&rsquo;ll save you a lot of time too.<\/p>\n<p>Of course, you can perform this task using the Hyper-V graphic interface, but once you learn the commands, PowerShell is certainly quicker. It might seem daunting at first, but we can assure you, the learning curve is really very smooth and definitely worth the time and effort.<\/p>\n<p>If you&rsquo;re interested in learning more about Hyper-V or PowerShell, check out our articles <a href=\"https:\/\/jotelulu.com\/en-gb\/support\/tutorials\/how-to-install-hyper-v-on-windows-10\/\" target=\"_blank\" rel=\"noopener\">How to Install Hyper-V on Windows 10<\/a> or <a href=\"https:\/\/jotelulu.com\/en-gb\/blog\/powershell-commands-hyper-v\/\" target=\"_blank\" rel=\"noopener\">PowerShell Commands for Hyper-V<\/a>, where you&rsquo;ll find more commands you can use to make life easier. We&rsquo;ve also written another article on how to <a href=\"https:\/\/jotelulu.com\/en-gb\/blog\/uso-de-powershell-para-la-gestion-de-puntos-de-control-en-hyper-v\/\" target=\"_blank\" rel=\"noopener\">Use PowerShell to Manage Hyper-V Checkpoints<\/a>.<\/p>\n<p>In fact, we&rsquo;ve got a range of articles and tutorials on <a href=\"https:\/\/jotelulu.com\/en-gb?s=hyper-v\" target=\"_blank\" rel=\"noopener\">Hyper-V<\/a> that you can find on our blog.<\/p>\n<p>Thanks for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we&rsquo;ll explain&nbsp;how to create a Hyper-V VM quickly and easily using PowerShell&nbsp; Deploying&nbsp;new servers or creating&nbsp;virtual machines&nbsp;(VMs) can be quite a boring task, particularly if you have deploy multiple servers that are largely similar or all the same. That&rsquo;s why we&rsquo;ve written this article to show you&nbsp;how you can use&nbsp;PowerShell&nbsp;to&nbsp;deploy your VMs&nbsp;with [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":18711,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-49344","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>How to Create a Hyper-V VM Using PowerShell - Jotelulu<\/title>\n<meta name=\"description\" content=\"In this article, we&#039;ll explain\u00a0how you can create a Hyper-V VM quickly and easily using PowerShell commands\" \/>\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\/how-to-create-a-hyper-v-vm-using-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Hyper-V VM Using PowerShell - Jotelulu\" \/>\n<meta property=\"og:description\" content=\"In this article, we&#039;ll explain\u00a0how you can create a Hyper-V VM quickly and easily using PowerShell commands\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Jotelulu\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-28T22:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1548\" \/>\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=\"5 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\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/\"},\"author\":{\"name\":\"Juan Ignacio Oller Aznar\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#\\\/schema\\\/person\\\/2ae97818cae086c48f108cd74234aca9\"},\"headline\":\"How to Create a Hyper-V VM Using PowerShell\",\"datePublished\":\"2023-05-28T22:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/\"},\"wordCount\":1092,\"image\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg\",\"articleSection\":[\"Cloud y sistemas\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/\",\"url\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/\",\"name\":\"How to Create a Hyper-V VM Using PowerShell - Jotelulu\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg\",\"datePublished\":\"2023-05-28T22:00:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/#\\\/schema\\\/person\\\/2ae97818cae086c48f108cd74234aca9\"},\"description\":\"In this article, we'll explain\u00a0how you can create a Hyper-V VM quickly and easily using PowerShell commands\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg\",\"contentUrl\":\"https:\\\/\\\/jotelulu.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg\",\"width\":2560,\"height\":1548,\"caption\":\"Comandos de Powershell Hyper-V VM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/blog\\\/how-to-create-a-hyper-v-vm-using-powershell\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/jotelulu.com\\\/en-gb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create a Hyper-V VM Using PowerShell\"}]},{\"@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":"How to Create a Hyper-V VM Using PowerShell - Jotelulu","description":"In this article, we'll explain\u00a0how you can create a Hyper-V VM quickly and easily using PowerShell commands","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\/how-to-create-a-hyper-v-vm-using-powershell\/","og_locale":"en_GB","og_type":"article","og_title":"How to Create a Hyper-V VM Using PowerShell - Jotelulu","og_description":"In this article, we'll explain\u00a0how you can create a Hyper-V VM quickly and easily using PowerShell commands","og_url":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/","og_site_name":"Jotelulu","article_published_time":"2023-05-28T22:00:00+00:00","og_image":[{"width":2560,"height":1548,"url":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/#article","isPartOf":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/"},"author":{"name":"Juan Ignacio Oller Aznar","@id":"https:\/\/jotelulu.com\/en-gb\/#\/schema\/person\/2ae97818cae086c48f108cd74234aca9"},"headline":"How to Create a Hyper-V VM Using PowerShell","datePublished":"2023-05-28T22:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/"},"wordCount":1092,"image":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg","articleSection":["Cloud y sistemas"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/","url":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/","name":"How to Create a Hyper-V VM Using PowerShell - Jotelulu","isPartOf":{"@id":"https:\/\/jotelulu.com\/en-gb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/#primaryimage"},"image":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg","datePublished":"2023-05-28T22:00:00+00:00","author":{"@id":"https:\/\/jotelulu.com\/en-gb\/#\/schema\/person\/2ae97818cae086c48f108cd74234aca9"},"description":"In this article, we'll explain\u00a0how you can create a Hyper-V VM quickly and easily using PowerShell commands","breadcrumb":{"@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/#primaryimage","url":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg","contentUrl":"https:\/\/jotelulu.com\/wp-content\/uploads\/2023\/05\/Comandos-de-Powershell-Hyper-V-VM-scaled-2.jpg","width":2560,"height":1548,"caption":"Comandos de Powershell Hyper-V VM"},{"@type":"BreadcrumbList","@id":"https:\/\/jotelulu.com\/en-gb\/blog\/how-to-create-a-hyper-v-vm-using-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/jotelulu.com\/en-gb\/"},{"@type":"ListItem","position":2,"name":"How to Create a Hyper-V VM Using PowerShell"}]},{"@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\/49344","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=49344"}],"version-history":[{"count":0,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/posts\/49344\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/media\/18711"}],"wp:attachment":[{"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/media?parent=49344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/categories?post=49344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jotelulu.com\/en-gb\/wp-json\/wp\/v2\/tags?post=49344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}