Set-SCSPFServer

Set-SCSPFServer

Associates a server with one or more stamps.

Syntax

Parameter Set: Default
Set-SCSPFServer -Server <Server> [-Stamps <Stamp[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-SCSPFServer cmdlet associates a server with a stamp in Service Provider Foundation. Currently, you can associate only a VMM server with a stamp.

If you want to add an association of a stamp to a server without changing the stamps currently associated with the server, use the Set-SCSPFStamp cmdlet.

Parameters

-Server<Server>

Specifies the server object to be set to new values by the other parameters in this cmdlet. To obtain a server, use the Get-SCSPFServer cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Stamps<Stamp[]>

Specifies one or more stamps to associate with the server. To obtain a stamp, use the Get-SCSPFStamp cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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: Set a server to a stamp.

The first two commands get a stamp and a server.

The third command associates the server with the stamp.

PS C:\> $stamp_silver = Get-SCSPFStamp -Name "Silver"
PS C:\> $server = Get-SCSPFServer -Name "serverD7"
PS C:\> Set-SCSPFServer -Server $server -Stamps $stamp_silver

New-SCSPFServer

Get-SCSPFServer

Remove-SCSPFServer