Skip to content

Instantly share code, notes, and snippets.

@jjaramillo
Last active August 29, 2015 13:56
Show Gist options
  • Save jjaramillo/8937430 to your computer and use it in GitHub Desktop.
Save jjaramillo/8937430 to your computer and use it in GitHub Desktop.
How to copy a dll to GAC in windows server 2012 using powershell
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("mydllpath")
iisreset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment