Get-SCSPFSetting
取得資料庫連接或入口網站端點的設定。
Syntax
Get-SCSPFSetting
[-SettingType <String>]
[<CommonParameters>]
Get-SCSPFSetting
-ID <Guid[]>
[<CommonParameters>]
Get-SCSPFSetting
-Name <String[]>
[<CommonParameters>]
Get-SCSPFSetting
-Server <Server>
[-SettingType <String>]
[<CommonParameters>]
Get-SCSPFSetting
-ServerName <String>
[-SettingType <String>]
[<CommonParameters>]
Description
Get-SCSPFSetting Cmdlet 會取得資料庫連線或入口網站端點連線的設定。
範例
範例 1:取得設定
PS C:\>$Setting = Get-SCSPFSetting -ID f3b39608-ac58-40b7-853c-241e343b256a
此命令會依識別碼取得現有的設定。
參數
-ID
指定設定的 GUID。
Type: | System.Guid[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定設定的名稱。
Type: | System.String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Server
指定與設定相關聯的伺服器物件。
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Server |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ServerName
指定與設定相關聯的伺服器名稱。
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SettingType
指定 DatabaseConnectionString 或 EndPointConnectionString。
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
Microsoft.SystemCenter.Foundation.SPFData.Types.Server
輸出
System.Object