Jump to content

DLLCall Service Start/Stop?


rcmaehl
 Share

Recommended Posts

Hi all,

I was wondering if there's a more efficient way such as a DLL call for Starting, Pausing, and more for Services. I need to do a bunch at once, I switched from

Run(@Compsec & " /c net stop " & $sService)

to

Run("sc \\localhost stop " & $sService)

and it greatly reduced the CPU usage of adjusting a lot of services but there's still a considerable amount.

Thanks

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to comment
Share on other sites

2 hours ago, Danp2 said:

Have you checked out any of the available UDFs for controlling services?

See wiki for more details

Thank ya! Forgot this existed.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

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