0
This worked for me:
ls "~\desktop\CMR Desktop.rdp" -recurse | %{ (gc $_ ) -replace "session bpp:i:32", "session bpp:i:24" | set-content $_.FullName -force }
Instead of the -replace
switch, which one do I use to add or insert new lines to the config file?
Such as:
ls "~\desktop\CMR Desktop.rdp" -recurse | %{
(gc $_ ) -insert "set audioqualitymode:1:2" |
set-content $_.FullName -force
}
The -insert
or -add
doesn't work.
Okay with this article https://superuser.com/questions/446211/change-to-home-directory-in-powershell?newreg=22b2fcebb4cf4bfaba791fbe904507b4 i got the error to go away but it doesn't change the displayconectionbar:i:1 to a 0
– James – 2018-12-14T15:08:07.2671
What are you asking? Please edit the question to make it more clear... in it's current state this question is likely to be closed...
– Attie – 2018-12-14T15:16:49.147