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

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://osd.osdeploy.com/docs/trash/general/get-regcurrentversion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
