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

Set-RegString - How to set Data that has $ character

$
0
0

Using PSRemoteRegistry / PSRR

trying to do:

"SERVER1" | Set-RegString -Key $key -Value "Value1" -Data "te$tValue1"

when I do:

"SERVER1" | Get-RegString -Key $key -Value "Value1"

the output of the -Data is : tetValue1

How can I put the $ sign in the Data?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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