Last active
March 1, 2016 08:52
-
-
Save raducugheorghe/497b650db743e5c51f91 to your computer and use it in GitHub Desktop.
Remove all dll-s in curent folder from GAC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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