https://github.com/PowerShellCrack/InstallLatestModulesPSModule
A function that will install the latest Posh module.
https://github.com/PowerShellCrack/InstallLatestModulesPSModule
Last synced: 4 months ago
JSON representation
A function that will install the latest Posh module.
- Host: GitHub
- URL: https://github.com/PowerShellCrack/InstallLatestModulesPSModule
- Owner: PowerShellCrack
- License: mit
- Created: 2021-09-11T15:06:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-08T15:00:40.000Z (over 1 year ago)
- Last Synced: 2023-10-08T16:21:49.026Z (over 1 year ago)
- Language: PowerShell
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- Changelog: CHANGELOG.MD
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - PowerShellCrack/InstallLatestModulesPSModule - A function that will install the latest Posh module. (PowerShell)
README
# A module to update powershell modules
## Prerequisites
No prerequisites are needed
## Install
```powershell
Install-Module InstallLatestModule -Force
```## Cmdlets
- **Install-LatestModule** : install and update modules to latest version
- **Compare-LatestModule** : compares all installed modules to latest version## logging
Default location is **\\\Modules_Install-LatestModule_\.log**
## Examples
```powershell
Install-LatestModule -All
#Example will update all modules installed under C:\Program #Files\WindowsPowerShell\ModulesInstall-LatestModule -Name AzureAD
#Example will scan for module AzureAD and check its version. it will update if older than PSGallery's latest versionInstall-LatestModule -Name Az.Accounts,Az.Resources,Microsoft.Graph.Intune
#Example will scan for module AzureAD and check its version. it will update if older than PSGallery's latest versionInstall-LatestModule -Name AzureAD -Force
#Example will scan for module AzureAD and check its version. If the version is already up-to-date; Force will reinstall itGet-Module -ListAvailable | Install-LatestModule
#Example will scan for module AzureAD and check its version. If the version is already up-to-date; Force will reinstall it
```