none
Does "active" for sc query state= really work? RRS feed

  • Question

  • Hi,

    The docs say sc tool for service management should accept query command state= with parameter active

      sc query state= active

    but it doesn't work in Windows 7, Windows 10. "Inactive", "all" both  work.

    Is this a bug?

    Thanks,

    Max
    Friday, August 31, 2018 8:59 AM

Answers

  • It appears that the "state" parameter can only be "inactive" or "all". The default, when "state" is not specified, is active (running).

    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    • Marked as answer by maxerist Friday, August 31, 2018 2:03 PM
    Friday, August 31, 2018 1:38 PM
    Moderator

All replies