Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.