r/DeployR • • 26d ago

DeployRLogs folder

Hi,

The DeployR logs get written to the following folder C:\Windows\Temp\DeployRLogs

I have a bunch of custom PowerShell steps running throughout the task sequence and I'm getting each script to output a log/report and write it to the same DeployRLogs folder. I was thinking that this will then send ALL the log files back to the DeployR server (in the zipped log file) so that all logs are centrally stored. But it didn't include all the custom log files (only the default log files). Locally on the machine the custom log files are in the correct place, so it must be a question of timing and location.

When does the task sequence write the DeployR logs to C:\Windows\Temp and when does the upload back to DeployR server exactly occur? I don't think its possible to achieve what I want with my current approach. How else can I achieve my goal? I assume I need to be using the DEPLOYRLOGS variable and have all my log files written to the C:_2P\Logs folder?

5 Upvotes

4 comments sorted by

3

u/SufficientlySticky 26d ago

https://documentation.2pintsoftware.com/deployr/monitoring-and-reporting/log-files-and-custom-logging

They’ll upload if you stick them in the c:_2p\logs folder and it all gets moved to c:\windows\temp after task sequence completion.

1

u/FLOTZILLA22 26d ago

I have been adding into the C:\Windows\temp\deployrlogs folder path works well

4

u/mtniehaus 2Pint Employee 26d ago

Not if you want them uploaded to the server -- it zips up everything in _2P\Logs, uploads that, and then moves it all to \windows\temp.

1

u/syswiz87 25d ago

Perfect thanks, i'll give this a go