PS C:\> Get-Help -Full Get-RegCurrentVersion
Returns the Registry Key values from HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Get-RegCurrentVersion [[-Path] <String>] [[-Property] <String>] [<CommonParameters>]
Returns the Registry Key values from HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion for Online and Offline Windows Images
Specifies the full path to the root directory of the offline Windows image that you will service.
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
Accept pipeline input? false
Accept wildcard characters? false
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
19.11.20 Added Pipeline Support
19.11.9 David Segura @SeguraOSD Initial Release
https://osd.osdeploy.com/module/functions/get-regcurrentversion