public/Get-OSDeployModuleVersion.ps1
|
function Get-OSDeployModuleVersion { <# .SYNOPSIS Returns the version of the OSDeploy module. .DESCRIPTION Returns the currently loaded version of the OSDeploy module as a System.Version object. This is useful for version checks, logging, and compatibility validation in scripts. .OUTPUTS System.Version. The version of the OSDeploy module. .EXAMPLE Get-OSDeployModuleVersion Returns the loaded OSDeploy module version, e.g. '0.1.0'. #> [CmdletBinding()] [OutputType([System.Version])] param () Write-OSDeployBanner $MyInvocation.MyCommand.Module.Version } |