Show script version before update #2104
Labels
Enhancement
New feature or request
good first issue
Good for newcomers
P2
Shared Function
Work Item
Work Item for project work
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
The text was updated successfully, but these errors were encountered: