Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[string]$BuildVersion = ""
#Patch-Level der SharePoint Farm prüfen
$apiUrl = ""
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 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