A PowerShell module containing my personal utility functions.
Requires PowerShell 7+, which is different from Windows PowerShell (PowerShell 5).
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)).
You can add the module to the current session manually by following these steps:
-
Download the
ArdisUtilities
folder -
In PowerShell:
Import-Module ./path/to/ArdisUtilities/
To persist this module on new sessions:
- Copy the
ArdisUtilities
folder to any folder on$env:PSModulePath
(reference), or - Register this module using
Register-PSRepository
then install the module usingInstall-Module
(reference), or - Add the
Import-Module
command to your$profile
(reference)
View the imported utility functions:
Get-Command -Module ArdisUtilities
Get usage help and examples for a specific function:
Get-Help Invoke-RandomFile
Click here to view the full online documentation this module.