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> [-Key <Byte[]>] [<CommonParameters>]说明ConvertTo-SecureString cmdlet 会将加密的标准字符串转换为安全字符串。 它还可以将纯文本转换为安全字符串。 它与 ConvertFrom-SecureString 和Read-Host 一起使用。 由 cmdlet 创建的安全字符串可与需要类型为 SecureStr...
例如,将“A123456”转化为Securestring PS C:\WINDOWS\system32>$seString = ConvertTo-SecureString -String "A123456" -AsPlainText -Force PS C:\WINDOWS\system32>$seStr System.Security.SecureString 1. 2. 3.
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 Kopiraj ConvertTo-SecureString [-String] <String> [-AsPlainText] [-Force] [<CommonParameters>]PowerShell Kopiraj ConvertTo-SecureString [-String] <String> [-Key <Byte[]>] [<CommonParam...
使用PSSession连接Exchange服务器管理邮件 导出邮件 导出所有用户的所有邮件 导出指定用户的所...
$pwd=ConvertTo-SecureString-String"Admin_123456"-Force-AsPlainText Get-ChildItem-Path'Cert:\CurrentUser\My'|Where-Object{$_.Subject-match"mylab.wang.io"}|Export-PfxCertificate-FilePathC:\Users\Administrator\Desktop\cert\mylab.wang.io.pfx-Password $pwd ...
ConvertToSecureStringCommand.AsPlainText Property Reference Feedback Definition Namespace: Microsoft.PowerShell.Commands Assembly: Microsoft.PowerShell.Security.dll Package: Microsoft.PowerShell.Security v7.4.0 Gets or sets the flag that marks the unsecured string as a plain text string. C++ Copy...
variable $cred. The $cred variable can then be passed to the –credential parameter as often as needed. You can even use the ConvertTo-SecureString and ConvertFrom-SecureString cmdlets to convert the credential into an encrypted string or to convert a previously encrypted string back into a ...
Activity to invoke the Microsoft.PowerShell.Security\ConvertTo-SecureString command in a Workflow. C++Copy publicrefclassConvertToSecureStringsealed:Microsoft::PowerShell::Activities::PSRemotingActivity Constructors Expand table ConvertToSecureString() ...