Remove-SCBaseline

Removes a baseline from VMM.

Syntax

Remove-SCBaseline
      [-VMMServer <ServerConnection>]
      [-Baseline] <Baseline>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCBaseline cmdlet removes a baseline and its scope assignments from Virtual Machine Manager (VMM). Compliance is no longer graded for this baseline.

For more information about baselines, type Get-Help New-SCBaseline.

Examples

Example 1: Remove a baseline

PS C:\> $Baseline = Get-SCBaseline -Name "Security Baseline"
PS C:\> Remove-SCBaseline -Baseline $Baseline

The first command gets the baseline object named Security Baseline and stores the object in the $Baseline variable.

The second command removes the baseline stored in $Baseline (Security Baseline).

Parameters

-Baseline

Specifies a VMM baseline object.

Type:Baseline
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

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

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
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:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Baseline

This cmdlet returns a Baseline object.