New D365ModuleToRemove - FH-Inway/d365fo.tools GitHub Wiki
Create a new ModuleToRemove.txt file
New-D365ModuleToRemove [-Path] <String> [-Modules] <String[]> [<CommonParameters>]
Create a new ModuleToRemove.txt file based on a list of module names
New-D365ModuleToRemove -Path C:\Temp -Modules "MyRemovedModule1","MySecondRemovedModule"
This will create a new ModuleToRemove.txt file and fill in "MyRemovedModule1" and "MySecondRemovedModule" as the modules to remove. The new file is stored at "C:\Temp\ModuleToRemove.txt"
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
Type: String
Parameter Sets: (All)
Aliases: Folder
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The array with all the module names that you want to fill into the ModuleToRemove.txt file
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
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)