# Get-PowerShellAssemblyMetadata

Gets the cmdlets and aliases in a .NET assembly by scanning for cmdlet-related attributes.

Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`None`

Gets the cmdlets and aliases in a .NET assembly by scanning for cmdlet-related attributes.

## Syntax

```
Get-PowerShellAssemblyMetadata
-Path <String>
[<CommonParameters>]
```

[#](#method-get-powershellassemblymetadata-string)

Parameter set: `All Parameter Sets`

## Description

This is typically used by module build tooling to determine which cmdlets and aliases should be exported for binary modules (compiled cmdlets).

The cmdlet delegates scanning to a typed PowerForge service so the metadata logic can be reused outside the PowerShell surface.

## Examples

### Inspect a compiled PowerShell module assembly

```powershell
Get-PowerShellAssemblyMetadata -Path '.\bin\Release\net8.0\MyModule.dll'
```

Returns discovered cmdlet and alias names based on PowerShell attributes.

### Inspect an assembly in a build artifact folder

```powershell
Get-PowerShellAssemblyMetadata -Path 'C:\Artifacts\MyModule\Bin\MyModule.dll'
```

Useful when validating what will be exported before publishing.

## Parameters

**-Path String required**

The assembly to inspect.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:C823DD90ECB3D18BAA50178F8CE15D7977175CA37A46A3137E311312C0318346 -->
