ConSol-Monitoring / snclient

SNClient+ - Cross platform monitoring agent
MIT License
52 stars 8 forks source link

Transcript is being written for every Powershell script call #140

Closed h4ppywastaken closed 3 months ago

h4ppywastaken commented 3 months ago

When running a custom ps1 check script with check_nrpe using the snclient wrapper command a transcript gets saved in snclient folder everytime.

Expected Behavior

No Transcript should be written.

Current Behavior

Every ps1 call through snclient wrapper writes transcript. (did not test without wrapper command)

Context (Environment)

Monitoring Host: OMD stack with naemon core snClient Version: 0.26 Windows

Detailed Description

Every call of a powershell script through the wrapper command leads to a transcript being saved to %snclientroot%/YYYYMMDD/PowerShell_transcript.%SERVERNAME%.%SOMEHASH%.

sni commented 3 months ago

do you know how to disable it? Did a quick search and it seems like this is a group policy, so something out of control of snclient. Also i don't see that behavior in the lab.

h4ppywastaken commented 3 months ago

This issue is being resolved - the GPO setting "Computer Configuration – Administrative Templates – Windows Components – Windows PowerShell - Turn on PowerShell Transcription" was enabled. Thank you for the quick response!