You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
I'm kindly requesting to add the -confirm switch on EnterprisePKIHealthStatus.ps1 as a new feature.
BR,
N.
NickyGr
changed the title
Get-EnterprisePKIHealthStatus: confirmation pop ups when redirecting debug output
[Feature Request] Get-EnterprisePKIHealthStatus: -config switch
Oct 6, 2020
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.
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.
The text was updated successfully, but these errors were encountered: