First time posting. I am hoping to get some help. I was running Filezilla Server 1.3.0 and recently tried upgrading to a more recent version of 1.4.1. I used 1.3.0 to create an automation using PowerShell to open and close firewall ports based on what the configuration is in the settings.xml. For 1.3.0 this works perfectly, however, in 1.4.1 powershell is reporting that the xml is invalid. I think it stems from the <filezilla> tag at the start of the XML file. The newer versions seem to have some comments in the tag itself and that is making the xml file unreadable.
Full disclosure, I am not experienced in XML as most software I use has a json or ini configuration file. Here is the way I am getting the configuraton information out of Filezilla 1.3.0 settings.xml.
Code: Select all
$FilezillaCFG = [xml](Get-Content "C:\Windows\System32\config\systemprofile\AppData\Local\filezilla-server\settings.xml")
$FTP_Port = $FilezillaCFG.filezilla.server.listener.port #FileZilla Config FTP Port
$FTP_PASV_PORT_MIN = $FilezillaCFG.filezilla.server.session.pasv.port_range.min #FileZilla Config FTP Lower Passive Mode Port
$FTP_PASV_PORT_MAX = $FilezillaCFG.filezilla.server.session.pasv.port_range.max #FileZilla Config FTP Upper Passive Mode Port
Any help with this would be hugely appriciated, I know it is not specifically a Filezilla Server Support Problem and probably more a Powershell problem. But if anyone out there knows how to make it work I would appriciate it.
- OzDeaDMeaT