Skip to content

JonnyRockets/PowerShellScripts

 
 

Repository files navigation

PowerShellScripts

Some PowerShell scipts I wrote, that could turn out being useful to others, too.

Function Location Synopsis Related Blog Post Full Documentation
Diff-CSV Binary wrapper\Diff-CSV.ps1 PowerShell wrapper for diff-table.exe a tool to diff csv files Link
Get-ESSearchResult Binary wrapper\Get-ESSearchResult.ps1 PowerShell wrapper around Everything search command line (es.exe). Link Link
SilverSearcher Binary wrapper\SilverSearcher.ps1 PowerShell wrapper around silver searcher (ag.exe) Recursively search for PATTERN in PATH. Like grep or ack, but faster. Link
Get-ChangeLog Data Wrangling\Get-ChangeLog.ps1 Comparing two objects or .csv files column by column. Link Link
Sort-CustomList Data Wrangling\Sort-CustomList.ps1 Sort data using a custom list in PowerShell. Link Link
Update-Content Data Wrangling\Update-Content.ps1 Insert text on a new line after the line matching the StartPattern or replace text between start- and end Pattern within a file Link
Compare-File Extend Builtin\Compare-File.ps1 A wrapper and extension for the built-in Compare-Object cmdlet to compare two txt based files and receive a side-by-side comparison (including Line numbes). Link
Get-Choice Extend Builtin\Get-Choice.ps1 An alternative to the built-in PromptForChoice providing a consistent UI across different hosts. Link Link
Get-Range Extend Builtin\Get-Range.ps1 Function to retrieve a continuous or stepwise Range of integers,decimals,dates,month names, day names or chars. Simulating Haskell`s Range operator Link Link
Join-Tables Extend Builtin\Join-Tables.ps1 Function to join tables based on one or more common columns with an option to summarize (aggregate) joined columns. Link
Select-ObjectX Extend Builtin\Simplified-Select.ps1 Proxy function for Select-Object providing easier syntax for calculated properties. Link Link
WhereEx Extend Builtin\WhereEx.ps1 POC for a simplified Where-Object with multiple conditions on the same property for PowerShell. Link Link
Add-FormatTableView format output\Add-FormatTableView.ps1 Function to add a Format Table View for a type Link Link
Add-PropertySet format output\Add-PropertySet.ps1 Function to create property sets Link Link
ConvertTo-HtmlConditionalFormat format output\ConvertTo-HtmlConditionalFormat.ps1 Function to convert PowerShell objects into an HTML table with the option to format individual table cells based on property values using CSS selectors. Link
Get-FormatView format output\Get-FormatView.ps1 Function to get the format views for a particular type. Link Link
Out-ConditionalColor format output\Out-ConditionalColor.ps1 Filter to conditionally format PowerShell output within the PowerShell console. Link
Out-ConditionalColorProperties format output\Out-ConditionalColorProperties.ps1 Filter to conditionally format property values within PowerShell output on the console. Link
Out-Diff format output\Out-Diff.ps1 Generate html diff from git diff output using diff2html. Link
8Queens programming exercises\8 Queens.ps1 PowerShell solution for a classical programming exercise. Link
GenerateSolveMaze programming exercises\GenerateSolveMaze.ps1 Function to generate a GUI (Windows forms) to build and solve random mazes Link
TowerOfHanoi programming exercises\TowerOfHanoi.ps1 PowerShell solution to the Tower of Hanoi problem (http://en.wikipedia.org/wiki/Tower_of_Hanoi) using recursion. Link
Add-PowerShellContextMenu Utils\Add-PowerShellContextMenu.ps1 Function to create context menu entries in order to invoke PowerShell Link Link
Add-ScriptHelpISEAddOn Utils\Add-ScriptHelpISEAddOn.ps1 Function to create an ISE Add-On that will generate comment based help for functions. The functions requires the Show-UI module. Link Link
ConvertFrom-ExcelClipboard Utils\ConvertFrom-ExcelClipboard.ps1 Convert copied range from excel to an array of PSObjects Link Link
ConvertFrom-HtmlToText Utils\ConvertFrom-HtmlToText.ps1 Extract the text out of a HTML string Link
ConvertTo-PSFunction Utils\ConvertTo-PSFunction.ps1 Function to "convert" legacy command line commands to PowerShell functions Link
Delete-ComputerRestorePoint Utils\Delete-ComputerRestorePoint.ps1 Function to Delete Windows System Restore points Link
ForeachFor2 Utils\ForeachFor2.ps1 Function to step through two series of values in two collections and run commands against them. Link
Get-FileAndExtract Utils\Get-FileAndExtract.ps1 Function to download and extract files. Link
Get-FormatStrings Utils\Get-FormatStrings.ps1 Show common format strings for a given input and the respective outputs Link
Get-GoogleSuggestion Utils\Get-GoogleSuggestion.ps1 Function to get "Did you mean?" suggestions from Google. Link
Get-Uninstaller Utils\Get-Uninstaller.ps1 Function to get the uninstaller for installed software via registry (PowerShell v4 and <) or Get-Package) Link Link
Get-WIFIPassword Utils\Get-WIFIPassword.ps1 Get the Wifi password of stored networks using netsh. Link
Invoke-HTMLPesterReport Utils\Invoke-HTMLPesterReport.ps1 Generate HTML report for Pester test results using ReportUnit.exe Link Link
Migrate-ScheduledTask Utils\Migrate-ScheduledTask.ps1 Script to migrate scheduled tasks from Windows XP/Server 2003 to Windows 7/Server 2008 task scheduler Link
Monitor-Folder Utils\Monitor-Folder.ps1 Monitors a folder for changes using non-persistent asynchronous events Link
Open-Registry Utils\Open-Registry.ps1 Open the regedit at the specified path similar to sysinternals regjump. Link
Restart-Process Utils\Restart-Process.ps1 Function to restart process(es) Link Link
Get-FunctionFromScript PowerShellScripts\Generate-ScriptMarkdownHelp.ps1 Gets the functions and filters declared within a script block or a file Link
Generate-ScriptMarkdownHelp PowerShellScripts\Generate-ScriptMarkdownHelp.ps1 The function that generated the Markdown help in this repository. (see Example for usage). Generates markdown help for Github for each function containing comment based help (Description not empty) within a folder recursively and a summary table for the main README.md Link

About

Some PowerShell scipts I wrote that can be hopefully also useful to others

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PowerShell 100.0%