📜  powershell 凭据对象 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:10.662000             🧑  作者: Mango

代码示例2
# Define clear text string for username and password
[string]$userName = 'MyUserName'
[string]$userPassword = 'MySuperSecurePassword'

# Convert to SecureString
[securestring]$secStringPassword = ConvertTo-SecureString $userPassword -AsPlainText -Force