Kaseya Community

Windows services

This question is not answered

Hi

I got asked by one of our sysadmins to list all windows services on all servers that have been configured to start automatically, but that are currently not running.

I know I can see that in KLC for a single device, but i'd like to get an overview. Would that be possible?

Can anyone help me getting started?

All Replies
  • You can use WMI...

    Dim objWMIService, colServices, objService, strComputer

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:" _

     & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

    Set colServices = objWMIService.ExecQuery("Select * from Win32_Service")

    For Each objService in colServices

    If objService.StartMode = "Auto" AND objService.State <> "Running" Then

      Wscript.Echo  objService.DisplayName

    End If

    Next

  • Yes I know WMI was an option on getting the services, but i was hoping to get an overview for all servers within the kaseya interface.

  • View this post at community.kaseya.com/.../17560.aspx