Hi There.
Probably a basic task for the Gurus but I cant seem to figure this out.
I have a SQL Configuration file. It begins with:
;SQL Server 2012 Configuration File
[OPTIONS]
And underneath [OPTIONS] there are settings.
I need to change one of these settings but it seems when I use my usual method of
Get-Content = .\ConfigurationFile.ini | ForEach {S_ -Replace "MYOPTION", "MYNEWOPTION"} | Set-Content=.\NewConfigurationFile.ini
… doesn’t work… the Get-Content doesn’t see anything under the ‘[OPTIONS]’ section.
Did a bit of googling (pretty pressed for time on this) and tried
Get-Content = .\ConfigurationFile[“OPTIONS”] - Didn’t work… (i did other silly things I’m not going to post, but have failed.
A point in the right direction would be appreciated please…