Skip to content

Instantly share code, notes, and snippets.

@billkindle
Last active December 11, 2020 04:54
Show Gist options
  • Save billkindle/d78c744d0bc67b760a8cd42f3e855662 to your computer and use it in GitHub Desktop.
Save billkindle/d78c744d0bc67b760a8cd42f3e855662 to your computer and use it in GitHub Desktop.
A small script to get the latest PowerShell modules I regularly use.
# 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