Jump to content

Check if a service is a Windows services.


Recommended Posts

Hi to all! I am not a professional developer, autoIT is only an hobby. I am coding a system manager GUI with more functions compared to services.msc. Is there a way to check if a service come preinstalled with windows or is related to user softwares that installs his own services? Now i am using StringInStr but I am having some false positive (some user services detected as Windows services because the name contains parts of Windows services). Thanks!

Link to comment
Share on other sites

Each service is associated to an executable.

So you just have to retrieve the COMPANYNAME of the executable :

#Include <FileConstants.au3>

Local $version = FileGetVersion ( "c:\windows\system32\svchost.exe", $FV_COMPANYNAME )
MsgBox(0, "", $version)

 

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...