Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/smitpi/PWSHModule

Uses a Config file to install and maintain a list of PowerShell Modules.
https://github.com/smitpi/PWSHModule

powershell powershell-core powershell-modules

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://www.powershellgallery.com/packages/PWSHModule)
```
Install-Module -Name PWSHModule -Verbose
```
- or run this script to install from GitHub [GitHub Repo](https://github.com/smitpi/PWSHModule)
```
$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](https://smitpi.github.io/PWSHModule)

## Functions
- [`Add-PWSHModule`](https://smitpi.github.io/PWSHModule/Add-PWSHModule) -- Adds a new module to the GitHub Gist List.
- [`Add-PWSHModuleDefaultsToProfile`](https://smitpi.github.io/PWSHModule/Add-PWSHModuleDefaultsToProfile) -- Creates PSDefaultParameterValues in the users profile files.
- [`Get-PWSHModuleList`](https://smitpi.github.io/PWSHModule/Get-PWSHModuleList) -- List all the GitHub Gist Lists.
- [`Install-PWSHModule`](https://smitpi.github.io/PWSHModule/Install-PWSHModule) -- Install modules from the specified list.
- [`Move-PWSHModuleBetweenScope`](https://smitpi.github.io/PWSHModule/Move-PWSHModuleBetweenScope) -- Moves modules between scopes (CurrentUser and AllUsers).
- [`New-PWSHModuleList`](https://smitpi.github.io/PWSHModule/New-PWSHModuleList) -- Add a new list to GitHub Gist.
- [`Remove-PWSHModule`](https://smitpi.github.io/PWSHModule/Remove-PWSHModule) -- Remove module from the specified list.
- [`Remove-PWSHModuleList`](https://smitpi.github.io/PWSHModule/Remove-PWSHModuleList) -- Deletes a list from GitHub Gist
- [`Save-PWSHModule`](https://smitpi.github.io/PWSHModule/Save-PWSHModule) -- Saves the modules from the specified list to a folder.
- [`Save-PWSHModuleList`](https://smitpi.github.io/PWSHModule/Save-PWSHModuleList) -- Save the Gist file to a local file
- [`Show-PWSHModule`](https://smitpi.github.io/PWSHModule/Show-PWSHModule) -- Show the details of the modules in a list.
- [`Uninstall-PWSHModule`](https://smitpi.github.io/PWSHModule/Uninstall-PWSHModule) -- Will uninstall the module from the system.