Remove-SCSPFServer
Removes one or more server objects.
Syntax
Empty (Default)
Remove-SCSPFServer
[-WhatIf]
[-Confirm]
[<CommonParameters>]
FromServerParameterSetName
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.
Parameter properties
| Type: | System.Management.Automation.SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | cf |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Server
Specifies the name of one or more VMM server objects. To obtain a server object, use the Get-SCSPFServer cmdlet.
Parameter properties
| Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Server[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
FromServerParameterSetName
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
| Type: | System.Management.Automation.SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | wi |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.