Write-ADTLogEntry does not create log file

I’ve tried to test PSAppDeployToolkit module v4 and can’t write log file to different path. Forex:
Write-ADTLogEntry -Message “PSAppDeployToolkit module functions” -LogType CMTrace -Source “Test-Validate” -LogFileDirectory "C:\Windows\Temp" -LogFileName “Test.log” -PassThru

It does show mesage in console but Test.log does not get created. What did I do wrong?

I wouldn’t spend much time worrying about that until a version higher than 4.0.3 get released.

This issue just got closed: [Feature] Add more flexibility to log files and folder customisation · Issue #1159 · PSAppDeployToolkit/PSAppDeployToolkit · GitHub
And this one is still open: [Bug] Function 'Update-ADTDesktop' does not log in C:\Windows\Logs\Software\xxx.log · Issue #1170 · PSAppDeployToolkit/PSAppDeployToolkit · GitHub

1 Like

It’s true that the next point release is imminent, however this should work even on 4.0.3 as can be seen from this screenshot:

1 Like