-
Notifications
You must be signed in to change notification settings - Fork 0
Remove UnifiedEnvironmentModule
Remove UDE environment modules.
Remove-UnifiedEnvironmentModule [-EnvironmentId] <String> [[-ModuleId] <String>] [[-Name] <String>] [-Force]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Removes UDE environment modules (msprov_fnomodule records) for a specified environment.
Modules are matched by module id and name. Nothing is removed unless the -Force switch is supplied. Without -Force the cmdlet lists the modules that would be removed.
Remove-UnifiedEnvironmentModule -EnvironmentId "env-123" -ModuleId "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6"
This will show the module that would be removed for the specified environment id. It will NOT remove the module yet, allowing you to review it before deciding to remove it.
Remove-UnifiedEnvironmentModule -EnvironmentId "env-123" -ModuleId "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6" -Force
This will remove the specified module for the specified environment id without further confirmation.
Get-UnifiedEnvironmentModule -EnvironmentId "env-123" | Remove-UnifiedEnvironmentModule -Force
This will remove all modules 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 module that you want to remove.
Supports wildcard characters for flexible matching against the module 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 module that you want to remove.
Supports wildcard characters for flexible matching against the module 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 modules.
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)