Last active
November 9, 2016 14:45
-
-
Save cloudchristoph/f1b158744095ee36dbbb8b9131e5aecd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [string]$BuildVersion = "" | |
| ) | |
| #Patch-Level der SharePoint Farm prüfen | |
| $apiUrl = "https://sharepointupdates.com/api/articles/" | |
| if ($BuildVersion -eq "") { | |
| write-host "Lese Farm-Info..." -f Gray | |
| asnp *share* | |
| $BuildVersion = (Get-SPFarm).BuildVersion.ToString() | |
| write-host "Version $BuildVersion ermittelt" | |
| } | |
| $versionUrl = $apiUrl + $BuildVersion | |
| write-host "Frage sharepointupdates.com ab ($versionUrl)..." -f Gray | |
| $versionInfo = Invoke-RestMethod -Uri $versionUrl | |
| foreach ($info in $versionInfo) { | |
| write-host "-" $info.Title -f Green | |
| if ($info.KnownIssues.Count -gt 0) { | |
| write-host "Es exisistieren bekannte Fehler!" -f y | |
| write-host $versionInfo.KnownIssues | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment