Archive for November, 2016

Useful Powershell commands

I was getting tired of always googling the same powershell commands so from now on I’am adding some of them here.

Task: Add .dll to assembly on Windows Server 2012

Set-location "C:\folder_with_dll\"
[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:\folder_with_dll\some.dll")
iisreset
Advertisements

Leave a comment