| external help file | Module Name | online version | schema |
|---|---|---|---|
PSReleaseTools-help.xml |
PSReleaseTools |
2.0.0 |
Get the current PowerShell 7.x release.
Get-PSReleaseCurrent [-Preview] [<CommonParameters>]This command will query the GitHub repository for the latest stable PowerShell release and write an object to the pipeline. If you are running PowerShell 7.x the LocalVersion property will reflect the GitCommitID so you can accurately compare and determine if you need to update. Use the -Preview parameter to get the latest preview build.
PS C:\> Get-PSReleaseCurrent
Name OnlineVersion Released LocalVersion
---- ------------- -------- ------------
v7.5.2 Release of PowerShell 7.5.2 6/24/2025 9:31:53 PM 5.1.26100.4202This gets the current release from a Windows platform running Windows PowerShell.
PS C:\> Get-PSReleaseCurrent -preview | Select-Object *
Name : v7.6.0-preview.4 Release of PowerShell
Version : v7.6.0-preview.4
Released : 4/8/2025 6:00:57 PM
LocalVersion : 5.1.26100.4202
URL : https://github.com/PowerShell/PowerShell/releases/tag/v7.6.0-preview.4
Draft : False
Prerelease : TrueView all properties for the latest preview release.
PS /home/jeff> Get-PSReleaseCurrent -preview
Name OnlineVersion Released LocalVersion
---- ------------- -------- ------------
v7.6.0-preview.4 Release of PowerShell 7.6.0-preview.4 04/08/2025 22:00:57 7.5.0This gets the current preview release from an Ubuntu platform.
Get the latest preview release.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Learn more about PowerShell: http://jdhitsolutions.com/yourls/newsletter