Skip to content

Instantly share code, notes, and snippets.

@doctordns
Last active February 2, 2022 21:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save doctordns/b1a06f7002675ec2bf8f710d3c066182 to your computer and use it in GitHub Desktop.
Save doctordns/b1a06f7002675ec2bf8f710d3c066182 to your computer and use it in GitHub Desktop.
Get PS7 GitHub Meta data
Function Get-PWSH7ReleaseInformation {
# Get details of overall PowerShell 7 information
$FR = 'https://raw.githubusercontent.com/' +
'PowerShell/PowerShell/master/tools/metadata.json'
$MetaFullRelease = Invoke-RestMethod $FR
# Get Details of latest preview
$MetaPreview = Invoke-RestMethod 'https://aka.ms/pwsh-buildinfo-Preview'
# Get Details of the latest daily build
$MetadataDaily = Invoke-RestMethod 'https://aka.ms/pwsh-buildinfo-daily'
# Display this information
'PowerShell 7 Status:'
$MetaFullRelease
'Preview information:'
$MetaPreview
'Daily Build information
$MetadataDaily
}
Get-PWSH7ReleaseInformation
@deepdarbe
Copy link

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment