Skip to content

Instantly share code, notes, and snippets.

@asadrefai
Created December 22, 2016 05:17
Show Gist options
  • Save asadrefai/30a8aeffd3cc81f1b5948cf86833ccef to your computer and use it in GitHub Desktop.
Save asadrefai/30a8aeffd3cc81f1b5948cf86833ccef to your computer and use it in GitHub Desktop.
Add dll in GAC using PowerShell
#Note that you should be running PowerShell as an Administrator
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("C:\Path\To\DLL.dll")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment