Hi to all forum members. Please can some one kindly help me with this slight problem.
I am running a query using LP and it works fine, except that the data when written to a CSV file is all on one line. Here is the query
output_path = "'C:\WINDOWS\Temp\joop\" & user_name & "\Group Membership.csv'"
Set objinputformat = CreateObject("MSUtil.LogQuery.ADSInputFormat")
Set objoutputformat = CreateObject("MSUtil.LogQuery.CSVoutputFormat")
objinputformat.objClass = "user"
strQuery = "SELECT cn, memberOf INTO " & output_path & " FROM 'Domain Name' where sAMAccountName='HG363'"
objLogParser.ExecuteBatch strQuery, objInputFormat , objOutputFormat
Please can some one show me what I need to do to fix this, kind regards HG363 London UK