private/CoreDrivers/Write-OSDeployCoreDriversProgress.ps1
|
#Requires -PSEdition Core function Write-OSDeployCoreDriversProgress { <# .SYNOPSIS Writes a timestamped progress message to the host for CoreDrivers operations. .DESCRIPTION Formats the supplied message with an ISO 8601 timestamp prefix and writes it to the host in DarkCyan. Used internally by CoreDrivers 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 #> [CmdletBinding()] param ( [Parameter(Mandatory)] [ValidateNotNullOrEmpty()] [string]$Message ) Write-Host -ForegroundColor DarkCyan ("[{0}] {1}" -f (Get-Date -Format s), $Message) } |