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 from PowerShell Gallery PS Gallery
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
Add-PWSHModule
-- Adds a new module to the GitHub Gist List.Add-PWSHModuleDefaultsToProfile
-- Creates PSDefaultParameterValues in the users profile files.Get-PWSHModuleList
-- List all the GitHub Gist Lists.Install-PWSHModule
-- Install modules from the specified list.Move-PWSHModuleBetweenScope
-- Moves modules between scopes (CurrentUser and AllUsers).New-PWSHModuleList
-- Add a new list to GitHub Gist.Remove-PWSHModule
-- Remove module from the specified list.Remove-PWSHModuleList
-- Deletes a list from GitHub GistSave-PWSHModule
-- Saves the modules from the specified list to a folder.Save-PWSHModuleList
-- Save the Gist file to a local fileShow-PWSHModule
-- Show the details of the modules in a list.Uninstall-PWSHModule
-- Will uninstall the module from the system.