3 ms·
"Notice that you can't serialise a Powershell stream." Not sure what you mean by this. This code works fine: $credential = Get-Credential -Message "Enter
by astine 7y ago
"Notice that you can't serialise a Powershell stream."
Not sure what you mean by this. This code works fine:
$credential = Get-Credential -Message "Enter Credential"
$credential | Export-Clixml "credential.xml"
$credential = Import-Clixml "credential.xml"
You can also
$variable | Out-File ./file.txt
if you just want to save the text output.
- 7thaccount 7y agoYea, but Powershell is nearly unusable in many use cases. It is soooo slow for some things. I really like bits and pieces of it though.