{"id":8122,"date":"2021-02-03T14:25:47","date_gmt":"2021-02-03T19:25:47","guid":{"rendered":"https:\/\/jdhitsolutions.com\/blog\/?p=8122"},"modified":"2021-02-04T11:25:29","modified_gmt":"2021-02-04T16:25:29","slug":"my-powershell-word-count-solution","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/","title":{"rendered":"My PowerShell Word Count Solution"},"content":{"rendered":"\n<p>A few days ago<a href=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/8107\/scripting-challenge-meetup\/\" target=\"_blank\" rel=\"noreferrer noopener\"> I posted a quick PowerShell puzzle<\/a> as part of an appearance announcement.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Using the <strong>about_Splatting <\/strong>help file, what word is used the most frequently? If you can show the top 5 even better. Ideally, your code will treat words like \u201cfor,\u201d and \u201cfor\u201d as the same. For extra points, create a simple custom object that shows the help topic name, the total number of words, \u201c,\u201d is not a word, the top word and the top word count. Also, try to skip \u201cthe\u201d which is almost always a common word.<\/p><\/blockquote>\n\n\n\n<p>A few people posted links to their solutions. And if you want to try your hand at the problem, stop reading and come back later to compare your work with mine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">My Solution<\/h2>\n\n\n\n<p>First of all, I will be the first to tell you that my answer is not the only solution or even the best solution. But it gets the job done so it is \"good enough.\"<\/p>\n\n\n\n<p>My solution is written as a PowerShell script so that I could easily test it with other abou_* help t topics.  The script is nothing more than two PowerShell expressions.<\/p>\n\n\n\n<pre title=\"WordCount.ps1\" class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">Param([string]$topic\u00a0=\u00a0\"About_splatting\")\n\n<em>#I'm\u00a0filtering\u00a0out\u00a0words\u00a0'the',\u00a0'a'\u00a0and\u00a0'an'\u00a0before<\/em>\n<em>#selecting\u00a0the\u00a0most-used\u00a0word.<\/em>\n$results\u00a0=\u00a0($(Get-Help\u00a0$topic).split())\u00a0-replace\u00a0\"\\W|_\",\"\"\u00a0|\nWhere-Object\u00a0{$_}\u00a0-OutVariable\u00a0all\u00a0|\u00a0Group-Object\u00a0|\nWhere-Object\u00a0{$_.name\u00a0-notmatch\u00a0\"\\b(the|a|an)\\b\"}\u00a0|\nSort-Object\u00a0-property\u00a0count\u00a0-Descending\u00a0|\nSelect-Object\u00a0-first\u00a05\n\n<em>#create\u00a0a\u00a0custom\u00a0object<\/em>\n[PSCustomObject]@{\n\u00a0\u00a0\u00a0\u00a0Topic\u00a0=\u00a0$topic\n\u00a0\u00a0\u00a0\u00a0TotalWords\u00a0=\u00a0$all.Count\n\u00a0\u00a0\u00a0\u00a0TopWord\u00a0=\u00a0$results[0].Name\n\u00a0\u00a0\u00a0\u00a0TopWordCount\u00a0=\u00a0$results[0].count\n\u00a0\u00a0\u00a0\u00a0PSVersion\u00a0=\u00a0$PSVersionTable.PSVersion\n}<\/code><\/pre>\n\n\n\n<p>Here's how it works.  Get-Help writes a string object to the pipeline. I'm splitting the string using the default white space and then replacing each non-word character (\\W) or the underscore with nothing. This has the effect of parsing out \"about_\" and treating it as \"about\". These results are sent to Where-Object which is filtering out blank lines. I could have included this kind of regex parsing in the first part of the command. This leaves a list of words.  Notice that I'm using -OutVariable to save the output of this particular command to a variable, $all. I'll use this later.<\/p>\n\n\n\n<p>The words are then grouped and filtered again to ignore common words, \"the\",\"a\", and \"an\". The filtered group results are then sorted on the count property in descending order and I select the first 5. Although I probably only needed the first 1.<\/p>\n\n\n\n<p>The last part of the script creates a custom file from the first item in $results.  I could have created a custom object for each item in $results. Anyway, this is what I end up with.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"642\" height=\"323\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.png\" alt=\"\" class=\"wp-image-8124\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.png 642w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7-300x151.png 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps51.png\"><img loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"329\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps51.png\" alt=\"\" class=\"wp-image-8125\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps51.png 585w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps51-300x169.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/a><\/figure>\n\n\n\n<p>Much of your PowerShell work involves working with objects in the pipeline. If you can visualize the process, or at least verbally describe it,  I think you'll find PowerShell easier to use and write. The goal of the problem isn't the end result which is of no practical value, but rather building up your PowerShell muscles.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago I posted a quick PowerShell puzzle as part of an appearance announcement. Using the about_Splatting help file, what word is used the most frequently? If you can show the top 5 even better. Ideally, your code will treat words like \u201cfor,\u201d and \u201cfor\u201d as the same. For extra points, create a&#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 on the blog: #My PowerShell Word Count Solution","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":[4],"tags":[98,534,540],"class_list":["post-8122","post","type-post","status-publish","format-standard","hentry","category-powershell","tag-pipeline","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>My PowerShell Word Count Solution &#8226; The Lonely Administrator<\/title>\n<meta name=\"description\" content=\"Here&#039;s my solution for a PowerShell problem I posted the other day about finding the most used word in an about help topic.\" \/>\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\/8122\/my-powershell-word-count-solution\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"My PowerShell Word Count Solution &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"Here&#039;s my solution for a PowerShell problem I posted the other day about finding the most used word in an about help topic.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-03T19:25:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-04T16:25:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"My PowerShell Word Count Solution\",\"datePublished\":\"2021-02-03T19:25:47+00:00\",\"dateModified\":\"2021-02-04T16:25:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/\"},\"wordCount\":437,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/wordtest-ps7.png\",\"keywords\":[\"Pipeline\",\"PowerShell\",\"Scripting\"],\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/\",\"name\":\"My PowerShell Word Count Solution &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/wordtest-ps7.png\",\"datePublished\":\"2021-02-03T19:25:47+00:00\",\"dateModified\":\"2021-02-04T16:25:29+00:00\",\"description\":\"Here's my solution for a PowerShell problem I posted the other day about finding the most used word in an about help topic.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/wordtest-ps7.png\",\"contentUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/wordtest-ps7.png\",\"width\":642,\"height\":323},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/8122\\\/my-powershell-word-count-solution\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/powershell\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"My PowerShell Word Count Solution\"}]},{\"@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":"My PowerShell Word Count Solution &#8226; The Lonely Administrator","description":"Here's my solution for a PowerShell problem I posted the other day about finding the most used word in an about help topic.","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\/8122\/my-powershell-word-count-solution\/","og_locale":"en_US","og_type":"article","og_title":"My PowerShell Word Count Solution &#8226; The Lonely Administrator","og_description":"Here's my solution for a PowerShell problem I posted the other day about finding the most used word in an about help topic.","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/","og_site_name":"The Lonely Administrator","article_published_time":"2021-02-03T19:25:47+00:00","article_modified_time":"2021-02-04T16:25:29+00:00","og_image":[{"url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"My PowerShell Word Count Solution","datePublished":"2021-02-03T19:25:47+00:00","dateModified":"2021-02-04T16:25:29+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/"},"wordCount":437,"commentCount":3,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/#primaryimage"},"thumbnailUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.png","keywords":["Pipeline","PowerShell","Scripting"],"articleSection":["PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/","name":"My PowerShell Word Count Solution &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/#primaryimage"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/#primaryimage"},"thumbnailUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.png","datePublished":"2021-02-03T19:25:47+00:00","dateModified":"2021-02-04T16:25:29+00:00","description":"Here's my solution for a PowerShell problem I posted the other day about finding the most used word in an about help topic.","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/#primaryimage","url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.png","contentUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2021\/02\/wordtest-ps7.png","width":642,"height":323},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8122\/my-powershell-word-count-solution\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"PowerShell","item":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},{"@type":"ListItem","position":2,"name":"My PowerShell Word Count Solution"}]},{"@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":8107,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/8107\/scripting-challenge-meetup\/","url_meta":{"origin":8122,"position":0},"title":"Scripting Challenge Meetup","author":"Jeffery Hicks","date":"February 1, 2021","format":false,"excerpt":"As you probably know, I am the PowerShell problem master behind the challenges from the Iron Scripter site. Solving a PowerShell scripting challenge is a great way to test your skills and expand your knowledge. The final result is merely a means to an end. How you get there and\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\/2021\/02\/rubik.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9018,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9018\/an-iron-scripter-warm-up-solution\/","url_meta":{"origin":8122,"position":1},"title":"An Iron Scripter Warm-Up Solution","author":"Jeffery Hicks","date":"May 6, 2022","format":false,"excerpt":"We just wrapped up the 2022 edition of the PowerShell+DevOps Global Summit. It was terrific to be with passionate PowerShell professionals again. The culmination of the event is the Iron Scripter Challenge. You can learn more about this year's event and winner here. But there is more to the Iron\u2026","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":4278,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell-ise\/4278\/friday-fun-send-powershell-ise-content-to-word\/","url_meta":{"origin":8122,"position":2},"title":"Friday Fun: Send PowerShell ISE Content to Word","author":"Jeffery Hicks","date":"March 13, 2015","format":false,"excerpt":"Yesterday on Facebook, Ed Wilson was lamenting about confusion of keyboard shortcuts between PowerShell and Microsoft Word. I've run into the same issue. Muscle memory is strong. Then the discussion turned to getting content from the PowerShell ISE into a Word document. I humorously suggested we had a plugin and\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"geek","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/01\/geek.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1931,"url":"https:\/\/jdhitsolutions.com\/blog\/miscellaneous\/1931\/thursday-treat-a-powershell-word-find-game\/","url_meta":{"origin":8122,"position":3},"title":"Thursday Treat &#8211; A PowerShell Word Find Game","author":"Jeffery Hicks","date":"December 29, 2011","format":false,"excerpt":"Now for something completely different but hopefully a little fun. I'm a big fan of word games and puzzles. Tim Bolton has assembled a few PowerShell themed crosswords, which you can find on his blog. I've always like word finds so I put together a pretty simple one using 16\u2026","rel":"","context":"In &quot;Miscellaneous&quot;","block_context":{"text":"Miscellaneous","link":"https:\/\/jdhitsolutions.com\/blog\/category\/miscellaneous\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/12\/PSWordFind-1-300x275.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5591,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/5591\/friday-fun-powershell-anagrams\/","url_meta":{"origin":8122,"position":4},"title":"Friday Fun: PowerShell Anagrams","author":"Jeffery Hicks","date":"June 23, 2017","format":false,"excerpt":"Maybe it's my liberal arts background but I love words and word games. I have a constant pile of crosswords and enjoy tormenting my kids (and wife) with puns.\u00a0 I am also fascinated with word hacks like palindromes and anagrams. An anagram is where you take a word like 'pot'\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/06\/image_thumb.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/06\/image_thumb.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/06\/image_thumb.png?resize=525%2C300 1.5x"},"classes":[]},{"id":1330,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell-v2-0\/1330\/powershell-ise-convert-all-aliases\/","url_meta":{"origin":8122,"position":5},"title":"PowerShell ISE Convert All Aliases","author":"Jeffery Hicks","date":"April 8, 2011","format":false,"excerpt":"Yesterday I posted an article on how to convert a selected word to an alias or cmdlet. While I think there is still some value in this piecemeal approach. sometimes you want to make wholesale changes, such as when troubleshooting a script that someone else wrote that is full of\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":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8122","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=8122"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8122\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=8122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=8122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=8122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}