PowerShell 复制 ConvertTo-SecureString [-String] <String> [-Key <Byte[]>] [<CommonParameters>]说明ConvertTo-SecureString cmdlet 会将加密的标准字符串转换为安全字符串。 它还可以将纯文本转换为安全字符串。 它与 ConvertFrom-SecureString 和Read-Host 一起使用。 由 cmdlet 创建的安全字符串可与...
模組: Microsoft.PowerShell.Security 將純文字或加密字串轉換為安全字串。SyntaxPowerShell 複製 ConvertTo-SecureString [-String] <String> [[-SecureKey] <SecureString>] [<CommonParameters>]PowerShell 複製 ConvertTo-SecureString [-String] <String> [-AsPlainText] [-Force] [<CommonParameters>]...
https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs#L210 可以看出,在 SecureStringHelper.Encrypt(SecureString, Key);中对待加密的字符串执行加密操作。跟进 https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/...
导出指定用户的所有邮件 筛选导出邮件 导出请求记录 使用powershell脚本导出邮件 导出指...
ConvertTo-SecureString[-String] <String> [[-SecureKey] <SecureString>] [<CommonParameters>] PowerShell ConvertTo-SecureString[-String] <String> [-AsPlainText] [-Force] [<CommonParameters>] PowerShell ConvertTo-SecureString[-String] <String> [-Key <Byte[]>] [<CommonParameters>] ...
ConvertTo-SecureString[-String] <String> [[-SecureKey] <SecureString>] [<CommonParameters>] PowerShell ConvertTo-SecureString[-String] <String> [-AsPlainText] [-Force] [<CommonParameters>] PowerShell ConvertTo-SecureString[-String] <String> [-Key <Byte[]>] [<CommonParameters>] ...
Microsoft.PowerShell.Security.Activities.dll Package: Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0 Activity to invoke the Microsoft.PowerShell.Security\ConvertTo-SecureString command in a Workflow. C++Copy publicrefclassConvertToSecureStringsealed:Microsoft::PowerShell::Activities::...
Microsoft.PowerShell.Security.Activities.dll Package: Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0 Activity to invoke the Microsoft.PowerShell.Security\ConvertTo-SecureString command in a Workflow. C++Copy publicrefclassConvertToSecureStringsealed:Microsoft::PowerShell::Activities::...
Applies To: Windows PowerShell 2.0 Converts encrypted standard strings to secure strings. It can also convert plain text to secure strings. It is used withConvertFrom-SecureStringandRead-Host. Syntax Copy ConvertTo-SecureString [-Key <Byte[]>] [-String] <string> [<CommonParameters>] ConvertTo...
I'm trying to convert some scripts to work with the Active Directory modules, but they need a secure string for the password. How do I create one of these? Use theConvertTo-SecureStringcmdlet, capture the output, then supply the new variable asSecureStringfor the password: ...