Tuesday, May 1, 2018

Wikipedia Windows 10 Release Information Page a Powershell Script

Copy and paste into Powershell ISE and run. Updated May 30, 2018.


# WikiWinReleaseInfo.ps1 
# Purpose : Open Wikipedia Info Page for your Window 10 Release
# Author : Metadataconsulting.ca
# Last Updated : May 30, 2018

Write-Host "Your running" (Get-WmiObject Win32_OperatingSystem).Caption

If ([System.Environment]::OSVersion.Version.Major -ge 10) {
 
    $releaseID = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId

    If ($releaseID -eq 1709) {
    [System.Diagnostics.Process]::Start("https://en.wikipedia.org/wiki/Windows_10_version_history#Version_1709_(Fall_Creators_Update)")
    }
    elseif ($releaseID -eq 1511) {
    [System.Diagnostics.Process]::Start("https://en.wikipedia.org/wiki/Windows_10_version_history#Version_1511_(November_Update)")
    }
    elseif ($releaseID -eq 1607) {
    [System.Diagnostics.Process]::Start("https://en.wikipedia.org/wiki/Windows_10_version_history#Version_1607_(Anniversary_Update)")
    }
    elseif ($releaseID -eq 1703) {
    [System.Diagnostics.Process]::Start("https://en.wikipedia.org/wiki/Windows_10_version_history#Version_1703_(Creators_Update)")
    }
    elseif ($releaseID -eq 1803) {
    [System.Diagnostics.Process]::Start("https://en.wikipedia.org/wiki/Windows_10_version_history#Version_1803_(April_2018_Update)")
    }
    else {
    [System.Diagnostics.Process]::Start("https://en.wikipedia.org/wiki/Windows_10_version_history#Version_$releaseID")
    }

} else {

    Write-Host "This script is for Windows 10 only."   

}



No comments:

Post a Comment