microsoft/CSS-Exchange

Show script version before update

开放

#2,104 创建于 2024年6月17日

 (0 条评论) (0 个反应) (1 位负责人)PowerShell (234 个派生)batch import
EnhancementP2Shared FunctionWork Itemgood first issue

仓库指标

星标
 (985 个星标)
PR 合并指标
 (平均合并 4天 12小时) (30 天内合并 12 个 PR)

描述

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

贡献者指南