Powershell install packages offline

Last updated:

Download module and put it in below path on a VM that does not have internet access.

Save-Module -Name <modulename> -Path <localpath>
C:\Program Files\WindowsPowerShell\Modules

references: Save-Module (PowerShellGet) - PowerShell | Microsoft Learn