Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 1.07 KB

Remove-GacAssembly.md

File metadata and controls

40 lines (36 loc) · 1.07 KB

Remove-GacAssembly

Removes the assembly from the GAC. Can only be called from an elevated prompt.

SYNTAX

Remove-GacAssembly [-AssemblyName] <AssemblyName[]> [[-InstallReference] <InstallReference>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

PARAMETERS

-AssemblyName <AssemblyName[]>

Specifies the assembly name. Must be fully qualified. See Test-AssemblyNameFullyQualified.

-InstallReference <InstallReference>

Specifies the InstallReference used to add the assembly to the GAC

-PassThru [<SwitchParameter>]

The AssemblyName removed is used as the output

-WhatIf [<SwitchParameter>]
-Confirm [<SwitchParameter>]
<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable.

EXAMPLES

C:\PS>Get-GacAssembly -Name SomeAssembly | Remove-GacAssembly

This example removes all assemblies with the name SomeAssembly from the GAC.