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

Show script version before update #2104

Open
megosugit opened this issue Jun 17, 2024 · 0 comments
Open

Show script version before update #2104

megosugit opened this issue Jun 17, 2024 · 0 comments
Labels
enhancement New feature or request P2 Shared Function Work Item Work Item for project work

Comments

@megosugit
Copy link

Hi,

Currently, when we run the script and if an update is needed, then it asks confirmation to update but doesn't show the current (nor the updated version).

It would be very convenient to see the current script version before doing an update. It would help seeing how far behind the script is from the latest version.

Currently, it shows:

[PS] C:\temp>.\HealthChecker.ps1

Confirm
Are you sure you want to perform this action?
Performing the operation "Update script to latest version" on target "HealthChecker.ps1".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
File signed by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
AutoUpdate: Signature validated.
AutoUpdate: Succeeded.
Script was updated. Please rerun the command.
Do you like the script? Visit https://aka.ms/HC-Feedback to rate it and to provide feedback.


It could show the following (current version + updated version) :

[PS] C:\temp>.\HealthChecker.ps1

+ Exchange Health Checker version 24.06.13.2304

Confirm
Are you sure you want to perform this action?
Performing the operation "Update script to latest version" on target "HealthChecker.ps1".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
File signed by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
AutoUpdate: Signature validated.
AutoUpdate: Succeeded.
Script was updated to version

+ xx.xx.xx.xxxx (new version number)

Please rerun the command.
Do you like the script? Visit https://aka.ms/HC-Feedback to rate it and to provide feedback.


Thank you

@dpaulson45 dpaulson45 added enhancement New feature or request Work Item Work Item for project work Shared Function P2 labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 Shared Function Work Item Work Item for project work
Projects
None yet
Development

No branches or pull requests

2 participants