Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get-Credential popupbox still saves credentials even when fields are empty or when your press the Cancel-button.

$
0
0

Dear Experts,

Get-Credential popupbox still saves credentials even when fields are empty or when your press the Cancel-button. How can i solve this in PowerShell? I have wrote that de credentials will be written to file

$credentials = Get-Credential  #popup box$filename = 'L:\secretfile.txt'$credentials | Export-CliXml -Path $filename

gr.P


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>