We are trying to export the contents of an audit trail log (V11 and V12) using the Powershell script referenced in the documentation:
Laserfiche Audit Trail 11 Frequently Asked Questions (FAQ) - Knowledge Base
(Thanks Joshua)
The script has a parameter for a username or password, and will use the current Windows credentials if this parameter is not filled in.
The user account we are using is a local administrator and also the admin of the Laserfiche system, and can run all reports natively in the AT Reporter. In spite of that, the script consistently throws an access denied error. This does not seem to be Windows permissions. We have run Powershell as an Administrator and not, and that makes no difference.
What is interesting is that the error is a write error, which would imply that the problem is not in reading the report, but in writing the csv. We even created a file with the name of our output file, but that did not change the results. Here is the error detail:
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Export-AuditReport.ps1
And the PS Command we are using:
$password = "XYZ" | ConvertTo-SecureString -asPlainText -Force
.\Export-AuditReport.ps1 -BaseUrl "https://audit.example.com/AuditTrail" -Repository MyRepo -ReportId 3J29wOW6GEm_kLqOle1idg -ExportFile C:\temp\savedReport.csv -Username example.com\service-user -Password $Password
We went back to check the parameters a bunch of times, because it's often something stupid that gets you. So, LF Folks, has anyone run this successfully?