ardislu / ArdisUtilities

My personal PowerShell utility functions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ArdisUtilities

A PowerShell module containing my personal utility functions.

Requires PowerShell 7+, which is different from Windows PowerShell (PowerShell 5).

Installation

Using install.ps1

Use install.ps1 to install or upgrade ArdisUtilities.

By default, the module is added to the current session only:

# ArdisUtilities will only be available for the current session
irm 'https://raw.githubusercontent.com/ardislu/ArdisUtilities/main/install.ps1' | iex

To keep the module installed on future sessions, pass the -Persist parameter:

# ArdisUtilities will be installed to $HOME/Documents/PowerShell/Modules
"& { $(irm 'https://raw.githubusercontent.com/ardislu/ArdisUtilities/main/install.ps1') } -Persist" | iex

To uninstall, delete the ArdisUtilities folder within the first location in $env:PSModulePath (typically $HOME\Documents\PowerShell\Modules (Windows) or $HOME/.local/share/powershell/Modules (non-Windows)).

Manual

You can add the module to the current session manually by following these steps:

  1. Download the ArdisUtilities folder

  2. In PowerShell:

Import-Module ./path/to/ArdisUtilities/

To persist this module on new sessions:

Usage

View the imported utility functions:

Get-Command -Module ArdisUtilities

Get usage help and examples for a specific function:

Get-Help Invoke-RandomFile

Documentation

Click here to view the full online documentation this module.

About

My personal PowerShell utility functions.


Languages

Language:PowerShell 100.0%