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

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.

Awesome Lists containing this project

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\Modules

Install-LatestModule -Name AzureAD
#Example will scan for module AzureAD and check its version. it will update if older than PSGallery's latest version

Install-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 version

Install-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 it

Get-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
```