Jump to content
pranaynanda

Windows Service Management in AutoIt

Recommended Posts

pranaynanda

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.

Share this post


Link to post
Share on other sites
willichan

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

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

 

Share this post


Link to post
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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.