【发布时间】:2017-05-17 21:14:33
【问题描述】:
我们的第三方 IIS 团队提供带有虚拟主机名前缀的 IIS FTP 用户名。例如:“x.y.z.com|Username”(注意管道分隔符)。
运行 PowerShell Get-Credential 命令:
Get-Credential | Export-Clixml {FILEPATH}
然后在弹出窗口中提供“用户名”=“x.y.z.com|用户名”会提供此工具提示错误:
Examples:
User Name
username@domain
DOMAIN\
我可以手动生成安全字符串并导入/导出,但我希望有一种简单的开箱即用方式来存储此凭据。
一些背景: https://www.iis.net/configreference/system.ftpserver/serverruntime/hostnamesupport https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.security/get-credential
【问题讨论】:
标签: powershell security iis ftp