configure Https Settings using Powershell

Hi Team,

In order to automate Https configuration of Wowza I am using Powershell to modify files like VHost.xml, Server.xml and Application.xml. I am sure that every setting is fine .Even I have every settings fine I am receiving errors like "

Unable to load REST interface configuration from file /C:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.7.7/conf/Server.xml: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.|at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)|at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)|at com.wowza.wms.rest.ConfigBase.getDocumentFromFile(Unknown Source)|at com.wowza.wms.rest.RestProperties.a(Unknown Source)|at com.wowza.wms.rest.RestProperties.(Unknown Source)|" . Even if I am repalcing the file content it’s not working . Is there any restriction of file modification using external Tools . Please help

Server.xml is XML-formatted and you can edit it with external tools; just remember to restart Wowza after making changes. Presumably your Server.xml doesn’t contain valid XML. You can open the file with Notepad and check the contents, or copy/paste it into an (online) XML validator.