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.

Required Parameters

-Server

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

Type:Server
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
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:Stamp[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False