Get-SCSpfSetting

Gets a setting for a database connection or for a portal endpoint.

Syntax

Get-SCSpfSetting -ID <Guid[]> [<CommonParameters>]
Get-SCSpfSetting -Name <String[]> [<CommonParameters>]
Get-SCSpfSetting -Server <Server> [-SettingType <String>] [<CommonParameters>]
Get-SCSpfSetting -ServerName <String> [-SettingType <String>] [<CommonParameters>]
Get-SCSpfSetting [-SettingType <String>] [<CommonParameters>]

Description

The Get-SCSPFSetting cmdlet gets the setting for a database connection or for a portal endpoint connection.

Examples

Example 1: Get a setting

PS C:\>$Setting = Get-SCSPFSetting -ID f3b39608-ac58-40b7-853c-241e343b256a

This command gets an existing setting by its ID.

Parameters

-ID

Specifies the GUID for the setting.

Type:Guid[]
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies a name for the setting.

Type:String[]
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Server

Specifies a server object associated with the setting.

Type:Server
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ServerName

Specifies the name of the sever associated with the setting.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SettingType

Specifies either DatabaseConnectionString or EndPointConnectionString.

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