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.

Required Parameters

-Server

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

Type:Server[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value: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
Accept pipeline input:False
Accept wildcard characters:False