From: Ardis Lu Date: Sat, 4 Feb 2023 06:03:23 +0000 (-0800) Subject: Add directions on how to use install.ps1 X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=d47c391bb7fbd55d95596ada897b2eb78e66f18b;p=ArdisUtilities Add directions on how to use install.ps1 --- diff --git a/README.md b/README.md index c4272c4..0e7c8e6 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,14 @@ A [PowerShell module](https://docs.microsoft.com/en-us/powershell/module/microso ## Installation +### Using `install.ps1` + +```PowerShell +(Invoke-WebRequest 'https://raw.githubusercontent.com/ardislu/ArdisUtilities/main/install.ps1').Content | Invoke-Expression +``` + +### Manual + 1. Download the `ArdisUtilities` folder 2. In PowerShell: @@ -12,6 +20,8 @@ A [PowerShell module](https://docs.microsoft.com/en-us/powershell/module/microso Import-Module ./path/to/ArdisUtilities/ ``` +### Persistence + To persist this module on new sessions: - Copy the `ArdisUtilities` folder to any folder on `$env:PSModulePath` ([reference](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_psmodulepath)), or - Add the `Import-Module` command to your `$profile` ([reference](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles))