Install from PowerShell Gallery
Install-Module Gac
Install from Chocolatey
choco install powershellgac
- Download PowerShell GAC
- Right click the zip file and choose Properties. Click Unblock and Ok. Or use PowerShell to unblock with Unblock-File.
- Extract zip file in "My Documents\WindowsPowerShell\Modules" so the files are in "My Documents\WindowsPowerShell\Modules\Gac".
- Open PowerShell verify the module can be found with
Get-Module -ListAvailable
. Make sure the PowerShell ExecutionPolicy is set to RemoteSigned or lower or the module fails to load. This can be done by callingSet-ExecutionPolicy RemoteSigned
- Use
Import-Module Gac
to import the module in PowerShell 2.0 This is not needed in PowerShell 3.0, since it auto loads modules it can find.
Change $env:PSModulePath
when installing in a different path or for all users. Using the complete path when calling Import-Module
also works.