I have a few servers where I see a blue question mark on the sql server service, as per the picture below.
Enabling these Windows Firewall rules did the trick for me
Windows Management Instrumentation (WMI-In)
Windows Management Instrumentation (DCOM-In)
Is there a way I could achieve this via powershell?

Enable-NetFirewallRule -Name 'WMI-WINMGMT-In-TCP','WMI-RPCSS-In-TCP'would have the same effect. – Dec 31 '18 at 16:56