< Back

Get-CrmPackages

Sat Jan 18, 2020 4:08 pm

NAME Get-CrmPackages



SYNOPSIS

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





SYNTAX

Get-CrmPackages [[-PackageDirectory] <String>] [[-PackageName] <String>] [<CommonParameters>]





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.



Required? false

Position? 1

Default value

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PackageName <String>

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



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<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









OUTPUTS

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.





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



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



This example returns a list of packages available for import in the specified directory (in this case,

c:\\CRM\\SDK\\Tools\\PackageDeployer).

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



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



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.



RELATED LINKS

Online help: https://technet.microsoft.com/en-us/lib ... 56299.aspx