Cmdlet 會將 ConvertFrom-SecureString 安全字串 (System.Security.SecureString) 轉換成加密的標準字串串 (System.String)。 不同於安全字串,加密的標準字串可以儲存在檔案中以供日後使用。 加密的標準字串可以使用 Cmdlet 轉換回其安全字串格式 ConvertTo-SecureStri
Gets or sets the secure string to be exported. C++ 複製 public: property System::Security::SecureString ^ SecureString { System::Security::SecureString ^ get(); void set(System::Security::SecureString ^ value); }; Property Value SecureString Applies to 產品版本 PowerShel...
Converts plain text or encrypted strings to secure strings.SyntaxPowerShell Kopioi ConvertTo-SecureString [-String] <String> [[-SecureKey] <SecureString>] [<CommonParameters>]PowerShell Kopioi ConvertTo-SecureString [-String] <String> [-AsPlainText] [-Force] [<CommonParameters>]...
ConvertTo-SecureString[-String] <String> [[-SecureKey] <SecureString>] [<CommonParameters>] PowerShell ConvertTo-SecureString[-String] <String> [-AsPlainText] [-Force] [<CommonParameters>] PowerShell ConvertTo-SecureString[-String] <String> [-Key <Byte[]>] [<CommonParameters>] ...
The output stream from the activity (Inherited fromPipelineEnabledActivity) SecureKey Provides access to the SecureKey parameter. String Provides access to the String parameter. SupportsCustomRemoting Declares whether this command supports its own custom remoting. Commands that support ...
The output stream from the activity (Inherited fromPipelineEnabledActivity) SecureKey Provides access to the SecureKey parameter. String Provides access to the String parameter. SupportsCustomRemoting Declares whether this command supports its own custom remoting. Commands that support ...
ConvertFrom-SecureString Converts a secure string into an encrypted standard string. ConvertFrom-StringData Converts a string containing one or more key/value pairs to a hash table. Convert-Path Converts a path from a Windows PowerShell path to a PowerShell provider path. ConvertTo-CSV Converts...
You will need to use both. As the synopsis states, Converts encrypted standard strings to secure strings. It can also convert plain text to secure strings. Normally this cmdlet expects an encrypted string, which is not what you are passing to it, but it can be forced to take a plain...
Remotely apply the PowerShell DSC metaconfiguration to the machines you want to onboard: $SecurePass = ConvertTo -SecureString -string "<root password>" -AsPlainText Force $Cred = New-Object System.Management.Automation.PSCredential "root" , $SecurePass $Opt = New-CimSessionOption -UseSsl: $...
The script from the first example contains two different secure string lines. The first covers how to convert a normal string into a secure string usingConvertTo-SecureString: $str2 = ConvertTo-SecureString 'Password2!' -AsPlainText -Force ...