Get D365PackageBundleDetail - FH-Inway/d365fo.tools GitHub Wiki
Get the details from an axscdppkg file
Get-D365PackageBundleDetail [-Path] <String> [[-ExtractionPath] <String>] [[-KB] <String>] [[-Hotfix] <String>]
[-Traverse] [-KeepFiles] [-IncludeRawManifest] [<CommonParameters>]
Get the details from an axscdppkg file by extracting it like a zip file.
Capable of extracting the manifest details from the inner packages as well
Get-D365PackageBundleDetail -Path "c:\temp\HotfixPackageBundle.axscdppkg" -Traverse
This will extract all the content from the "HotfixPackageBundle.axscdppkg" file and extract all inner packages. For each inner package it will find the manifest file and fetch the KB numbers. The raw manifest file content is included to be analyzed.
Get-D365PackageBundleDetail -Path "c:\temp\HotfixPackageBundle.axscdppkg" -ExtractionPath C:\Temp\20180905 -Traverse -KeepFiles
This will extract all the content from the "HotfixPackageBundle.axscdppkg" file and extract all inner packages. It will extract the content into C:\Temp\20180905 and keep the files after completion.
Get-D365PackageBundleDetail -Path C:\temp\HotfixPackageBundle.axscdppkg -Traverse -IncludeRawManifest
This is an advanced scenario.
This will traverse the "HotfixPackageBundle.axscdppkg" file and will include the raw manifest file details in the output.
Get-D365PackageBundleDetail -Path C:\temp\HotfixPackageBundle.axscdppkg -Traverse -IncludeRawManifest | ForEach-Object {$_.RawManifest | Out-File "C:\temp\$($_.PackageId).txt"}
This is an advanced scenario.
This will traverse the "HotfixPackageBundle.axscdppkg" file and save the manifest files into c:\temp. Everything else is omitted and cleaned up.
Path to the axscdppkg file you want to analyze
Type: String
Parameter Sets: (All)
Aliases: File
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Path where you want the cmdlet to work with extraction of all the files
Default value is: C:\Users\Username\AppData\Local\Temp
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: ([System.IO.Path]::GetTempPath())
Accept pipeline input: False
Accept wildcard characters: False
KB number of the hotfix that you are looking for
Accepts wildcards for searching. E.g. -KB "4045*"
Default value is "*" which will search for all KB's
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: *
Accept pipeline input: False
Accept wildcard characters: False
Package Id / Hotfix number the hotfix that you are looking for
Accepts wildcards for searching. E.g. -Hotfix "7045*"
Default value is "*" which will search for all hotfixes
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: *
Accept pipeline input: False
Accept wildcard characters: False
Switch to instruct the cmdlet to traverse the inner packages and extract their details
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Switch to instruct the cmdlet to keep the files for further manual analyze
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Switch to instruct the cmdlet to include the raw content of the manifest file
Only works with the -Traverse option
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: Hotfix, KB, Manifest, HotfixPackageBundle, axscdppkg, Package, Bundle, Deployable
Author: Mötz Jensen (@Splaxi)