Skip to content

General-purpose PowerShell, F#, and other scripts

License

Notifications You must be signed in to change notification settings

jimsforks/ps-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Useful General-Purpose Scripts

Pester tests status Pester tests results Pester tests coverage GitHub license badge GitHub stars badge GitHub watchers badge GitHub forks badge GitHub issues badge GitHub commits badge GitHub last commit badge Mastodon: @dataelemental@tilde.zone Mastodon: @brianary@mastodon.spotek.io

This repo contains a collection of generally useful scripts (mostly Windows PowerShell).

See PS5 for legacy scripts, syscfg for single-use system config scripts.

PowerShell Scripts

script dependencies

Clipboard

Comics

Command

Configuration

Console

Credential

Data Analysis

Data encoding

Data formats

Database

Date and time

Dictionary

DotNet

EnvironmentVariables

  • Compress-EnvironmentVariables.ps1: Replaces each of the longest matching parts of a string with an embedded environment variable with that value.
  • Expand-EnvironmentVariables.ps1: Replaces the name of each environment variable embedded in the specified string with the string equivalent of the value of the variable, then returns the resulting string.

Files

Git and GitHub

HTTP

Json

  • Merge-Json.ps1: Create a new JSON string by recursively combining the properties of JSON strings.
  • Set-JsonProperty.ps1: Sets a property of arbitrary depth in a JSON string.

Packages and libraries

Parameters

PowerShell

PowerShell Modules

Properties

Scheduled Tasks

Scripts

  • New-PesterTests.ps1: Creates a new Pester testing script from a script's examples and parameter sets.
  • New-Script.ps1: Creates a simple boilerplate script.
  • Optimize-Help.ps1: Cleans up comment-based help blocks by fully unindenting and capitalizing dot keywords.
  • Rename-Script.ps1: Renames all instances of a script, and updates any usage of it.
  • Repair-ScriptStyle.ps1: Accepts justifications for script analysis rule violations, fixing the rest using Invoke-ScriptAnalysis.

Search and replace

Seq

System and updates

Unicode

VSCode

XML

Other

F# Scripts

Office VBA Scripts

  • OutlookExpireTag.vba: Too many emails remain beyond their period of relevance: daily personnel schedule changes, found item notices, office food notices, server reboot notices, weather/traffic warnings, &c. This Outlook script will allow specifying an expiration date as a hashtag in the subject of outgoing emails, since Outlook does such a good job of hiding the UI for that field. -BL
  • OutlookPasteFormattedIndented.vba: Outlook will strip single-space indents when displaying emails. If you've got, for example, syntax highlighted source code that employs any indentation of only one space, you'll want to add two spaces to the each line (adding one will not appear for text that isn't indented). This Outlook script will paste formatted text, and indent it. Requires Tools -> References -> Microsoft Word 14.0 Object Library (later versions may also work)
  • OutlookPasteTsvTable.vba: This Outlook VBA Sub can be connected to a toolbar button for pasting TSV data as an attractive, formatted table. -BL Requires Tools -> References -> Microsoft Word 14.0 Object Library (later versions may also work)

About

General-purpose PowerShell, F#, and other scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 94.1%
  • XSLT 4.9%
  • Other 1.0%