Remove-SCSPFServer

Applies To: System Center 2012 R2 Orchestrator

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 executing the command.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

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.

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