Jump to content

Windows Service Management in AutoIt


Recommended Posts

How do I get windows services in an array in AutoIt and then sort them by their status as Running or Stopped? I wish to do something equivalent to this in Powershell:

 

Get-WmiObject -Class win32_service -computer "." -Namespace "root\cimv2" | format-list Name, State

I couldn't find any function to that in AutoIt.

Link to comment
Share on other sites

You can use the Scriptomatic script to help generate sample WMI code for Autoit.

\path\to\AutoIt3\Examples\COM\Scriptomatic.au3

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...