{"id":4457,"date":"2015-07-20T10:56:15","date_gmt":"2015-07-20T14:56:15","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/?p=4457"},"modified":"2015-07-20T10:59:04","modified_gmt":"2015-07-20T14:59:04","slug":"creating-a-hyper-v-vm-memory-report","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/","title":{"rendered":"Creating a Hyper-V VM Memory Report"},"content":{"rendered":"<p>I use Hyper-V to run my lab environment. Since I work at home I don't have access to a \"real\" production network so I have to make do with a virtualized environment. Given budgetary constraints I also don't have a lot of high end hardware with endless amount of RAM and storage. So I often run my virtual machines with a bare minimum of memory. Most of the time this isn't a problem. Still, there are times when I need to quickly see how much memory I'm using up. I can use either the <a title=\"Read online help for Get-VMMemory\" href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=306858\" target=\"_blank\">Get-VMMemory<\/a> or <a title=\"Read online help for Get-VM\" href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=306845\" target=\"_blank\">Get-VM<\/a> cmdlet.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy1.png\" alt=\"\" \/><\/p>\n<p>The latter cmdlet includes a bit more detail.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy2.png\" alt=\"\" \/><\/p>\n<p>All of the values are in bytes which I know I could convert to MB with a custom hashtable. But I don't want to do that all the time so I created a command to get detailed virtual machine memory.<\/p>\n<pre class=\"lang:ps decode:true \" >#requires -version 4.0\r\n#requires -module Hyper-V\r\n\r\nFunction Get-VMMemoryReport {\r\n&lt;#\r\n.Synopsis\r\nGet a VM memory report.\r\n.Description\r\nThis command gets memory settings for a given Hyper-V virtual machine. All memory values are in MB. The Utilization value is the percentage of assigned memory is use or in demand.\r\n\r\nThe command requires the Hyper-V module and must be run in an elevated PowerShell session.\r\n.Parameter VMName\r\nThe name of the virtual machine or a Hyper-V virtual machine object. This parameter has an alias of \"Name.\" \r\n.Parameter VM\r\nA Hyper-V virtual machine object. See examples.\r\n.Parameter Low\r\nFilter out virtual machines without memory issues. Only get virtual machines with a Low memory status.\r\n.Parameter Computername\r\nThe name of the Hyper-V server to query. The default is the local host. The parameter has an alias of CN.\r\n.Example\r\nPS C:\\&gt; Get-VMMemoryReport chi-core01 -ComputerName chi-hvr2 \r\n\r\nComputername : CHI-HVR2\r\nName         : CHI-CORE01\r\nStatus       : Low\r\nDynamic      : True\r\nAssigned     : 514\r\nDemand       : 472\r\nUtilization  : 91.83\r\nStartup      : 512\r\nMinimum      : 512\r\nMaximum      : 1024\r\nBuffer       : 20\r\nPriority     : 50\r\n\r\n\r\nGet a memory report for a single virtual machine.\r\n.Example\r\nPS C:\\&gt; Get-VM -computer chi-hvr2 | where {$_.state -eq 'running'} | Get-VMMemoryReport | Sort Status,Name | Out-Gridview -title \"Memory Report\"\r\n\r\nDisplay a memory report for all running VMs using Out-Gridview.\r\n.Example\r\nPS C:\\&gt; get-vmmemoryreport -low -cn chi-hvr2 | format-table Name,Assigned,Demand,Utilization,Maximum\r\n\r\nName       Assigned Demand Utilization Maximum\r\n----       -------- ------ ----------- -------\r\nCHI-SQL01      2586   2534       97.99    4096\r\nCHI-FP02        846    812       95.98    2048\r\nCHI-CORE01      514    483       93.97    1024\r\n\r\nGet virtual machines with a low memory status.\r\n.Example\r\nPS C:\\&gt; get-content d:\\MyVMs.txt | get-vmmemoryreport | Export-CSV c:\\work\\VMMemReport.csv -notypeinformation\r\nGet virtual machine names from the text file MyVMs.txt and pipe them to Get-VMMemoryReport. The results are then exported to a CSV file.\r\n.Example\r\nPS C:\\&gt; get-vm -computer chi-hvr2 | get-vmmemoryreport | Sort Maximum | convertto-html -title \"VM Memory Report\" -css c:\\scripts\\blue.css -PreContent \"&lt;H2&gt;Hyper-V Memory Report&lt;\/H2&gt;\" -PostContent \"&lt;br&gt;An assigned value of 0 means the virtual machine is not running.\" | out-file c:\\work\\vmmemreport.htm\r\nGet a memory report for all virtual machines, sorted on the maximum memory property. This command then creates an HTML report.\r\n\r\n.Notes\r\nLast Updated: July 20, 2015\r\nVersion     : 3.0\r\n\r\n.Link\r\nGet-VM\r\nGet-VMMemory\r\n.Inputs\r\nString\r\nHyper-V virtual machine\r\n.Outputs\r\nCustom object\r\n#&gt;\r\n\r\n[cmdletbinding(DefaultParameterSetName=\"Name\")]\r\nParam(\r\n[Parameter(Position=0,HelpMessage=\"Enter the name of a virtual machine\",\r\nValueFromPipeline,ValueFromPipelineByPropertyName,\r\nParameterSetName=\"Name\")]\r\n[alias(\"Name\")]\r\n[ValidateNotNullorEmpty()]\r\n[string]$VMName=\"*\",\r\n\r\n[Parameter(Position=0,Mandatory,HelpMessage=\"Enter the name of a virtual machine\",\r\nValueFromPipeline,ValueFromPipelineByPropertyName,\r\nParameterSetName=\"VM\")]\r\n[ValidateNotNullorEmpty()]\r\n[Microsoft.HyperV.PowerShell.VirtualMachine[]]$VM,\r\n\r\n[switch]$Low,\r\n\r\n[ValidateNotNullorEmpty()]\r\n[Parameter(ValueFromPipelinebyPropertyName)]\r\n[ValidateNotNullorEmpty()]\r\n[Alias(\"CN\")]\r\n[string]$Computername=$env:COMPUTERNAME\r\n)\r\n\r\nBegin {\r\n    Write-Verbose \"Starting $($MyInvocation.Mycommand)\"  \r\n    #initialize an array to hold results\r\n    $data = @()\r\n} #begin\r\n\r\nProcess {\r\n\r\n    if ($PSCmdlet.ParameterSetName -eq \"Name\") {\r\n        Try {\r\n            $VMs = Get-VM -name $VMName -ComputerName $computername -ErrorAction Stop\r\n        }\r\n        Catch {\r\n            Write-Warning \"Failed to find VM $vmname on $computername\"\r\n            #bail out\r\n            Return\r\n        }\r\n    }\r\n    else {\r\n         $VMs = $VM\r\n    }\r\n\r\n    foreach ($V in $VMs) {\r\n    #get memory values\r\n    Try {\r\n        Write-Verbose \"Querying memory for $($v.name) on $($computername.ToUpper())\"\r\n        $memorysettings = Get-VMMemory -VMName $v.name  -ComputerName $Computername -ErrorAction Stop\r\n\r\n    if ($MemorySettings) {\r\n        #calculate memory utilization if VM is running\r\n        if ($v.State -eq 'running') {\r\n            #calculate % to 2 decimal points\r\n            $util = [math]::Round(($v.MemoryDemand\/$v.MemoryAssigned)*100,2)\r\n        }\r\n        else {\r\n            $util = 0\r\n        }    \r\n        #all values are in MB\r\n        $hash=[ordered]@{\r\n            Computername = $v.ComputerName.ToUpper()\r\n            Name = $V.Name\r\n            Status = $v.memoryStatus\r\n            Dynamic = $V.DynamicMemoryEnabled\r\n            Assigned = $V.MemoryAssigned\/1MB\r\n            Demand = $V.MemoryDemand\/1MB\r\n            Utilization = $util\r\n            Startup = $V.MemoryStartup\/1MB\r\n            Minimum = $V.MemoryMinimum\/1MB\r\n            Maximum = $V.MemoryMaximum\/1MB\r\n            Buffer =  $memorysettings.buffer\r\n            Priority = $memorysettings.priority\r\n        }\r\n    \r\n        #write the new object to the pipeline\r\n        $data+= New-Object -TypeName PSObject -Property $hash\r\n    } #if $memorySettings found\r\n    } #Try\r\n    Catch {\r\n        Throw $_\r\n    } #Catch\r\n    } #foreach $v in $VMs\r\n} #process\r\nEnd {\r\n    if ($Low) {\r\n        Write-Verbose \"Writing Low memory status objects to the pipeline\"\r\n        $data.where({$_.status -eq 'Low'})\r\n    }\r\n    else {\r\n        Write-Verbose \"Writing all objects to the pipeline\"\r\n        $data\r\n    }\r\n    Write-Verbose \"Ending $($MyInvocation.Mycommand)\"\r\n} #end\r\n} #end Get-VMMemoryReport\r\n\r\n#set an alias\r\nSet-Alias -name gvmr -Value Get-VMMemoryReport<\/pre>\n<p>I've posted versions of this function over the last few years so you may have come across earlier iterations. The major changes in this version is that I'm calculating a utilization percent of memory demand vs assigned. I also added a switch to only show virtual machines with a Low memory status, since often that's the most important thing I want to know.<\/p>\n<p>Now I can easily get information for a single VM<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy3.png\" alt=\"\" \/><\/p>\n<p>Or multiple:<\/p>\n<pre><code>Get-VMMemoryReport -Computername chi-hvr2 -low | out-gridview -title \"Low Memory\"<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy4.png\" alt=\"\" \/><\/p>\n<p>Clearly my SQL Server needs a little attention.<\/p>\n<p>I hope you'll try it out and let me know what you think.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use Hyper-V to run my lab environment. Since I work at home I don&#8217;t have access to a &#8220;real&#8221; production network so I have to make do with a virtualized environment. Given budgetary constraints I also don&#8217;t have a lot of high end hardware with endless amount of RAM and storage. So I often&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"New blogness: Creating a Hyper-V VM Memory Report with #PowerShell","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[401,4,8],"tags":[573,534,540],"class_list":["post-4457","post","type-post","status-publish","format-standard","hentry","category-hyper-v","category-powershell","category-scripting","tag-hyper-v","tag-powershell","tag-scripting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating a Hyper-V VM Memory Report &#8226; The Lonely Administrator<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a Hyper-V VM Memory Report &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"I use Hyper-V to run my lab environment. Since I work at home I don&#039;t have access to a &quot;real&quot; production network so I have to make do with a virtualized environment. Given budgetary constraints I also don&#039;t have a lot of high end hardware with endless amount of RAM and storage. So I often...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-20T14:56:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-20T14:59:04+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy1.png\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Creating a Hyper-V VM Memory Report\",\"datePublished\":\"2015-07-20T14:56:15+00:00\",\"dateModified\":\"2015-07-20T14:59:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/\"},\"wordCount\":257,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/072015_1456_CreatingaHy1.png\",\"keywords\":[\"Hyper-V\",\"PowerShell\",\"Scripting\"],\"articleSection\":[\"Hyper-V\",\"PowerShell\",\"Scripting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/\",\"name\":\"Creating a Hyper-V VM Memory Report &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/072015_1456_CreatingaHy1.png\",\"datePublished\":\"2015-07-20T14:56:15+00:00\",\"dateModified\":\"2015-07-20T14:59:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/072015_1456_CreatingaHy1.png\",\"contentUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/072015_1456_CreatingaHy1.png\",\"width\":690,\"height\":226},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/4457\\\/creating-a-hyper-v-vm-memory-report\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hyper-V\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/hyper-v\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a Hyper-V VM Memory Report\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a Hyper-V VM Memory Report &#8226; The Lonely Administrator","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:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/","og_locale":"en_US","og_type":"article","og_title":"Creating a Hyper-V VM Memory Report &#8226; The Lonely Administrator","og_description":"I use Hyper-V to run my lab environment. Since I work at home I don't have access to a \"real\" production network so I have to make do with a virtualized environment. Given budgetary constraints I also don't have a lot of high end hardware with endless amount of RAM and storage. So I often...","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/","og_site_name":"The Lonely Administrator","article_published_time":"2015-07-20T14:56:15+00:00","article_modified_time":"2015-07-20T14:59:04+00:00","og_image":[{"url":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy1.png","type":"","width":"","height":""}],"author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Creating a Hyper-V VM Memory Report","datePublished":"2015-07-20T14:56:15+00:00","dateModified":"2015-07-20T14:59:04+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/"},"wordCount":257,"commentCount":0,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/#primaryimage"},"thumbnailUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy1.png","keywords":["Hyper-V","PowerShell","Scripting"],"articleSection":["Hyper-V","PowerShell","Scripting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/","name":"Creating a Hyper-V VM Memory Report &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/#primaryimage"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/#primaryimage"},"thumbnailUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy1.png","datePublished":"2015-07-20T14:56:15+00:00","dateModified":"2015-07-20T14:59:04+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/#primaryimage","url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy1.png","contentUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/07\/072015_1456_CreatingaHy1.png","width":690,"height":226},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4457\/creating-a-hyper-v-vm-memory-report\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hyper-V","item":"https:\/\/jdhitsolutions.com\/blog\/category\/hyper-v\/"},{"@type":"ListItem","position":2,"name":"Creating a Hyper-V VM Memory Report"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2546,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/2546\/powershell-hyper-v-memory-report\/","url_meta":{"origin":4457,"position":0},"title":"PowerShell Hyper-V Memory Report","author":"Jeffery Hicks","date":"November 1, 2012","format":false,"excerpt":"Since moving to Windows 8, I've continued exploring all the possibilities around Hyper-V on the client, especially using PowerShell. Because I'm trying to run as many virtual machines on my laptop as I can, memory considerations are paramount as I only have 8GB to work with. Actually less since I\u2026","rel":"","context":"In &quot;Hyper-V&quot;","block_context":{"text":"Hyper-V","link":"https:\/\/jdhitsolutions.com\/blog\/category\/hyper-v\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2012\/11\/happyreport-150x150.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4547,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4547\/hyper-v-memory-utilization-with-powershell\/","url_meta":{"origin":4457,"position":1},"title":"Hyper-V Memory Utilization with PowerShell","author":"Jeffery Hicks","date":"October 6, 2015","format":false,"excerpt":"I really push the limits of my Hyper-V setup. I know I am constrained by memory and am hoping to expand my network before the end of the year. But in the meantime I have to keep close tabs on memory. I thought I'd share a few commands with you.\u2026","rel":"","context":"In &quot;Hyper-V&quot;","block_context":{"text":"Hyper-V","link":"https:\/\/jdhitsolutions.com\/blog\/category\/hyper-v\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2491,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/2491\/hyper-v-vhd-summary\/","url_meta":{"origin":4457,"position":2},"title":"Hyper-V VHD Summary","author":"Jeffery Hicks","date":"September 14, 2012","format":false,"excerpt":"When I made the move to Windows 8, one of my tasks was to migrate my test environment from VirtualBox to Hyper-V. Windows 8 includes a client Hyper-V feature that is easy to use and includes PowerShell support. Plus I needed to expand my Hyper-V skills anyway, especially from the\u2026","rel":"","context":"In &quot;Hyper-V&quot;","block_context":{"text":"Hyper-V","link":"https:\/\/jdhitsolutions.com\/blog\/category\/hyper-v\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2012\/04\/computereye-150x150.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4432,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4432\/vmdk-to-vhdx-pdq\/","url_meta":{"origin":4457,"position":3},"title":"VMDK to VHDX PDQ","author":"Jeffery Hicks","date":"June 26, 2015","format":false,"excerpt":"I have a very old VMware ESXi server that has outlived its useful life. The hardware is at least 5 years old and my VMware license has expired. I can still bring up the server and see the virtual machines, but that's about it. I still keep the box so\u2026","rel":"","context":"In &quot;Hyper-V&quot;","block_context":{"text":"Hyper-V","link":"https:\/\/jdhitsolutions.com\/blog\/category\/hyper-v\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4685,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4685\/adding-some-power-to-hyper-v-vm-notes\/","url_meta":{"origin":4457,"position":4},"title":"Adding Some Power to Hyper-V VM Notes","author":"Jeffery Hicks","date":"December 15, 2015","format":false,"excerpt":"I use they Hyper-V virtual machine note to store system information. Here's how I get it and set with PowerShell.","rel":"","context":"In &quot;Hyper-V&quot;","block_context":{"text":"Hyper-V","link":"https:\/\/jdhitsolutions.com\/blog\/category\/hyper-v\/"},"img":{"alt_text":"System Information","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/12\/image_thumb-1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/12\/image_thumb-1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/12\/image_thumb-1.png?resize=525%2C300 1.5x"},"classes":[]},{"id":3371,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell-3-0\/3371\/hyper-v-waiting-to-merge\/","url_meta":{"origin":4457,"position":5},"title":"Hyper-V Waiting to Merge","author":"Jeffery Hicks","date":"August 28, 2013","format":false,"excerpt":"In my Hyper-V environment I have a test domain which I use for pretty much all of my training, writing and video work. As part of my \"belt and suspenders\" approach, I periodically take a snapshot of all the virtual machines using the theory that if I had to, I\u2026","rel":"","context":"In &quot;Hyper-V&quot;","block_context":{"text":"Hyper-V","link":"https:\/\/jdhitsolutions.com\/blog\/category\/hyper-v\/"},"img":{"alt_text":"Microsoft Hyper-V","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/01\/hyperv.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=4457"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4457\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}