New-SCSpfServer

Adds a server to the Service Provider Foundation database.

Syntax

New-SCSpfServer
   -Name <String>
   [-SpfSettings <SpfSetting[]>]
   -ServerType <String>
   [-Stamps <Stamp[]>]
   [-WhatIf]
   [-Confirm]
   [<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.

Required Parameters

-Name

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

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

Specifies the type of server.

Type:String
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
-SpfSettings

Specifies an array of Service Provider Foundation settings.

Type:SpfSetting[]
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[]
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