This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MIT License | |
| Copyright (c) 2026 JDH Information Technology Solutions, Inc. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MIT License | |
| Copyright (c) 2025 JDH Information Technology Solutions, Inc. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 7.5 | |
| #requires -module pwshSpectreConsole | |
| Function Out-SelectFile { | |
| <# | |
| .SYNOPSIS | |
| Select files from a SpectreConsole list | |
| .DESCRIPTION | |
| Select files using Read-SpectreMultiSelection from the pwshSpectreConsole module. Selected objects will be written to the pipeline. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 7.5 | |
| #requires -module pwshSpectreConsole | |
| Function Import-LocalModule { | |
| [cmdletbinding()] | |
| [alias('ilm')] | |
| Param( | |
| [Parameter(Position = 0, HelpMessage = "The path to the module data JSON file")] | |
| [ValidateScript({Test-Path $_})] | |
| [string]$DataPath = "c:\scripts\LocalModuleData.json", | |
| [switch]$Passthru |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Empty File#requires -version 7.5 | |
| #requires -module pwshSpectreConsole | |
| Function Select-ToDelete { | |
| <# | |
| .SYNOPSIS | |
| Select files to delete. | |
| .DESCRIPTION | |
| Pipe files to this command which will use SpectreConsole to present a choice menu. The command has an automatic timeout of 15 seconds. | |
| .PARAMETER InputObject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 7.2 | |
| <# | |
| this is a variation of what you could do comparing text files | |
| using Compare-Object. The only difference really is how this | |
| script formats the output. | |
| This should be considered a PROOF-OF-CONCEPT | |
| #> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| history.format.ps1xml | |
| Format type data generated 11/19/2024 11:19:23 by PROSPERO\Jeff | |
| This file was created using the New-PSFormatXML command that is part | |
| of the PSScriptTools module. | |
| https://github.com/jdhitsolutions/PSScriptTools | |
| To use, import this file into your PowerSHell 7 session: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 7.4 | |
| #requires -Module Microsoft.PowerShell.Crescendo | |
| #this demo assumes you have copied the du.exe utility from Sysinternals to a folder in your path | |
| #the name of the module to create | |
| $ModuleName = "FolderUsage" | |
| #the parent folder for the module | |
| $ModulePath = "C:\temp" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return "This is a demo script file." | |
| # Find Me: https://jdhitsolutions.github.io | |
| # Any one can learn syntax and mechanics. | |
| # Let's focus on the squishy bits - what you should write | |
| # and what not to write | |
| #region Essential rules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 7.4 | |
| <# | |
| This function requires the gh.exe command line tool. | |
| You many encounter API rate restrictions under heavy use. | |
| #> | |
| #load the custom formatting file | |
| Update-FormatData $PSScriptRoot\ghLabelStatus.format.ps1xml |
NewerOlder