I need some help with an powershell script I just can not figure out on how to do it.
The very basic question is, if I have 2 config files, 1. default and 2. specific updated values. How do I "compare" the two setting files, and how do I create a third config File.
Lets say, config one (default_config.txt):
## general settings ##
user = 1
ringtonetype = 1
ringtonevolume = 10
## user settings
volumespeaker = 10
volumeheadset = 9
## ldap settings
address = 192.168.0.244
subnet = 255.255.255.0
user = admin
password = admin
And specific Values for config two (config_new_site.txt):
## general settings ##
ringtonetype = 5
ringtonevolume = 15
## user settings
volumespeaker = 5
volumeheadset = 5
How to create "config_new_site_updated.txt with default values and updated from "new site"?
It should look like this:
## general settings ##
user = 1
ringtonetype = 5
ringtonevolume = 15
## user settings
volumespeaker = 5
volumeheadset = 5
## ldap settings
address = 192.168.0.244
subnet = 255.255.255.0
user = admin
password = admin
Any advice is highly appreciated and thank you in advance!