Remove-SCSPFServer

Remove-SCSPFServer

Removes one or more server objects.

Syntax

Parameter Set: FromServerParameterSetName
Remove-SCSPFServer -Server <Server[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Remove-SCSPFServer cmdlet removes one or more VMM servers from the Service Provider Foundation database.

Parameters

-Server<Server[]>

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

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.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

1: Remove a server.

The first command gets the server object named server23G and stores the object in the $srvr variable.

The second command removes the server.

PS C:\> $srvr = Get-SCSPFServer -Name "server23G"
PS C:\> Remove-SCSPFServer –Server $srvr

New-SCSPFServer

Set-SCSPFServer

Get-SCSPFServer