-
Notifications
You must be signed in to change notification settings - Fork 0
Remove UnifiedEnvironmentPackage
Remove UDE environment packages.
Remove-UnifiedEnvironmentPackage [-EnvironmentId] <String> [[-PackageId] <String>] [[-Name] <String>] [-Force]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Removes UDE environment packages (msprov_fnopackage records) for a specified environment.
Packages are matched by package id and name. Nothing is removed unless the -Force switch is supplied. Without -Force the cmdlet lists the packages that would be removed.
Remove-UnifiedEnvironmentPackage -EnvironmentId "env-123" -PackageId "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6"
This will show the package that would be removed for the specified environment id. It will NOT remove the package yet, allowing you to review it before deciding to remove it.
Remove-UnifiedEnvironmentPackage -EnvironmentId "env-123" -PackageId "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6" -Force
This will remove the specified package for the specified environment id without further confirmation.
Get-UnifiedEnvironmentPackage -EnvironmentId "env-123" | Remove-UnifiedEnvironmentPackage -Force
This will remove all packages returned for the specified environment id without further confirmation.
The id of the environment that you want to work against
Type: String
Parameter Sets: (All)
Aliases: PpacEnvId
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe id of the package that you want to remove.
Supports wildcard characters for flexible matching against the package id.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: *
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe name of the package that you want to remove.
Supports wildcard characters for flexible matching against the package name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: *
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseInstructs the function to proceed with removing the packages.
Nothing happens unless this parameter is supplied.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)