1

Please see this screenshot for reference

screenshot

When I say Status, I mean according to the above screenshot. Is it possible to get the status of each of the servers like this using Powershell or some other utility which can be scripted?

Thanks!

-Pranav

3

If you mean to check if the servers need to be upgraded after a patch were applied?

$spprod = Get-SPProduct
$spprod.Servers | select ServerName, Products, InstallStatus

This will give you the status for each server in your farm. If any patch are missing or a server needs to be upgraded, you can track down what patch are missing by running:

$spprod.Servers | ? { $_.InstallStatus -eq "InstallRequired" } | % { $_.RequiredButMissingPatches }
3
  • Thanks a lot @Christoffer! Can that Status (As per the screenshot) show some other values as well? Like any problems or so? May 18 '17 at 15:16
  • @PranavJituri The SPProduct class only has a few properties. msdn.microsoft.com/en-us/library/…. I think that all the problems related to SharePoint goes directly to the logs, patching included. May 18 '17 at 15:22
  • But, this commandlet does not show those servers configured as an External role which have Search DB and other Databases used by SharePoint. Any idea how it can be done? May 24 '17 at 8:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.