Last active
December 11, 2020 04:54
-
-
Save billkindle/d78c744d0bc67b760a8cd42f3e855662 to your computer and use it in GitHub Desktop.
A small script to get the latest PowerShell modules I regularly use.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These are moudles that I need to routinely save from the PowerShell Gallery | |
$modules = @("Pester","dbatools","dbachecks","psTrustedHosts","PoshWSUS","PSWindowsUpdate","PSDecode","PoshRSJob","PSFramework", | |
"ScheduledJobTools","WindowsCompatibility","ImportExcel","BurntToast","Invoke-CommandAs","PoshEvents") | |
$path = Read-Host -Prompt 'Please enter the full path to which you want to save common modules:' | |
Foreach ($module in $modules) { | |
Save-Module -Name $module -Path $path | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment