Get-CrmPackages

Applies To: CRM 2015 on-prem

Get-CrmPackages

Returns a list of available packages that can be deployed to a Microsoft Dynamics CRM instance.

Syntax

Parameter Set: Default
Get-CrmPackages [[-PackageDirectory] <String> ] [[-PackageName] <String> ] [ <CommonParameters>]




Detailed Description

The Get-CrmPackages cmdlet returns a list of packages. The cmdlet can also return information about a specific package if you specify the package name as a cmdlet parameter. A package can contain the following items: Microsoft Dynamics CRM solution files, files or exported data files from the Configuration Migration tool, custom code that can run during or after the package is deployed to the Microsoft Dynamics CRM instance, and HTML content specific to the package that can display at the beginning and end of the package deployment process. This HTML content can be useful to provide a description of the solutions and files that are deployed in the package.

This cmdlet applies to Microsoft Dynamics CRM Online and on-premises versions of Microsoft Dynamics CRM.

Parameters

-PackageDirectory<String>

Directory where a package or packages can be found.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PackageName<String>

Name of the assembly (.dll) that contains the package definition.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • List<PackageInfoClass>

    This cmdlet exports a list of PackageInfo objects. The short name of this object can be used as input to the Import-CrmPackage cmdlet.


Examples

-------------------------- Example 1 --------------------------

This example returns a list of packages available for import in the specified directory (in this case, c:\CRM\SDK\Tools\PackageDeployer).


PS C:\>Get-CrmPackages -PackageDirectory c:\CRM\SDK\Tools\PackageDeployer

-------------------------- Example 2 --------------------------

This example displays information about a package available in the specified directory (in this case, c:\CRM\SDK\Tools\PackageDeployer). To display information about a package, you must specify the name of the assembly (in this case SampleCRMPackage.dll) in the -PackageName parameter that contains the package definition.


PS C:\>Get-CrmPackages -PackageDirectory c:\CRM\SDK\Tools\PackageDeployer -PackageName SampleCRMPackage.dll

Related topics

Community Additions

ADD
Show: