If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Powershell help - remove line break - 0D 0A

Hi,
I'm posting in here because I saw another thread saying this was the right place to post powershell questions.

I have a script that generates a hash variable. I want to use the hash for a password for something. The hash out puts to a text file and also to the clip board.

I want to use the clipboard to paste the variable into another application. The problem is that the clipboard also includes the termination string 0D0A. I just want the text for the hash in the clipboard nothing else. How do I remove it? I've tried a few things now this is my current version just trying to remove the 0D.