{"id":5881,"date":"2016-08-16T13:25:48","date_gmt":"2016-08-16T13:25:48","guid":{"rendered":"https:\/\/bodhost.com\/kb\/?p=5881"},"modified":"2026-02-26T14:03:11","modified_gmt":"2026-02-26T14:03:11","slug":"hyper-v-and-powershell","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/","title":{"rendered":"4 Steps to Get IP Addresses of all VMs in Hyper-V"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">In this short &amp; sweet tutorial, we will try to make our system admin&#8217;s job easier to manage the Hyper-V platform, at least I hope. Whether for export, to find who owns an IP address, or to find an available IP address, etc. You may need to know quickly what the IP addresses used by your VM on a Hyper-V host.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For this, we will rely on the Hyper-V module for PowerShell and specifically the Get-VM cmdlets.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><span style=\"color: #000000;\"><strong>So let\u2019s see how to get VM IP with PowerShell<\/strong><\/span><\/h4>\r\n\r\n\r\n\r\n<ol>\r\n<li>Open a PowerShell console (run as administrator) and enter the following command:\r\n<pre>Get-VM | Get-Member<\/pre>\r\n<\/li>\r\n<li>The widespread property of \u201cNetworkAdapters\u201d benefits us, so we will select:\r\n<pre>Get-VM | Select-Object NetworkAdapters<\/pre>\r\n<\/li>\r\n<li>Again if we remade a Get-Member about this command, you will get a number of important sub-properties, we will select a few:\r\n<pre>Get-VM | Select-Object NetworkAdapters | Select-Object VMName, IPAddresses, switchName<\/pre>\r\n<\/li>\r\n<li>These properties show the mane of the VM respectively, its IP addresses (IPv4 and IPv6), and the name of the vSwitch on which the VM is connected. An equivalent alternative and order can be:\r\n<pre>Get-VM | Get-VMNetworkAdapter | ft VMName, IPAddresses, switchName<\/pre>\r\n<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">These methods are based on cross-examination of integrated services installed in your VMs. Either a VM Windows or Linux, the result should be returned. By cons, if the virtual machine is not turned on, you cannot obtain the IP address. Do you know another command? If so kindly share it with us!<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this short &amp; sweet tutorial, we will try to make our system admin&#8217;s job easier to manage the Hyper-V platform, at least I hope. Whether for export, to find&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[297],"tags":[789],"class_list":["post-5881","post","type-post","status-publish","format-standard","hentry","category-faq","tag-hyper-v-and-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>4 Steps to Get IP Addresses of all VMs in Hyper-V<\/title>\n<meta name=\"description\" content=\"Discover how to get the IP addresses of all virtual machines in Hyper-V with just 4 simple steps. Streamline your network management today!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"4 Steps to Get IP Addresses of all VMs in Hyper-V\" \/>\n<meta property=\"og:description\" content=\"Discover how to get the IP addresses of all virtual machines in Hyper-V with just 4 simple steps. Streamline your network management today!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-16T13:25:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:03:11+00:00\" \/>\n<meta name=\"author\" content=\"Stanley Poter\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stanley Poter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/hyper-v-and-powershell\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/hyper-v-and-powershell\\\/\"},\"author\":{\"name\":\"Stanley Poter\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/09d74a6c8cc87831c7722d3c5006a7b2\"},\"headline\":\"4 Steps to Get IP Addresses of all VMs in Hyper-V\",\"datePublished\":\"2016-08-16T13:25:48+00:00\",\"dateModified\":\"2026-02-26T14:03:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/hyper-v-and-powershell\\\/\"},\"wordCount\":230,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"Hyper-V and PowerShell\"],\"articleSection\":[\"FAQs\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/hyper-v-and-powershell\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/hyper-v-and-powershell\\\/\",\"name\":\"4 Steps to Get IP Addresses of all VMs in Hyper-V\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2016-08-16T13:25:48+00:00\",\"dateModified\":\"2026-02-26T14:03:11+00:00\",\"description\":\"Discover how to get the IP addresses of all virtual machines in Hyper-V with just 4 simple steps. Streamline your network management today!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/hyper-v-and-powershell\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/hyper-v-and-powershell\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/hyper-v-and-powershell\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"FAQs\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/faq\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"4 Steps to Get IP Addresses of all VMs in Hyper-V\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/09d74a6c8cc87831c7722d3c5006a7b2\",\"name\":\"Stanley Poter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/054b9fa5e2ef6d163cd09392387bc6d5e3b785360d8f7b3625791850670fc434?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/054b9fa5e2ef6d163cd09392387bc6d5e3b785360d8f7b3625791850670fc434?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/054b9fa5e2ef6d163cd09392387bc6d5e3b785360d8f7b3625791850670fc434?s=96&d=mm&r=g\",\"caption\":\"Stanley Poter\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/stanleypoter\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"4 Steps to Get IP Addresses of all VMs in Hyper-V","description":"Discover how to get the IP addresses of all virtual machines in Hyper-V with just 4 simple steps. Streamline your network management today!","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:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/","og_locale":"en_US","og_type":"article","og_title":"4 Steps to Get IP Addresses of all VMs in Hyper-V","og_description":"Discover how to get the IP addresses of all virtual machines in Hyper-V with just 4 simple steps. Streamline your network management today!","og_url":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2016-08-16T13:25:48+00:00","article_modified_time":"2026-02-26T14:03:11+00:00","author":"Stanley Poter","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stanley Poter","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/"},"author":{"name":"Stanley Poter","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/09d74a6c8cc87831c7722d3c5006a7b2"},"headline":"4 Steps to Get IP Addresses of all VMs in Hyper-V","datePublished":"2016-08-16T13:25:48+00:00","dateModified":"2026-02-26T14:03:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/"},"wordCount":230,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["Hyper-V and PowerShell"],"articleSection":["FAQs"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/","url":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/","name":"4 Steps to Get IP Addresses of all VMs in Hyper-V","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2016-08-16T13:25:48+00:00","dateModified":"2026-02-26T14:03:11+00:00","description":"Discover how to get the IP addresses of all virtual machines in Hyper-V with just 4 simple steps. Streamline your network management today!","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/hyper-v-and-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"FAQs","item":"https:\/\/www.bodhost.com\/kb\/category\/faq\/"},{"@type":"ListItem","position":2,"name":"4 Steps to Get IP Addresses of all VMs in Hyper-V"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/09d74a6c8cc87831c7722d3c5006a7b2","name":"Stanley Poter","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/054b9fa5e2ef6d163cd09392387bc6d5e3b785360d8f7b3625791850670fc434?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/054b9fa5e2ef6d163cd09392387bc6d5e3b785360d8f7b3625791850670fc434?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054b9fa5e2ef6d163cd09392387bc6d5e3b785360d8f7b3625791850670fc434?s=96&d=mm&r=g","caption":"Stanley Poter"},"url":"https:\/\/www.bodhost.com\/kb\/author\/stanleypoter\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/5881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=5881"}],"version-history":[{"count":5,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/5881\/revisions"}],"predecessor-version":[{"id":12052,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/5881\/revisions\/12052"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=5881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=5881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=5881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}