PSPKI
PSPKI copied to clipboard
[Feature Request] Get-EnterprisePKIHealthStatus: -config switch
Dear Team, I'm working with PSPKI v3.7.2 and i was trying to redirect the debug output of Get-EnterprisePKIHealthStatus to a txt file using this commands:
Create a brief Status Report for all Enterprise CAs
$EntCAs = @() $EntCAs = Get-CertificationAuthority | Get-EnterprisePKIHealthStatus -debug 5>&1 | Out-file C:\Temp\CAHealcheck_Detailed_Output.txt -Append
Note that this code is part of a scheduled PS script I'm currently working on.
However each time the confirm pop up appeared 3 times and i was only able to bypass it by changing Get-EnterprisePKIHealthStatus.ps1 itself as follows:
#region native function declarations $DebugPreference = "SilentlyContinue" <-- added this line to suppress the pop ups ..... $DebugPreference = "Continue" <-- added this line #endregion
Ofc there could be much improvement on this and in fact in the beginning tried to add -confirm switch on EnterprisePKIHealthStatus.ps1 myself so i can run the cmdlet using the -Confirm:$false switch, but i didn't manage to get this done. Maybe there is a whole different approach to this that i'm not even aware of, but if you could either add the -confirm switch on EnterprisePKIHealthStatus.ps1 or propose another way to properly redirect debug output please let me know.
BR, N.
Dear PSPKI Team,
I'm kindly requesting to add the -confirm switch on EnterprisePKIHealthStatus.ps1 as a new feature.
BR, N.
It is unlikely will happen. Moreover, we are planning to remove all debug/verbose output which was added solely for debugging purposes, not a part of regular use.