Remove-SCPhysicalComputerProfile

Removes a physical computer profile from VMM.

Syntax

Remove-SCPhysicalComputerProfile
      [-PhysicalComputerProfile] <PhysicalComputerProfile>
      [-Force]
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCPhysicalComputerProfile cmdlet removes a physical computer profile from Virtual Machine Manager (VMM).

Examples

Example 1: Remove a physical computer profile from VMM

PS C:\> $PCP = Get-SCPhysicalComputerProfile -Name "Windows Server 2012 R2" 
PS C:\> Remove-SCPhysicalComputerProfile -PhysicalComputerProfile $PCP

The first command gets the physical computer profile named Windows Server 2012 R2 by using the Get-SCPhysicalComputerProfile cmdlet. The command stores it in the $PCP variable.

The second command deletes the physical computer profile in $PCP from VMM.

Parameters

-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

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
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

-PhysicalComputerProfile

Specifies a profile that is used to deploy an operating system to a computer.

Type:PhysicalComputerProfile
Position:0
Default value:None
Required:True
Accept pipeline input:True
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

-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

PhysicalComputerProfile

This cmdlet returns a PhysicalComputerProfile object.