Maybe not the best place to put this but i've seen some talented people here so let's give it a shot.
We are looking into deploying LogMeIn on our PCs and Macs, and of course it works as intended on PC but not on Mac...
For those familiar with LogMeIn they have this "host preference" that pre-defines the settings on the host computer.
This doesn't work at all on Mac, and because of that I'm looking into setting the settings manually via scripts and so on.
Long story short, they use this XML which contains the settings, and what I want/trying to do is to find the following line:
<dword name="AllowLoopback">0x0</dword>
When this is found, I want to add the following lines under this line:
<dword name="AskForPermissionDefault">0x0</dword>
<dword name="FullCtrlBypassUsrPerm">0x0</dword>
<dword name="PermissionTimeout">0x1e</dword>
<string name="PermissionText">Lots and lots of text</string>
I have used sed before but I can't for the life of me get this to work, either it's an escape char error or I don't get the "" in the dword/string name.
Added a picture of the result I'm after, which I did manually in a text editor.
All suggestions appreciated!