Get-RegCurrentVersion

Get-Help -Full

PS C:\> Get-Help -Full Get-RegCurrentVersion

NAME
    Get-RegCurrentVersion
    
SYNOPSIS
    Returns the Registry Key values from HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion
    
    
SYNTAX
    Get-RegCurrentVersion [[-Path] <String>] [[-Property] <String>] [<CommonParameters>]
    
    
DESCRIPTION
    Returns the Registry Key values from HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion for Online and Offline Windows Images
    

PARAMETERS
    -Path <String>
        Specifies the full path to the root directory of the offline Windows image that you will service.
        
        Required?                    false
        Position?                    1
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    -Property <String>
        
        Required?                    false
        Position?                    2
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    <CommonParameters>
        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). 
    
INPUTS
    
OUTPUTS
    
NOTES
    
    
        19.11.20    Added Pipeline Support
        19.11.9     David Segura @SeguraOSD Initial Release
    
    
RELATED LINKS
    https://osd.osdeploy.com/module/functions/get-regcurrentversion

Usage

Without any parameters, this function will simply return the CurrentVersion Registry Key

For a Mounted Windows Image, simply provide a Path to the Mount Directory and it will mount the Registry and do the work for you

So now you can make quick work getting the ReleaseId using the following examples

Last updated