0

I have a large number of assemblies to un-register from the GAC, I'd rather not have to go through them one at a time.

Is it possible to use wildcards in the gacutil?

(or, a batch\Powershell script)

BanksySan
  • 25,929
  • 29
  • 105
  • 202

1 Answers1

1

I am the author of an opensource and free to use PowerShell module called PowerShell GAC which can unregister a large number of assemblies from the GAC. You could use the following command if you run it as administrator.

Get-GacAssembly -Name SomeAssembly* | Remove-GacAssembly

Filtering on assembly version is also possible using the -Version parameter

Lars Truijens
  • 41,914
  • 6
  • 120
  • 138