{"id":9260,"date":"2023-08-25T10:15:39","date_gmt":"2023-08-25T14:15:39","guid":{"rendered":"https:\/\/jdhitsolutions.com\/blog\/?p=9260"},"modified":"2023-08-25T10:16:54","modified_gmt":"2023-08-25T14:16:54","slug":"friday-fun-with-psquizzes","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/","title":{"rendered":"Friday Fun with PSQuizzes"},"content":{"rendered":"<div class=\"wp-block-image is-style-default\">\n<figure class=\"alignleft size-thumbnail\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/pexels-photo-5428833.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/pexels-photo-5428833-150x150.jpeg\" alt=\"Photo by Leeloo Thefirst from Pexels: https:\/\/www.pexels.com\/photo\/question-marks-on-paper-crafts-5428833\/\" class=\"wp-image-9261\"\/><\/a><\/figure>\n<\/div>\n\n\n<p>Time to get back to the to blog. I've been working through my backlog of projects. These are things that I started writing or updating but then got pushed to the back of the line. One of these projects is a PowerShell module I wrote as a teaching tool.  The idea was to create short quizzes on PowerShell topics that someone could take in a PowerShell session. My idea was to create quizzes on PowerShell topics, but you can create a quiz on anything. If you want to try things out, install the <a href=\"https:\/\/github.com\/jdhitsolutions\/PSQuizMaster\" target=\"_blank\" rel=\"noreferrer noopener\">PSQuizMaster<\/a> module from the PowerShell Gallery. The module will work in Windows PowerShell and PowerShell 7, including cross-platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Take a Quiz<\/h2>\n\n\n\n<p>I've written a few sample quizzes that ship with the module. Use the <code>Get-PSQuiz<\/code> command to display them,<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/get-psquiz.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"421\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/get-psquiz-1024x421.png\" alt=\"Get-PSQuiz\" class=\"wp-image-9262\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/get-psquiz-1024x421.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/get-psquiz-300x123.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/get-psquiz-768x315.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/get-psquiz-1536x631.png 1536w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/get-psquiz-850x349.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/get-psquiz.png 1580w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>The module defines a variable that indicates where you keep your quizzes. The default is the sample quiz folder.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">PS C:\\> $PSQuizPath\nC:\\Program Files\\WindowsPowerShell\\Modules\\PSQuizMaster\\1.0.0\\quizzes<\/code><\/pre>\n\n\n\n<p>You most likely will want to create your own directory. You can run <code>Set-PSQuizPath<\/code> to update the variable.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">PS C:\\> mkdir c:\\quizzes\n\n\n    Directory: C:\\\n\n\nMode                 LastWriteTime         Length Name\n----                 -------------         ------ ----\nd-----         8\/25\/2023   5:39 AM                quizzes\n\n\nPS C:\\> Set-PSQuizPath -Path c:\\quizzes\nPS C:\\><\/code><\/pre>\n\n\n\n<p>This will create a small JSON file under $HOME.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">PS C:\\> dir $home\\.psquizsettings.json\n\n\n    Directory: C:\\Users\\artd\n\n\nMode                 LastWriteTime         Length Name\n----                 -------------         ------ ----\n-a----         8\/25\/2023   5:39 AM            226 .psquizsettings.json\n\n\nPS C:\\> dir $home\\.psquizsettings.json | get-content\n{\n    \"PSQuizPath\":  \"c:\\\\quizzes\",\n    \"Updated\":  \"8\/25\/2023 5:39:27 AM\",\n    \"Computername\":  \"WIN10\"\n}<\/code><\/pre>\n\n\n\n<p>From now on, when you import the module, <code>$PSQuizPath <\/code>will point to the folder you've specified. If you want, you can copy the sample quizzes to this new location.<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code lang=\"powershell\" class=\"language-powershell\">PS C:\\> Copy-PSSampleQuiz -Path C:\\quizzes\\\n\n\n    Directory: C:\\quizzes\n\n\nMode                 LastWriteTime         Length Name\n----                 -------------         ------ ----\n-a----          8\/7\/2023   2:47 PM           3206 Aliases.quiz.json\n-a----          8\/6\/2023  10:31 PM           6266 demo.quiz.json\n-a----          8\/7\/2023   2:47 PM           4032 pshelp.quiz.json\n-a----          8\/7\/2023   2:47 PM           4688 remoting.quiz.json<\/code><\/pre>\n\n\n\n<p>To take a quiz, run <code>Invoke-PSQuiz<\/code>. You can tab-complete the quiz file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/invoke-psquiz.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"767\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/invoke-psquiz-1024x767.png\" alt=\"Invoke-PSQuiz\" class=\"wp-image-9263\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/invoke-psquiz-1024x767.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/invoke-psquiz-300x225.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/invoke-psquiz-768x575.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/invoke-psquiz-850x636.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/invoke-psquiz.png 1038w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Some quiz questions might have additional comments. At the end of the quiz is your grade.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-complete.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"720\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-complete.png\" alt=\"completing a quiz\" class=\"wp-image-9264\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-complete.png 1017w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-complete-300x212.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-complete-768x544.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-complete-850x602.png 850w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a Quiz<\/h2>\n\n\n\n<p>Quizzes are stored in JSON files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json line-numbers\">{\n  \"$schema\": \"https:\/\/raw.githubusercontent.com\/jdhitsolutions\/PSQuizMaster\/main\/psquiz.schema.json\",\n  \"metadata\": {\n    \"name\": \"PowerShell Aliases\",\n    \"author\": \"Jeff Hicks\",\n    \"description\": \"A short quiz on using aliases in PowerShell.\",\n    \"version\": \"0.2.3\",\n    \"id\": \"68d30b11-971e-4104-9d76-d862bcef6a37\",\n    \"updated\": \"2023-08-06 23:55:09Z\"\n  },\n  \"questions\": [\n    {\n      \"question\": \"What command will display currently defined PowerShell aliases?\",\n      \"answer\": \"Get-Alias\",\n      \"distractors\": [\n        \"Show-Alias\",\n        \"$PSAlias\",\n        \"Get-AliasDefinition\",\n        \"Find-PSAlias\"\n      ],\n      \"note\": \"\"\n    },\n    {\n      \"question\": \"What PSDrive shows PowerShell aliases?\",\n      \"answer\": \"Alias\",\n      \"distractors\": [\n        \"A:\",\n        \"$Alias\",\n        \"psalias\",\n        \"$PSAliasDrive\"\n      ],\n      \"note\": \"The drive name, does not include the colon (:).\"\n    },\n    {\n      \"question\": \"What command do you use to create a custom alias?\",\n      \"answer\": \"New-Alias\",\n      \"distractors\": [\n        \"Get-Alias\",\n        \"Add-Alias\",\n        \"New-PSDrive\",\n        \"Import-Alias\"\n      ],\n      \"note\": \"You could use Import-Alias to recreate aliases exported with Export-Alias.\"\n    },\n    {\n      \"question\": \"How can you protect an alias from being overwritten?\",\n      \"answer\": \"Set an option of ReadOnly or Constant\",\n      \"distractors\": [\n        \"You can't protect it\",\n        \"Set the scope to private\",\n        \"Set the scope to global\"\n      ],\n      \"note\": \"\"\n    }\n  ]\n}<\/code><\/pre>\n\n\n\n<p>I've created a JSON schema so you can create a quiz file directly in VS Code. The module has commands for creating a new quiz file and questions, but the best way is to run <code>New-PSQuiz<\/code> and follow the prompts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/new-psquiz.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/new-psquiz-1024x475.png\" alt=\"\" class=\"wp-image-9266\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/new-psquiz-1024x475.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/new-psquiz-300x139.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/new-psquiz-768x356.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/new-psquiz-850x394.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/new-psquiz.png 1357w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>The answers in the quiz file are stored in plain text. I added an option to mask the answers.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">Get-PSQuiz -Name *filtering* | Protect-PSQuizFile<\/code><\/pre>\n\n\n\n<p>The technique I use to mask the answers isn't complicated and easily undone.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/masked-answers.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"137\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/masked-answers-1024x137.png\" alt=\"\" class=\"wp-image-9267\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/masked-answers-1024x137.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/masked-answers-300x40.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/masked-answers-768x102.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/masked-answers-850x113.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/masked-answers.png 1515w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>It is aimed at deterring casual \"cheaters.\"<\/p>\n\n\n\n<p>I'm curious to learn how you use this module. One thought I had is that you could create a test for a user group meeting. Or you could use it for private, internal training classes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PSQuickQuiz<\/h2>\n\n\n\n<p>The module also has a command called Invoke-PSQuickQuiz. This function will dynamically create a test based on PowerShell commands. The default is to use all modules on your computer.  But you can exclude or specify a module.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">Invoke-PSQuickQuiz -ModuleName Microsoft.Powershell.*<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/psquickquiz.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/psquickquiz-1024x556.png\" alt=\"\" class=\"wp-image-9268\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/psquickquiz-1024x556.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/psquickquiz-300x163.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/psquickquiz-768x417.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/psquickquiz-850x461.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/psquickquiz.png 1061w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>When finished, you'll get a grade.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-grade.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"591\" src=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-grade-1024x591.png\" alt=\"\" class=\"wp-image-9269\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-grade-1024x591.png 1024w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-grade-300x173.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-grade-768x443.png 768w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-grade-850x491.png 850w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/quiz-grade.png 1098w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>I have a few other ideas to enhance this module, but I'd love to hear from you. You can visit the <a href=\"https:\/\/github.com\/jdhitsolutions\/PSQuizMaster\" target=\"_blank\" rel=\"noreferrer noopener\">project's repository<\/a> and post an issue or start a discussion.<\/p>\n\n\n\n<p>Enjoy and have a great weekend.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Time to get back to the to blog. I&#8217;ve been working through my backlog of projects. These are things that I started writing or updating but then got pushed to the back of the line. One of these projects is a PowerShell module I wrote as a teaching tool. The idea was to create short&#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":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[271,4,9],"tags":[568,411,534,680],"class_list":["post-9260","post","type-post","status-publish","format-standard","hentry","category-friday-fun","category-powershell","category-training","tag-friday-fun","tag-json","tag-powershell","tag-teaching"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Friday Fun with PSQuizzes &#8226; The Lonely Administrator<\/title>\n<meta name=\"description\" content=\"I&#039;ve brushed off an old project that you can use to test your PowerShell knowledge or teach others. Create and takes quizzes with PSQuizMaster.\" \/>\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\/9260\/friday-fun-with-psquizzes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Friday Fun with PSQuizzes &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"I&#039;ve brushed off an old project that you can use to test your PowerShell knowledge or teach others. Create and takes quizzes with PSQuizMaster.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-25T14:15:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-25T14:16:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/pexels-photo-5428833-150x150.jpeg\" \/>\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\\\/9260\\\/friday-fun-with-psquizzes\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Friday Fun with PSQuizzes\",\"datePublished\":\"2023-08-25T14:15:39+00:00\",\"dateModified\":\"2023-08-25T14:16:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/\"},\"wordCount\":446,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/pexels-photo-5428833-150x150.jpeg\",\"keywords\":[\"Friday Fun\",\"JSON\",\"PowerShell\",\"teaching\"],\"articleSection\":[\"Friday Fun\",\"PowerShell\",\"Training\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/\",\"name\":\"Friday Fun with PSQuizzes &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/pexels-photo-5428833-150x150.jpeg\",\"datePublished\":\"2023-08-25T14:15:39+00:00\",\"dateModified\":\"2023-08-25T14:16:54+00:00\",\"description\":\"I've brushed off an old project that you can use to test your PowerShell knowledge or teach others. Create and takes quizzes with PSQuizMaster.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/pexels-photo-5428833-150x150.jpeg\",\"contentUrl\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/pexels-photo-5428833-150x150.jpeg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/9260\\\/friday-fun-with-psquizzes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Friday Fun\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/friday-fun\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Friday Fun with PSQuizzes\"}]},{\"@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 with PSQuizzes &#8226; The Lonely Administrator","description":"I've brushed off an old project that you can use to test your PowerShell knowledge or teach others. Create and takes quizzes with PSQuizMaster.","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\/9260\/friday-fun-with-psquizzes\/","og_locale":"en_US","og_type":"article","og_title":"Friday Fun with PSQuizzes &#8226; The Lonely Administrator","og_description":"I've brushed off an old project that you can use to test your PowerShell knowledge or teach others. Create and takes quizzes with PSQuizMaster.","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/","og_site_name":"The Lonely Administrator","article_published_time":"2023-08-25T14:15:39+00:00","article_modified_time":"2023-08-25T14:16:54+00:00","og_image":[{"url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/pexels-photo-5428833-150x150.jpeg","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\/9260\/friday-fun-with-psquizzes\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Friday Fun with PSQuizzes","datePublished":"2023-08-25T14:15:39+00:00","dateModified":"2023-08-25T14:16:54+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/"},"wordCount":446,"commentCount":2,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/#primaryimage"},"thumbnailUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/pexels-photo-5428833-150x150.jpeg","keywords":["Friday Fun","JSON","PowerShell","teaching"],"articleSection":["Friday Fun","PowerShell","Training"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/","name":"Friday Fun with PSQuizzes &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/#primaryimage"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/#primaryimage"},"thumbnailUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/pexels-photo-5428833-150x150.jpeg","datePublished":"2023-08-25T14:15:39+00:00","dateModified":"2023-08-25T14:16:54+00:00","description":"I've brushed off an old project that you can use to test your PowerShell knowledge or teach others. Create and takes quizzes with PSQuizMaster.","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/#primaryimage","url":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/pexels-photo-5428833-150x150.jpeg","contentUrl":"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/pexels-photo-5428833-150x150.jpeg"},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/9260\/friday-fun-with-psquizzes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Friday Fun","item":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},{"@type":"ListItem","position":2,"name":"Friday Fun with PSQuizzes"}]},{"@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":2962,"url":"https:\/\/jdhitsolutions.com\/blog\/friday-fun\/2962\/friday-fun-powershell-commands-by-noun\/","url_meta":{"origin":9260,"position":0},"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":2880,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/2880\/friday-fun-powershell-puzzlers\/","url_meta":{"origin":9260,"position":1},"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":1011,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell-v2-0\/1011\/friday-fun-quote-of-the-day\/","url_meta":{"origin":9260,"position":2},"title":"Friday Fun Quote of the Day","author":"Jeffery Hicks","date":"November 5, 2010","format":false,"excerpt":"For this week's Friday Fun post, I have another idea on how to brighten your PowerShell console. The concept of a message of the day or quote of the day in computing goes way back to the dark ages (ie before PowerShell). I thought it might be fun to see\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\/2010\/11\/qotd.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2010\/11\/qotd.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2010\/11\/qotd.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2010\/11\/qotd.png?resize=700%2C400 2x"},"classes":[]},{"id":2639,"url":"https:\/\/jdhitsolutions.com\/blog\/friday-fun\/2639\/friday-fun-scraping-the-web-with-powershell-v3\/","url_meta":{"origin":9260,"position":3},"title":"Friday Fun: Scraping the Web with PowerShell v3","author":"Jeffery Hicks","date":"December 21, 2012","format":false,"excerpt":"We often think about PowerShell v3 as being a management tool for the cloud. One new PowerShell v3 cmdlet that lends substance to this idea is Invoke-WebRequest. This is a handy for retrieving data from a web site resource. It might be a public web site or something on your\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":7134,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/7134\/friday-fun-thank-god-its-a-powershell-friday\/","url_meta":{"origin":9260,"position":4},"title":"Friday Fun: Thank God It&#8217;s a PowerShell Friday","author":"Jeffery Hicks","date":"December 27, 2019","format":false,"excerpt":"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\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\/2019\/12\/image_thumb-38.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-38.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-38.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2019\/12\/image_thumb-38.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":6262,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/6262\/revised-everything-powershell-prompt\/","url_meta":{"origin":9260,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/9260","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=9260"}],"version-history":[{"count":2,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/9260\/revisions"}],"predecessor-version":[{"id":9270,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/9260\/revisions\/9270"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=9260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=9260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=9260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}