Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/smitpi/PWSHModule
- Owner: smitpi
- License: mit
- Created: 2022-07-09T13:19:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T19:35:52.000Z (almost 2 years ago)
- Last Synced: 2024-05-23T00:31:16.969Z (6 months ago)
- Topics: powershell, powershell-core, powershell-modules
- Language: PowerShell
- Homepage:
- Size: 1.85 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - smitpi/PWSHModule - Uses a Config file to install and maintain a list of PowerShell Modules. (PowerShell)
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.