Skip to content

Instantly share code, notes, and snippets.

@raducugheorghe
Last active March 1, 2016 08:52
Show Gist options
  • Save raducugheorghe/497b650db743e5c51f91 to your computer and use it in GitHub Desktop.
Save raducugheorghe/497b650db743e5c51f91 to your computer and use it in GitHub Desktop.
Remove all dll-s in curent folder from GAC
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
foreach ($file in Get-ChildItem *.dll) {
echo $file.FullName
$publish.GacRemove($file.FullName)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment