New-SCSpfServer

Adds a server to the Service Provider Foundation database.

Syntax

New-SCSpfServer [-Confirm] -Name <String> -ServerType <String> [-SpfSettings <SpfSetting[]>]
 [-Stamps <Stamp[]>] [-WhatIf] [<CommonParameters>]

Description

The New-SCSPFServer cmdlet adds a server to the Service Provider Foundation database.

Examples

Example 1: Add a server

PS C:\>$Stamp = Get-SCSPFStamp -Name "ContosoStampName01"
PS C:\> New-SCSPFServer -Name "ContosoServer23" -ServerType "0" -Stamps $Stamp

The first command gets a stamp.

The second command creates a server with a specified name and VMM server type, and associates the server with a stamp.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the fully qualified domain name (FQDN) of the Virtual Machine Manager (VMM) server.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServerType

Specifies the type of server.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SpfSettings

Specifies an array of Service Provider Foundation settings.

Type:SpfSetting[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Stamps

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

Type:Stamp[]
Required:False
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False