Add D365ModuleToRemove - FH-Inway/d365fo.tools GitHub Wiki
Adds a ModuleToRemove.txt file to a deployable package
Add-D365ModuleToRemove [-ModuleToRemove] <String> [-DeployablePackage] <String> [-OutputPath <String>]
[<CommonParameters>]
Modifies an existing deployable package and adds a ModuleToRemove.txt file to it.
Add-D365ModuleToRemove -ModuleToRemove "C:\temp\ModuleToRemove.txt" -DeployablePackage "C:\temp\DeployablePackage.zip"
This will take the "C:\temp\ModuleToRemove.txt" file and add it to the "C:\temp\DeployablePackage.zip" deployable package in the "AOSService/Scripts" folder.
New-D365ModuleToRemove -Path C:\Temp -Modules "MyRemovedModule1","MySecondRemovedModule" | Add-D365ModuleToRemove -DeployablePackage C:\Temp\DeployablePackage.zip
This will create a new ModuleToRemove.txt file and fill in "MyRemovedModule1" and "MySecondRemovedModule" as the modules to remove. The file is then added to the "C:\Temp\DeployablePackage.zip" deployable package.
Path to the ModuleToRemove.txt file that you want to have inside a deployable package
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Path to the deployable package file where the ModuleToRemove.txt file should be added
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Path where you want the generated deployable package to be stored
Default value is the same as the "DeployablePackage" parameter
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: $DeployablePackage
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.
Author: Florian Hopfner (@FH-Inway)