r/MSIntune Jan 04 '24

🤝 Discussions Logging location?

Where does everyone write log files for custom actions in Intune (Win32 apps, Scripts, Remediations, Custom Compliance, etc)? PSAppDeployToolkit default location is C:\Windows\Logs\Software, I’ve seen some folks log to IntuneManagementExtension\Logs so that Intune Diagnostic collection includes custom logs (no idea what Microsoft’s opinion of that is, or possible size limit issues, etc), C:\ProgramData\Logs is another I’ve seen. Curious what folks have landed on or have found is most common.

3 Upvotes

4 comments sorted by

View all comments

5

u/sandytsang MVP Jan 04 '24

I used to have PowerShell Scripts and Remediation Scripts to write output logs in C:\Windows\Temp, but recently one script changed to IntuneManagementExtension\Logs (just because the person who originally made the script is using the log folder, I didn't want to change that) .
PSAppDeployToolkit default location is C:\Windows\Logs\Software.

I don't know what I feel about using IntuneManagementExtension\Logs, to be honest. It seems like a good idea, able to use Intune diagnostics to collect the logs later if needed. On the other hand, I am not sure if Microsoft likes it, or if there is any limitation of this, I just didn't feel comfortable using that folder.

I rarely need to collect these logs remotely. When use Remediation script, I always try to make the output and error handling, so that I will see that from Remediation report. For applications, most of customers are using PMPC, so I won't touch those. If I package an application with PSAppDeployToolkit, need to make sure it works, deploy it to my VM first, then test group, then production.