private/BootMedia/Write-OSDeployCoreProgress.ps1
|
#Requires -PSEdition Core function Write-OSDeployCoreProgress { <# .SYNOPSIS Writes a timestamped progress message to the host for BootMedia build operations. .DESCRIPTION Formats the supplied message with an ISO 8601 timestamp prefix and writes it to the host in DarkCyan. Used internally by BootMedia build steps to provide consistent progress output. .PARAMETER Message The progress message to display. Must not be null or empty. .NOTES Author: David Segura Company: Recast Software Dependencies: None #> [CmdletBinding()] param ( [Parameter(Mandatory)] [ValidateNotNullOrEmpty()] [string]$Message ) Write-Host -ForegroundColor DarkCyan ("[{0}] {1}" -f (Get-Date -Format s), $Message) } |