> For the complete documentation index, see [llms.txt](https://osd.osdeploy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osd.osdeploy.com/docs/trash/general/get-regcurrentversion.md).

# 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

![](/files/-LuH-NUwUA256GqNtJCk)

#### 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

![](/files/-LuGmx08TUMqzMfIK7qk)

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

![](/files/-LuH-fELSdrZFBWe2CGZ)

##
