< Back

Get-Assembly

Mon Jan 13, 2020 3:03 am

NAME Get-Assembly



SYNOPSIS

Get assemblies loaded in the AppDomain.





SYNTAX

Get-Assembly [[-Name] <String>] [<CommonParameters>]





DESCRIPTION

The Get-Assembly cmdlet gets assemblies loaded in the AppDomain.





PARAMETERS

-Name <String>

Specifies the AssemblyName to match.



Required? false

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept input from the pipeline.





OUTPUTS

System.Reflection.Assembly

Matched Assembly objects will be returned to the pipeline.





NOTES









-------------------------- EXAMPLE 1 --------------------------



$results = Get-Assembly

$results.Count



# 52



Get all assemblies loaded into the current AppDomain

-------------------------- EXAMPLE 2 --------------------------



Get-Assembly *Automation*



# GAC Version Location

# --- ------- --------

# True v4.0.30319 C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Management.Automation\\v...



Get assemblies that match a wildcard.



RELATED LINKS

Online Version: https://github.com/SeeminglyScience/Cla ... ssembly.md

Find-Type

Find-Member

Find-Namespace

Get-Parameter