How are you running WinSCP from your PowerShell script?
If you are using a WinSCP .NET assembly, it automatically turns on XML logging, as it uses the log to retrieve results. You can tell (or alter) a location of the log using
Session.XmlLogPath. Though note that the assembly removes the log, once you call
Session.Dispose. Anyway, if you are using the assembly, what do you need the XML log for? You get all the information from the assembly methods. That's actually a whole point of the assembly, to spare you from parsing the XML log.
Reply with quote