New-SCSPFSetting

Applies To: System Center 2012 R2 Orchestrator

New-SCSPFSetting

Creates a setting for a variety of purposes.

Syntax

Parameter Set: Empty
New-SCSPFSetting -ServerName <String> -SettingType <String> -Value <String> [-Name <String> ] [-Server <Server> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The New-SCSPFSetting cmdlet creates a connection string for either a database connection or for a portal endpoint connection.

Parameters

-Name<String>

Specifies a friendly name for the setting.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Server<Server>

Specifies the sever associated with the setting.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Value<String>

Specifies the value for the setting.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SettingType<String>

Specifies either DatabaseConnectionString or EndPointConnectionString.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServerName<String>

Specifies the name of the server the setting is associated with. The actual association is made by the Server parameter with a server object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

1: Create a setting

This command creates a new setting for a database connection. The setting is associated with the server stored in the $curSvr variable as obtained from the Get-SCSPFServer cmdlet.

PS C:\> $setting = New-SCSPFSetting -Name mysetting -SettingType DatabaseConnectionString -SettingString  "Server=myomdwserver\\myomdwinstance;Database=OperationsManagerDW;TrustedConnection=True;Connection Timeout=300" -Server $curSvr