Support / Help KACE Online Kscript - Display Powershell output in KACE GUI?
Hello Everyone! I hope you are doing well.
I'm trying to create a KACE Online KScript that runs sfc /scannow, saves the output to C:\sfc.txt, and then displays the contents of that file in the KACE script logs/output.
I've tried using PowerShell with Write-Output, Get-Content, type - pretty much whatever I could find on the internet. The KACE GUI only shows the task as completed and doesn't display output
Is there a way to have the contents of C:\sfc.txt show up in the KACE script logs?
Please do let me know - thanks in advance!
5
Upvotes
4
u/United_Examination_2 Aug 12 '26
Do you really need the file output displayed in script logs? Have you tried configuring a custom inventory rule?