Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Get-EnterprisePKIHealthStatus: -config switch #119

Open
NickyGr opened this issue Sep 22, 2020 · 2 comments
Open

[Feature Request] Get-EnterprisePKIHealthStatus: -config switch #119

NickyGr opened this issue Sep 22, 2020 · 2 comments
Labels
Research Requires additional research or specification clarification

Comments

@NickyGr
Copy link

NickyGr commented Sep 22, 2020

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.

@NickyGr
Copy link
Author

NickyGr commented Oct 6, 2020

Dear PSPKI Team,

I'm kindly requesting to add the -confirm switch on EnterprisePKIHealthStatus.ps1 as a new feature.

BR,
N.

@NickyGr NickyGr changed the title Get-EnterprisePKIHealthStatus: confirmation pop ups when redirecting debug output [Feature Request] Get-EnterprisePKIHealthStatus: -config switch Oct 6, 2020
@Crypt32
Copy link
Collaborator

Crypt32 commented 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.

@Crypt32 Crypt32 added the Research Requires additional research or specification clarification label Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Research Requires additional research or specification clarification
Projects
None yet
Development

No branches or pull requests

2 participants