Sunday, September 6, 2015

Publishing a new dll file into Gac windows server 2012 using powershell

Set-location "C:\Users\ahindash\Documents\WSP\clearance\ClearanceProcess" [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:\Users\ahindash\Documents\WSP\clearance\ClearanceProcess\ClearanceProcess.dll") First Set Forlder Path last set the literal path of the dll file