Skip to content

Instantly share code, notes, and snippets.

@jjaramillo

jjaramillo/copytogac.ps1

Last active Aug 29, 2015
Embed
What would you like to do?
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