New-SCSPFSetting
Applies To: System Center 2012 R2 Orchestrator
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.
Specifies a friendly name for the setting.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies the sever associated with the setting.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies the value for the setting.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies either DatabaseConnectionString or EndPointConnectionString.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
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