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.
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 |
-Name
Specifies the fully qualified domain name (FQDN) of the Virtual Machine Manager (VMM) server.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ServerType
Specifies the type of server.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SpfSettings
Specifies an array of Service Provider Foundation settings.
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.SpfSetting[] |
Position: | Named |
Default value: | None |
Required: | False |
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: | 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