New-SCSPFSetting

New-SCSPFSetting

Creates a setting for a variety of purposes.

構文

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

詳細説明

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

パラメーター

-Name<String>

Specifies a friendly name for the setting.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Server<Server>

Specifies the sever associated with the setting.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Value<String>

Specifies the value for the setting.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-SettingType<String>

Specifies either DatabaseConnectionString or EndPointConnectionString.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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