Get-WFWindowsCredential

Get-WFWindowsCredential

這個 Cmdlet 傳回WFCredential (使用 Windows 驗證模式時需要)。

語法

Parameter Set: Default
Get-WFWindowsCredential [-Credential <PSCredential> ] [-Password <SecureString> ] [-UserName <String> ] [ <CommonParameters>]

詳細描述

執行Get-WFWindowsCredential 傳回WFCredential (使用 Windows 驗證模式時需要)。

參數

-Credential<PSCredential>

指定連線至 Workflow 服務時要使用的認證。若未指定,目前登入的使用者所用的 Windows 認證將用來連線至服務。

別名

必要項?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-Password<SecureString>

指定密碼。考慮使用Read-Host Cmdlet 與AsSecureString 選項,以便安全地從主控台讀取使用者密碼。

別名

必要項?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-UserName<String>

使用者的使用者名稱。可以使用「網域\使用者名稱」或「使用者名稱@網域」的格式。

別名

必要項?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

<CommonParameters>

這個指令程式支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters

輸入

輸入類型是可透過管道傳送至指令程式的物件類型。

輸出

輸出類型是指令程式所發出的物件類型。

範例

 

傳回WFCredential (使用 Windows 驗證模式時需要)。

PS C:\> $Password = Read-Host -assecurestring "Please enter your password"
Get-WFWindowsCredential -UserName Contoso\Bob -Password $Password

Workflow Manager 1.0 MSDN Community Forum