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
  • 27,362
  • 33
  • 117
  • 216

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
  • 42,837
  • 6
  • 126
  • 143