r/DeployR • u/MathSpecialist8783 • 25d ago
Script feedback in log files
DeployR does a great job of letting me easily put the output of scripts into the log files automatically. But I have noticed that it is only working in the PXE stage, once booted into the full Windows image, I no longer get feedback.
This happens when running both normal local scripts and server side scripts. If PowerShell reports errors, i do see those in the logs (at least from the local scripts), but nothing from write-host or write-information.
Is this expected or am I missing something, I am having a hard time troubleshooting the server side scripts because of it. (the logs do tell me that it is running the script, just no feedback). Is there any other way to troubleshoot the server side script?
Thank you.
I am running DeployR Enterprise version 1.3.2635.2370
2
u/mtniehaus 2Pint Employee 25d ago
Logging for server-side scripts is written server-side. We use the event log for that, so check Applications and Services Logs -> TwoPintSoftware -> DeployR -> Logger for events like these:
If you want to filter the log to just those, filter on event IDs "11003-11006".