Get-RegCurrentVersion

Get-Help -Full

1
PS C:\> Get-Help -Full Get-RegCurrentVersion
2
3
NAME
4
Get-RegCurrentVersion
5
6
SYNOPSIS
7
Returns the Registry Key values from HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion
8
9
10
SYNTAX
11
Get-RegCurrentVersion [[-Path] <String>] [[-Property] <String>] [<CommonParameters>]
12
13
14
DESCRIPTION
15
Returns the Registry Key values from HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion for Online and Offline Windows Images
16
17
18
PARAMETERS
19
-Path <String>
20
Specifies the full path to the root directory of the offline Windows image that you will service.
21
22
Required? false
23
Position? 1
24
Default value
25
Accept pipeline input? true (ByPropertyName)
26
Accept wildcard characters? false
27
28
-Property <String>
29
30
Required? false
31
Position? 2
32
Default value
33
Accept pipeline input? false
34
Accept wildcard characters? false
35
36
<CommonParameters>
37
This cmdlet supports the common parameters: Verbose, Debug,
38
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
39
OutBuffer, PipelineVariable, and OutVariable. For more information, see
40
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
41
42
INPUTS
43
44
OUTPUTS
45
46
NOTES
47
48
49
19.11.20 Added Pipeline Support
50
19.11.9 David Segura @SeguraOSD Initial Release
51
52
53
RELATED LINKS
54
https://osd.osdeploy.com/module/functions/get-regcurrentversion
Copied!

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 modified 2yr ago
Copy link