Tuesday, May 1, 2018

Wikipedia Windows 10 Release Information Page a Powershell Script

Copy and paste into Powershell ISE and run


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

$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")
}
 



No comments:

Post a Comment