I have a script who reads a SQL Lite database from a network share in powershell. It works perfectly directly in PowerShell. But from PRTG, the script can't access to the file. So, after few failures, I try with a mapped network drive. And it's doesn't work neither. Furthermore, when I add " wmic logicaldisk get caption " into the script, and activate the debug into PRTG to write outpu into a file, the script doesn't see the mapped drive. I think the issue comes from the Probe Service, who doesn't use the same account as me.
I also tried to add Windows Systems credentials for the network share into the settings of the object. But it doesn't work neither.
The script is available here : https://github.com/Areku95/SynoBackupSensor
Thank you in advance !