{"id":1055,"date":"2011-01-11T08:01:28","date_gmt":"2011-01-11T13:01:28","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/?p=1055"},"modified":"2011-01-11T08:02:24","modified_gmt":"2011-01-11T13:02:24","slug":"more-wmi-dates-win32product-installdate","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/","title":{"rendered":"More WMI Dates \u2013 Win32Product InstallDate"},"content":{"rendered":"<p>I've <a href=\"http:\/\/jdhitsolutions.com\/blog\/2009\/08\/friendly-wmi-dates\/\" target=\"_blank\">written in the past<\/a> about converting obtuse WMI datetime formats into more user friendly formats. The other day via Twitter I got a question about the InstallDate property that comes from the Win32_Product class. This property has a different format, than what I've written about previously. And while I think the format is easy to use as is, you may still want to convert it to a friendlier date time object.<!--more--><br \/>\nFirst off, here's an example of a Win32_Product object. I've already run a WMI query to return them all and saved the results to a variable, $data.<br \/>\n[cc lang=\"PowerShell\"]<br \/>\nPS S:\\> $data[10] | Select Name,Vendor,InstallDate,Version,InstallLocation<\/p>\n<p>Name            : Microsoft Office Office 32-bit Components 2010<br \/>\nVendor          : Microsoft Corporation<br \/>\nInstallDate     : 20101117<br \/>\nVersion         : 14.0.4763.1000<br \/>\nInstallLocation : C:\\Program Files\\Microsoft Office\\<br \/>\n[\/cc]<br \/>\nThe InstallDate is an 8 character string, that for US based systems is in the format YearMonthDay. I've found you can still use the property in a WMI Query. Suppose I want to find all products installed in the last quarter of 2010.<br \/>\n[cc lang=\"PowerShell\"]<br \/>\nget-wmiobject Win32_Product -filter \"installdate <= '20110101' AND installdate >= '20101001'\" -AsJob<br \/>\n[\/cc]<br \/>\nI find Win32_Product queries very slow so I almost always run them as jobs. But beyond that when I retrieve the results I in fact get only the products installed between Oct 1, 2010 and Dec 31, 2010.<\/p>\n<p>But, if you are preparing reports you may still want a nicer looking format so I threw together an advanced function that will parse the 8 character InstallDate string and return a date time object.<br \/>\n[cc lang=\"PowerShell\"]<br \/>\nFunction Convert-InstallDate {<\/p>\n<p>Param(<br \/>\n    [Parameter(Position=0,Mandatory=$True,ValueFromPipeline=$True,<br \/>\n    ValueFromPipelineByPropertyName=$True,<br \/>\n    HelpMessage=\"Enter a 8 character datetime string in the format YYYYMMDD\")]<br \/>\n    [ValidateLength(8,8)]<br \/>\n    [Alias(\"InstallDate\")]<br \/>\n    [string[]]$DateString<br \/>\n)<\/p>\n<p>    Process<br \/>\n    {<br \/>\n        Foreach ($string in $datestring)<br \/>\n        {<br \/>\n            Write-Verbose \"Parsing $string\"<br \/>\n            #parse date values from string<br \/>\n            $year=$string.Substring(0,4)<br \/>\n            $month=$string.Substring(4,2)<br \/>\n            $day=$string.Substring(6)<\/p>\n<p>            #build a datetime object<br \/>\n            Write-Verbose \"$month\/$day\/$year\"<br \/>\n            [datetime]$InstallDate=\"$month\/$day\/$year\"<\/p>\n<p>            #write the object to the pipeline<br \/>\n            Write-Output $InstallDate<br \/>\n        }<br \/>\n    }<br \/>\n} #end function<br \/>\n[\/cc]<br \/>\nYou can either give the function a value or pipe a Win32_Product object to it.<br \/>\n[cc lang=\"PowerShell\"]<br \/>\nPS S:\\> $data[10] | Convert-InstallDate<\/p>\n<p>Wednesday, November 17, 2010 12:00:00 AM<br \/>\n[\/cc]<br \/>\nWith this I can run an expression like this.<br \/>\n[cc lang=\"PowerShell\"]<br \/>\nPS S:\\> $data | select Name,@{Name=\"Installed\";Expression={$_ | Convert-InstallDate}} | sort Installed | Group Installed<br \/>\n| Sort Count -descending | Select -first 5 | Format-table Count,Name -autosize<\/p>\n<p>Count Name<br \/>\n----- ----<br \/>\n   19 5\/5\/2010 12:00:00 AM<br \/>\n   17 1\/20\/2010 12:00:00 AM<br \/>\n   16 5\/3\/2010 12:00:00 AM<br \/>\n   16 12\/1\/2010 12:00:00 AM<br \/>\n    7 4\/13\/2010 12:00:00 AM<br \/>\n[\/cc]<br \/>\nThese are the top 5 busiest installation days for 2010. I'm sure you have plenty of other uses for this function.<\/p>\n<p>Download <a href='http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/01\/Convert-InstallDate.txt'>Convert-InstallDate<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve written in the past about converting obtuse WMI datetime formats into more user friendly formats. The other day via Twitter I got a question about the InstallDate property that comes from the Win32_Product class. This property has a different format, than what I&#8217;ve written about previously. And while I think the format is easy&#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":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,75,8,19],"tags":[70,224,534,540,547],"class_list":["post-1055","post","type-post","status-publish","format-standard","hentry","category-powershell","category-powershell-v2-0","category-scripting","category-wmi","tag-datetime","tag-function","tag-powershell","tag-scripting","tag-wmi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>More WMI Dates \u2013 Win32Product InstallDate &#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\/1055\/more-wmi-dates-win32product-installdate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"More WMI Dates \u2013 Win32Product InstallDate &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"I&#039;ve written in the past about converting obtuse WMI datetime formats into more user friendly formats. The other day via Twitter I got a question about the InstallDate property that comes from the Win32_Product class. This property has a different format, than what I&#039;ve written about previously. And while I think the format is easy...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2011-01-11T13:01:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-01-11T13:02:24+00:00\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"More WMI Dates \u2013 Win32Product InstallDate\",\"datePublished\":\"2011-01-11T13:01:28+00:00\",\"dateModified\":\"2011-01-11T13:02:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/\"},\"wordCount\":430,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"keywords\":[\"DateTime\",\"Function\",\"PowerShell\",\"Scripting\",\"WMI\"],\"articleSection\":[\"PowerShell\",\"PowerShell v2.0\",\"Scripting\",\"WMI\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/\",\"name\":\"More WMI Dates \u2013 Win32Product InstallDate &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2011-01-11T13:01:28+00:00\",\"dateModified\":\"2011-01-11T13:02:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1055\\\/more-wmi-dates-win32product-installdate\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/powershell\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"More WMI Dates \u2013 Win32Product InstallDate\"}]},{\"@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":"More WMI Dates \u2013 Win32Product InstallDate &#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\/1055\/more-wmi-dates-win32product-installdate\/","og_locale":"en_US","og_type":"article","og_title":"More WMI Dates \u2013 Win32Product InstallDate &#8226; The Lonely Administrator","og_description":"I've written in the past about converting obtuse WMI datetime formats into more user friendly formats. The other day via Twitter I got a question about the InstallDate property that comes from the Win32_Product class. This property has a different format, than what I've written about previously. And while I think the format is easy...","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/","og_site_name":"The Lonely Administrator","article_published_time":"2011-01-11T13:01:28+00:00","article_modified_time":"2011-01-11T13:02:24+00:00","author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"More WMI Dates \u2013 Win32Product InstallDate","datePublished":"2011-01-11T13:01:28+00:00","dateModified":"2011-01-11T13:02:24+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/"},"wordCount":430,"commentCount":1,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"keywords":["DateTime","Function","PowerShell","Scripting","WMI"],"articleSection":["PowerShell","PowerShell v2.0","Scripting","WMI"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/","name":"More WMI Dates \u2013 Win32Product InstallDate &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"datePublished":"2011-01-11T13:01:28+00:00","dateModified":"2011-01-11T13:02:24+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1055\/more-wmi-dates-win32product-installdate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"PowerShell","item":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},{"@type":"ListItem","position":2,"name":"More WMI Dates \u2013 Win32Product InstallDate"}]},{"@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":1413,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1413\/get-registry-size-and-age\/","url_meta":{"origin":1055,"position":0},"title":"Get Registry Size and Age","author":"Jeffery Hicks","date":"May 4, 2011","format":false,"excerpt":"I'm not sure why the registry has been on my mind lately. I probably need a vacation to get out more. But I put together a relatively simple Windows PowerShell function to retrieve registry statistics that you might find useful. My Get-Registry function will return information about the size of\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/05\/registry.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":636,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/636\/select-wmi\/","url_meta":{"origin":1055,"position":1},"title":"Select WMI","author":"Jeffery Hicks","date":"May 13, 2010","format":false,"excerpt":"I\u2019ve been helping out on some WMI and PowerShell issues in the forums at ScriptingAnswers.com. As I was working on a problem I ended up taking a slight detour to address an issue that has always bugged me. When I run a command like this: get-wmiobject -query \"Select Name,Description,Disabled from\u2026","rel":"","context":"In &quot;PowerShell v2.0&quot;","block_context":{"text":"PowerShell v2.0","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell-v2-0\/"},"img":{"alt_text":"selectwmi","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2010\/05\/selectwmi-300x89.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":170,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/170\/friendly-wmi-dates\/","url_meta":{"origin":1055,"position":2},"title":"Friendly WMI Dates","author":"Jeffery Hicks","date":"August 5, 2009","format":false,"excerpt":"Gee..you think you know something only to find out you don\u2019t. Or maybe this falls into the category of teaching an old dog new tricks. When I first started using PowerShell several years ago, I learned about how to convert a WMI date to a more user friendly format...","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3555,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3555\/get-powershell-version-with-wmi\/","url_meta":{"origin":1055,"position":3},"title":"Get PowerShell Version with WMI","author":"Jeffery Hicks","date":"November 13, 2013","format":false,"excerpt":"With the release of PowerShell 4.0, it is possible you might end up with a mix of systems in your environment. I know I do because I do a lot of writing, testing and development that requires multiple versions in my test network. Recently I was doing some Group Policy\u2026","rel":"","context":"In &quot;Group Policy&quot;","block_context":{"text":"Group Policy","link":"https:\/\/jdhitsolutions.com\/blog\/category\/group-policy\/"},"img":{"alt_text":"get-wmipshell","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/11\/get-wmipshell-1024x244.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/11\/get-wmipshell-1024x244.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/11\/get-wmipshell-1024x244.png?resize=525%2C300 1.5x"},"classes":[]},{"id":2760,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/2760\/find-files-with-wmi-and-powershell\/","url_meta":{"origin":1055,"position":4},"title":"Find Files with WMI and PowerShell","author":"Jeffery Hicks","date":"January 29, 2013","format":false,"excerpt":"Finding files is one of those necessary evils for IT Pros. Sometimes we're searching for a needle in a haystack. And it gets even more complicated when the haystacks are on 10 or 100 or 1000 remote computers. You might think using Get-ChildItem is your only option. Certainly it works,\u2026","rel":"","context":"In &quot;Scripting&quot;","block_context":{"text":"Scripting","link":"https:\/\/jdhitsolutions.com\/blog\/category\/scripting\/"},"img":{"alt_text":"magnifying-glass-text-label-search","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/01\/magnifying-glass-text-label-search-150x150.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2657,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/2657\/hyper-v-id-hash-table\/","url_meta":{"origin":1055,"position":5},"title":"Hyper-V ID Hash Table","author":"Jeffery Hicks","date":"January 3, 2013","format":false,"excerpt":"In Hyper-V, one of the challenges (at least that I've run into) has to do with naming. In addition to a name, Hyper-V objects such as virtual machines, are identified with a GUID. Most of the VM-related PowerShell cmdlets will let you specify a virtual machine name. But sometimes you'll\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\/1055","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=1055"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1055\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}