Set-SCSPFServer
Associates a server with one or more stamps.
Syntax
Default (Default)
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.
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 a server object to associate with new stamps. 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
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Stamps
Specifies one or more stamps to associate with the server. To obtain a stamp, use the Get-SCSPFStamp cmdlet.
Parameter properties
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Stamp[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
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.