Unregister assemblies from GAC using wildcards

1.1k Views Asked by At

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)

1

There are 1 best solutions below

0
On

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