Remove-CMTSStepRunPowerShellScript

Removes a TS step run power shell script

Syntax

Remove-CMTSStepRunPowerShellScript
      [-InputObject] <IResultObject>
      [-StepName <String>]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-CMTSStepRunPowerShellScript
      [-TaskSequenceId] <String>
      [-StepName <String>]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-CMTSStepRunPowerShellScript
      [-TaskSequenceName] <String>
      [-StepName <String>]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Note

Configuration Manager cmdlets must be run from the Configuration Manager site drive. The examples in this article use the site name XYZ. For more information, see the getting started documentation.

Examples

Example 1

PS XYZ:\>

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject
Type:IResultObject
Aliases:TaskSequence
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-StepName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TaskSequenceId
Type:String
Aliases:Id, TaskSequencePackageId
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TaskSequenceName
Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object