Skip to content

Instantly share code, notes, and snippets.

@cloudchristoph
Last active November 9, 2016 14:45
Show Gist options
  • Save cloudchristoph/f1b158744095ee36dbbb8b9131e5aecd to your computer and use it in GitHub Desktop.
Save cloudchristoph/f1b158744095ee36dbbb8b9131e5aecd to your computer and use it in GitHub Desktop.
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