File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,9 +208,19 @@ function Invoke-ZtAssessment {
208208 [CmdletBinding ()]
209209 param ()
210210
211+ $version = $script :__ZtSession.ModuleVersion
212+ $title = " 🛡️ Microsoft Zero Trust Assessment v$version "
213+ # Center the title within the 77-character inner box width.
214+ # The shield emoji displays as 2 cells but has .Length of 3, so subtract 1.
215+ $displayLen = $title.Length - 1
216+ $totalPad = 77 - $displayLen
217+ $leftPad = [math ]::Ceiling($totalPad / 2 )
218+ $rightPad = $totalPad - $leftPad
219+ $titleLine = " ║$ ( ' ' * $leftPad ) $title $ ( ' ' * $rightPad ) ║"
220+
211221 $banner = @"
212222╔═════════════════════════════════════════════════════════════════════════════╗
213- ║ 🛡️ Microsoft Zero Trust Assessment v2 ║
223+ $titleLine
214224║ ║
215225║ Comprehensive security posture evaluation for your Microsoft 365 tenant ║
216226╚═════════════════════════════════════════════════════════════════════════════╝
You can’t perform that action at this time.
0 commit comments