{"id":7134,"date":"2019-12-27T12:07:52","date_gmt":"2019-12-27T17:07:52","guid":{"rendered":"https:\/\/jdhitsolutions.com\/blog\/?p=7134"},"modified":"2019-12-27T12:07:59","modified_gmt":"2019-12-27T17:07:59","slug":"friday-fun-thank-god-its-a-powershell-friday","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/","title":{"rendered":"Friday Fun: Thank God It&#8217;s a PowerShell Friday"},"content":{"rendered":"<p>Well here we are at the last Friday of the year. In fact , the last Friday of the decade! On this auspicious occasion, let's have some PowerShell fun and celebrate Friday. No matter what you call it, I'm assuming Friday is your last typical workday and something we look forward to. However, the name <a title=\"Read about 'Friday' on Wikipedia\" href=\"https:\/\/en.wikipedia.org\/wiki\/Friday\" target=\"_blank\" rel=\"noopener noreferrer\">Friday<\/a> is obviously not universal. But PowerShell makes it easy to discover what to call it depending on where we are. In Windows, this is our culture.<\/p>\n<p><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image-31.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"Get-Culture with PowerShell\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-31.png\" alt=\"Get-Culture with PowerShell\" width=\"997\" height=\"288\" border=\"0\" \/><\/a><\/p>\n<p>This is a .NET object that has some interesting properties.<\/p>\n<p><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image-32.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"DateTime formats\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-32.png\" alt=\"DateTime formats\" width=\"845\" height=\"772\" border=\"0\" \/><\/a><\/p>\n<p>As you can see it is pretty easy to find out what \"Friday\" is called.<\/p>\n<p><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image-33.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"Get day names with PowerShell\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-33.png\" alt=\"Get day names with PowerShell\" width=\"792\" height=\"328\" border=\"0\" \/><\/a><\/p>\n<p>In Windows PowerShell, to check another culture you have to resort to using the .NET Framework.<\/p>\n<p><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image-34.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"Finnish day names\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-34.png\" alt=\"Finnish day names\" width=\"1028\" height=\"333\" border=\"0\" \/><\/a><\/p>\n<p>I'm not even going to try and pronounce this but this is \"Friday\" in Finland. What about the rest of the world?<\/p>\n<p>First, let's get all available cultures.<\/p>\n<pre class=\"lang:ps mark:0 decode:true\">$all = [System.Globalization.CultureInfo]::GetCultures(\"allCultures\")\n<\/pre>\n<p>Next, let's see what \"Friday\" is around the world.<\/p>\n<pre class=\"lang:ps mark:0 decode:true\">$all | Select-object -property Name,DisplayName,@{Name=\"Friday\";Expression = {$_.Datetimeformat.daynames[-2]}}\n<\/pre>\n<p><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image-35.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"Friday around the world\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-35.png\" alt=\"Friday around the world\" width=\"1028\" height=\"667\" border=\"0\" \/><\/a><\/p>\n<p>Or here's a random sample.<\/p>\n<p><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image-36.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"A collectiion of Fridays\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-36.png\" alt=\"A collectiion of Fridays\" width=\"1028\" height=\"597\" border=\"0\" \/><\/a><\/p>\n<p>By the way, if you were curious about the rest of the week you could use code like this:<\/p>\n<pre class=\"lang:ps mark:0 decode:true \">[System.Globalization.CultureInfo]::GetCultures(\"allCultures\") | \nFormat-Table -group DisplayName -Property Name,\n@{Name=\"Day1\";Expression = {$_.Datetimeformat.daynames[0]}},\n@{Name=\"Day2\";Expression = {$_.Datetimeformat.daynames[1]}},\n@{Name=\"Day3\";Expression = {$_.Datetimeformat.daynames[2]}},\n@{Name=\"Day4\";Expression = {$_.Datetimeformat.daynames[3]}},\n@{Name=\"Day5\";Expression = {$_.Datetimeformat.daynames[4]}},\n@{Name=\"Day6\";Expression = {$_.Datetimeformat.daynames[5]}},\n@{Name=\"Day7\";Expression = {$_.Datetimeformat.daynames[6]}} -AutoSize\n<\/pre>\n<p>I 'll let you try it for yourself.<\/p>\n<p>If you are running PowerShell 7, this is even easier as the <a title=\"Read online help for this command in PS7\" href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.utility\/get-culture?view=powershell-7&amp;WT.mc_id=ps-gethelp\" target=\"_blank\" rel=\"noopener noreferrer\">Get-Culture<\/a> cmdlet has been updated.<\/p>\n<p><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image-37.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"Getting day names with Get-Culture and PowerShell 7\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-37.png\" alt=\"Getting day names with Get-Culture and PowerShell 7\" width=\"1028\" height=\"405\" border=\"0\" \/><\/a><\/p>\n<p>Not only can we now specify a culture, we can easily list all of them.<\/p>\n<pre class=\"lang:ps mark:0 decode:true\">#requires -version 7.0\nGet-Culture -ListAvailable | Select-Object Name,Displayname,\n@{Name=\"Friday\";Expression = {$_.Datetimeformat.daynames[-2]}}\n<\/pre>\n<p><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image-38.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"Fridays around the world via PowerShell 7\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-38.png\" alt=\"Fridays around the world via PowerShell 7\" width=\"1028\" height=\"647\" border=\"0\" \/><\/a><\/p>\n<p>No matter what day it is I hope you enjoy it. And for some of you, \"Friday\" has already come and gone. Hope it was a good one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well here we are at the last Friday of the year. In fact , the last Friday of the decade! On this auspicious occasion, let&#8217;s have some PowerShell fun and celebrate Friday. No matter what you call it, I&#8217;m assuming Friday is your last typical workday and something we look forward to. However, the name&#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-> Friday Fun: Thank God It's a #PowerShell Friday","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":[271,4],"tags":[70,230,619,534],"class_list":["post-7134","post","type-post","status-publish","format-standard","hentry","category-friday-fun","category-powershell","tag-datetime","tag-fridayfun","tag-get-culture","tag-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Friday Fun: Thank God It&#039;s a PowerShell Friday &#8226; The Lonely Administrator<\/title>\n<meta name=\"description\" content=\"A little PowerShell fun getting Friday from around the world. You&#039;ll also see it is even easier using PowerShell 7.\" \/>\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\/7134\/friday-fun-thank-god-its-a-powershell-friday\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Friday Fun: Thank God It&#039;s a PowerShell Friday &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"A little PowerShell fun getting Friday from around the world. You&#039;ll also see it is even easier using PowerShell 7.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-27T17:07:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-27T17:07:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-31.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=\"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\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Friday Fun: Thank God It&#8217;s a PowerShell Friday\",\"datePublished\":\"2019-12-27T17:07:52+00:00\",\"dateModified\":\"2019-12-27T17:07:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/\"},\"wordCount\":265,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/image_thumb-31.png\",\"keywords\":[\"DateTime\",\"FridayFun\",\"Get-Culture\",\"PowerShell\"],\"articleSection\":[\"Friday Fun\",\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/\",\"name\":\"Friday Fun: Thank God It's a PowerShell Friday &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/image_thumb-31.png\",\"datePublished\":\"2019-12-27T17:07:52+00:00\",\"dateModified\":\"2019-12-27T17:07:59+00:00\",\"description\":\"A little PowerShell fun getting Friday from around the world. You'll also see it is even easier using PowerShell 7.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/image_thumb-31.png\",\"contentUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/image_thumb-31.png\",\"width\":997,\"height\":288},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/7134\\\/friday-fun-thank-god-its-a-powershell-friday\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Friday Fun\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/friday-fun\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Friday Fun: Thank God It&#8217;s a PowerShell Friday\"}]},{\"@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":"Friday Fun: Thank God It's a PowerShell Friday &#8226; The Lonely Administrator","description":"A little PowerShell fun getting Friday from around the world. You'll also see it is even easier using PowerShell 7.","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\/7134\/friday-fun-thank-god-its-a-powershell-friday\/","og_locale":"en_US","og_type":"article","og_title":"Friday Fun: Thank God It's a PowerShell Friday &#8226; The Lonely Administrator","og_description":"A little PowerShell fun getting Friday from around the world. You'll also see it is even easier using PowerShell 7.","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/","og_site_name":"The Lonely Administrator","article_published_time":"2019-12-27T17:07:52+00:00","article_modified_time":"2019-12-27T17:07:59+00:00","og_image":[{"url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-31.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Friday Fun: Thank God It&#8217;s a PowerShell Friday","datePublished":"2019-12-27T17:07:52+00:00","dateModified":"2019-12-27T17:07:59+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/"},"wordCount":265,"commentCount":1,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/#primaryimage"},"thumbnailUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-31.png","keywords":["DateTime","FridayFun","Get-Culture","PowerShell"],"articleSection":["Friday Fun","PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/","name":"Friday Fun: Thank God It's a PowerShell Friday &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/#primaryimage"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/#primaryimage"},"thumbnailUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-31.png","datePublished":"2019-12-27T17:07:52+00:00","dateModified":"2019-12-27T17:07:59+00:00","description":"A little PowerShell fun getting Friday from around the world. You'll also see it is even easier using PowerShell 7.","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/#primaryimage","url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-31.png","contentUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-31.png","width":997,"height":288},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Friday Fun","item":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},{"@type":"ListItem","position":2,"name":"Friday Fun: Thank God It&#8217;s a PowerShell Friday"}]},{"@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":2880,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/2880\/friday-fun-powershell-puzzlers\/","url_meta":{"origin":7134,"position":0},"title":"Friday Fun PowerShell Puzzlers","author":"Jeffery Hicks","date":"March 15, 2013","format":false,"excerpt":"This week's Friday Fun is a short PowerShell puzzler which I hope you'll have some fun with and maybe even lead you to look something up and how knows what that might lead to! The following scrambled terms are all PowerShell related. The ones asterisked are PowerShell 3.0 related, but\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"letterjumble","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/03\/letterjumble-150x150.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2962,"url":"https:\/\/jdhitsolutions.com\/blog\/friday-fun\/2962\/friday-fun-powershell-commands-by-noun\/","url_meta":{"origin":7134,"position":1},"title":"Friday Fun PowerShell Commands by Noun","author":"Jeffery Hicks","date":"April 19, 2013","format":false,"excerpt":"One of PowerShell's greatest strength's is discoverability. Once you know how, it is very easy to discover what \u00a0you can do with PowerShell and how. One reason this works is because PowerShell commands follow a consistent verb-noun naming convention. With this in mind, you can see all of the commands\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"get-command-noun-01","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/04\/get-command-noun-01-1024x577.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/04\/get-command-noun-01-1024x577.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/04\/get-command-noun-01-1024x577.png?resize=525%2C300 1.5x"},"classes":[]},{"id":5799,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/5799\/friday-fun-a-long-time-ago-in-a-powershell-universe-far-far-away\/","url_meta":{"origin":7134,"position":2},"title":"Friday Fun: A Long Time Ago in a PowerShell Universe Far, Far Away","author":"Jeffery Hicks","date":"December 1, 2017","format":false,"excerpt":"With the upcoming release of the next Star Wars movie, I thought I would revisit my PowerShell script that generates your Star Wars universe name. Sure, it is contrived and completely impractical, but I'm betting you are curious nonetheless. My previous version as a simple script with hard coded values\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/12\/image_thumb.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/12\/image_thumb.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/12\/image_thumb.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2017\/12\/image_thumb.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3374,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3374\/friday-fun-get-friday-the-13th\/","url_meta":{"origin":7134,"position":3},"title":"Friday Fun: Get Friday the 13th","author":"Jeffery Hicks","date":"September 13, 2013","format":false,"excerpt":"I thought it might be fun today to use PowerShell to discover all the Friday the 13ths in a given year. So I put together a simple PowerShell one-liner. To make it flexible I'll use a variable for the year, using the current year as my value. $year = (Get-date).Year\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6262,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/6262\/revised-everything-powershell-prompt\/","url_meta":{"origin":7134,"position":4},"title":"Revised Everything PowerShell Prompt","author":"Jeffery Hicks","date":"December 7, 2018","format":false,"excerpt":"Since it is Friday and time for some more PowerShell fun, and I\u2019ve been sharing some of my prompt functions, I thought I\u2019d re-share my kitchen sink prompt. This PowerShell prompt function does *a lot* to things and gives you a snapshot view of your system everytime you press enter.\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/12\/image_thumb-5.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/12\/image_thumb-5.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2018\/12\/image_thumb-5.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4923,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell-ise\/4923\/friday-fun-tweaking-the-powershell-ise\/","url_meta":{"origin":7134,"position":5},"title":"Friday Fun: Tweaking the PowerShell ISE","author":"Jeffery Hicks","date":"February 19, 2016","format":false,"excerpt":"Today's fun is still PowerShell related, but instead of something in the console, we'll have some fun with the PowerShell ISE. One of the things I love about the PowerShell ISE is that you can customize it and extend it.\u00a0 My ISE Scripting Geek project is an example.\u00a0 But today\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\/2016\/02\/image_thumb-12.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7134","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=7134"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7134\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}