Jump to content

Changing process priority of SYSTEM owned processes


 Share

Recommended Posts

I looked at the AutoSpeed script recently posts in Scripts & Scraps. If I want to change the priority of a process that is running as (owned by) the SYSTEM user, what is the best way of going about this in AutoIt? I would be logged in as an Administrator. When I try it now, I get a Permission Denied error.

The only way that I know how to do this it to run a Scheduled Task since those processes also run as the SYSTEM user.

Thanks,

-John

Link to comment
Share on other sites

Did you try:

ProcessSetPriority("System", 3)

That successfully changes the "System" process, which is of course run in the context of the "SYSTEM" account to the "Above Normal" priority. As an administrator, you (and AutoIt) should be able to change the priority of any process in the system.

This is tested on XP SP2.

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