Set-SCSPFServer

Associates a server with one or more stamps.

Syntax

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

Description

The Set-SCSPFServer cmdlet associates a server with a stamp in the Service Provider Foundation service. You can only associate a Virtual Machine Manager (VMM) server with a stamp.

If you want to associate a stamp with a server without changing the current stamps, use the Set-SCSPFStamp cmdlet.

Examples

Example 1: Associate a server with a stamp

PS C:\>$Stamp = Get-SCSPFStamp -Name "ContosoStamp"
PS C:\> $Server = Get-SCSPFServer -Name "ContosoServer17"
PS C:\> Set-SCSPFServer -Server $Server -Stamps $Stamp

The first command gets a stamp.

The second command gets a server. The third command associates the server with the stamp.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Server

Specifies a server object to associate with new stamps. To obtain a server object, use the Get-SCSPFServer cmdlet.

Type:Microsoft.SystemCenter.Foundation.SPFData.Types.Server
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Stamps

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

Type:Microsoft.SystemCenter.Foundation.SPFData.Types.Stamp[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object