Get-SecretStoreConfiguration
傳回 SecretStore 組態資訊。
語法
Default (預設值)
Get-SecretStoreConfiguration
Description
Important
PowerShell 團隊決定 Secret 模組功能已完整,將不再積極開發。 這些模組將持續提供安全及關鍵錯誤修正支援。 程式碼庫已被歸檔。
最新出版版本如下:
自從這個專案設計以來,祕密的本質已經徹底改變。 無密碼認證方法如通行金鑰、單一登入,以及聯邦憑證系統如 Microsoft Entra ID、生物辨識和硬體安全金鑰,是未來趨勢。
此 Cmdlet 會讀取 SecretStore 組態檔,並傳回已定義的設定。
範例
範例 1
PS C:\> Get-SecretStoreConfiguration
Scope Authentication PasswordTimeout Interaction
----- -------------- --------------- -----------
CurrentUser Password 900 Prompt
此範例顯示 SecretStore的目前組態。 它是為當前使用者配置的。 它需要密碼才能在會話中初始存取,並在互動式會話中提示使用者輸入密碼。 在 15 分鐘之後,再次需要密碼才能存取。
輸入
None
輸出
Microsoft.PowerShell.SecretStore.SecureStoreConfig
備註
AllUsers不支援 Scope。
範圍 一律 CurrentUser。