How to use System variable (%appdata%) in file path for custom inventory?
I am trying to create a custom inventory by using ShellCommandTestReturn, but it's not working. Here is the command syntax;
ShellCommandTextReturn(cmd /c type %APPDATA%\Thunderbird\profiles.ini)
Also tried, ShellCommandTextReturn(cmd /c type "%APPDATA%\Thunderbird\profiles.ini")
I think the issue is using system variable %AppData% in the file location.