Partager via


Remove-SCSPFServer

Removes one or more server objects.

Syntax

Remove-SCSPFServer
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-SCSPFServer
      -Server <Server[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCSPFServer cmdlet removes one or more Virtual Machine Manager (VMM) servers from the Service Provider Foundation database.

Examples

Example 1: Remove a server

PS C:\>$Server = Get-SCSPFServer -Name "ContosoServer23"
PS C:\> Remove-SCSPFServer -Server $Server

The first command gets the server object named ContosoServer23, and stores it in the $Server variable.

The second command removes the server.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Server

Specifies the name of one or more VMM server objects. To obtain a server object, use the Get-SCSPFServer cmdlet.

Type:Microsoft.SystemCenter.Foundation.SPFData.Types.Server[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.SystemCenter.Foundation.SPFData.Types.Server[]

Outputs

System.Object