private/Write-OSDeployBanner.ps1
|
function Write-OSDeployBanner { <# .SYNOPSIS Displays the OSDeploy banner message once per session. .DESCRIPTION Writes a one-time informational banner to the host indicating that the OSDeploy module is a preview release and may require a Community license key. Subsequent calls within the same session are silently suppressed via the $script:OSDeployBannerDisplayed flag. .NOTES Author: David Segura Company: Recast Software Dependencies: None #> if ($script:OSDeployBannerDisplayed) { return } Write-Host 'OSDeploy by Recast is a PowerShell Preview Module (expires 2026-06-30).' -ForegroundColor DarkYellow Write-Host 'Some features may require a free Community license key which can be obtained at recastsoftware.com' -ForegroundColor DarkYellow $script:OSDeployBannerDisplayed = $true } |