Skip to content

smitpi/PWSHModule

Repository files navigation

PWSHModule

Description

Creates a GitHub (Private or Public) Gist to install and maintain the installed PowerShell Modules on your systems, you can create more than one list and use it to custom install modules from different repositories or different versions.

Getting Started

Install-Module -Name PWSHModule -Verbose
  • or run this script to install from GitHub GitHub Repo
$CurrentLocation = Get-Item .
$ModuleDestination = (Join-Path (Get-Item (Join-Path (Get-Item $profile).Directory 'Modules')).FullName -ChildPath PWSHModule)
git clone --depth 1 https://github.com/smitpi/PWSHModule $ModuleDestination 2>&1 | Write-Host -ForegroundColor Yellow
Set-Location $ModuleDestination
git filter-branch --prune-empty --subdirectory-filter Output HEAD 2>&1 | Write-Host -ForegroundColor Yellow
Set-Location $CurrentLocation
  • Then import the module into your session
Import-Module PWSHModule -Verbose -Force
  • or run these commands for more help and details.
Get-Command -Module PWSHModule
Get-Help about_PWSHModule

Documentation can be found at: Github_Pages

Functions

About

Uses a Config file to install and maintain a list of PowerShell Modules.

Topics

Resources

License

Stars

Watchers

Forks

Contributors