Remove-SCSpfServer

Removes one or more server objects.

Syntax

Remove-SCSpfServer [-Confirm] -Server <Server[]> [-WhatIf] [<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:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value: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:Server[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-WhatIf

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

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