Skip to content

Export BinaryCmdletAliases

Nick Spreitzer edited this page Nov 16, 2019 · 7 revisions
external help file: WhatsNew.dll-Help.xml
Module Name: WhatsNew
schema: 2.0.0

Export-BinaryCmdletAliases

SYNOPSIS

Extracts cmdlet aliases from a given module.

SYNTAX

Export-BinaryCmdletAliases -ModuleInfo <PSModuleInfo> [<CommonParameters>]

DESCRIPTION

Returns a string array of all cmdlet aliases contained in a binary PowerShell cmdlet. Examine the WhatsNew build script for example usage.

EXAMPLES

Example 1

PS C:\> Get-Module WhatsNew -All | 
  Where-Object { $_.ModuleType -eq 'Binary' } | 
  Export-BinaryCmdletAliases

Returns a string array of all aliases contained in the WhatsNew module.

PARAMETERS

-ModuleInfo

The PSModuleInfo from which to extract cmdlet names.

Type: PSModuleInfo
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Management.Automation.PSModuleInfo

The PSModuleInfo from which to extract cmdlet names

OUTPUTS

NOTES

RELATED LINKS

Export-BinaryCmdletAliases

Clone this wiki locally