{"id":16567530,"url":"https://github.com/jdhitsolutions/psbacktoschool","last_synced_at":"2025-08-08T06:10:42.474Z","repository":{"id":145020604,"uuid":"293872268","full_name":"jdhitsolutions/PSBackToSchool","owner":"jdhitsolutions","description":"A sample solution to the Iron Scripter challenge at https://ironscripter.us/powershell-back-to-school-scripting-challenge","archived":false,"fork":false,"pushed_at":"2020-09-11T12:46:54.000Z","size":288,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-30T23:14:21.958Z","etag":null,"topics":["powershell","powershell-module"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdhitsolutions.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-08T16:52:09.000Z","updated_at":"2023-03-21T07:33:38.000Z","dependencies_parsed_at":"2023-05-02T05:01:24.038Z","dependency_job_id":null,"html_url":"https://github.com/jdhitsolutions/PSBackToSchool","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jdhitsolutions/PSBackToSchool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSBackToSchool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSBackToSchool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSBackToSchool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSBackToSchool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdhitsolutions","download_url":"https://codeload.github.com/jdhitsolutions/PSBackToSchool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSBackToSchool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269373109,"owners_count":24406321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","powershell-module"],"created_at":"2024-10-11T21:06:52.497Z","updated_at":"2025-08-08T06:10:42.023Z","avatar_url":"https://github.com/jdhitsolutions.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSBackToSchool\n\n![geek](images/geek-noshadow.png)\n\nThis module contains a sample solution to an Iron Scripter PowerShell challenge described at [https://ironscripter.us/powershell-back-to-school-scripting-challenge/](https://ironscripter.us/powershell-back-to-school-scripting-challenge/).\n\n## Custom Formatting\n\nBecause your functions should always be writing objects to the pipeline, you may want to include some custom formatting. This module includes a custom formatting file for objects from `Get-CylinderVolume`.\n\n![Get-CylinderVolume](images/get-cylindervolume..png)\n\nThe actual object looks like this:\n\n```powershell\nGet-CylinderVolume -Height 4.5 -Diameter 9.2 -Unit km | Select-Object *\n\n\nForm      : Cylinder\nDiameter  : 9.2\nRadius    : 4.6\nVolume    : 299.14\nUnit      : km\nFormatted : 299.14 km³\n```\n\nCustom formatting is defined in specially formatted XML files, typically with a `.ps1xml` extension. The easiest way to create the file is to use the [New-PSFormatXML](https://github.com/jdhitsolutions/PSScriptTools/blob/master/docs/New-PSFormatXML.md) command from [PSScriptTools](https://github.com/jdhitsolutions/PSScriptTools) module. All you need is a representative object with all of the properties you wish to use.\n\n```powershell\n$new = @{\n FormatType = \"Table\"\n GroupBy = \"Form\"\n Properties = \"Diameter\",\"Radius\",\"Formatted\"\n ViewName = \"default\"\n Path  = \".\\pscylinder.format.ps1xml\"\n}\nGet-CylinderVolume -Diameter 1 -Height 1 |\nNew-PSFormatXML @new\n```\n\nYou can then edit the ps1xml file. Click [here](formats/pscylinder.format.ps1xml) if you want to see what the format file for this module looks like.\n\n## Help Files\n\nCommand help was created using the `Platyps` module which you can install from the PowerShell Gallery. The first step is to create an intermediate set of markdown documents.\n\n```powershell\nImport-Module .\\PSBackToSchool.psd1 -force\nNew-MarkdownHelp -module PSBackToSchool -output docs -force\n```\n\nEdit the markdown documents and \"fill in the blanks\". Then you can create an external help file. The output folder is named after the target culture.\n\n```powershell\nNew-ExternalHelp -Path .\\docs\\ -OutputPath .\\en-us\\ -Force\n```\n\n## Your Homework\n\nIf you want to improve your PowerShell grade, you can clone this repository and add to it. Here is a list of things you could tackle.\n\n+ Add Unit of measurement parameters to the other commands, like `Get-CylinderVolume`.\n+ Define aliases for other commands and export them in the module manifest.\n+ Add additional custom formatting.\n+ Write a series of Pester tests. You might not need to mock anything.\n\n## Additional Reading\n\nIf you are looking to take your PowerShell scripting to the next level, you might want to grab a copy of [The PowerShell Scripting and Toolmaking Book](https://leanpub.com/powershell-scripting-toolmaking). Or if you are still getting your feet wet with PowerShell and would like to test skills, [The PowerShell Practice Primer](https://leanpub.com/psprimer) may be what you need.\n\nLast updated *2020-09-11 08:45:01Z*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdhitsolutions%2Fpsbacktoschool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdhitsolutions%2Fpsbacktoschool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdhitsolutions%2Fpsbacktoschool/lists"}