Skip to content

Instantly share code, notes, and snippets.

@cloudchristoph
Last active November 9, 2016 14:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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