Jump to content
Sign in to follow this  
jftuga

Changing process priority of SYSTEM owned processes

Recommended Posts

jftuga

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

Share this post


Link to post
Share on other sites
Valik

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.

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
Sign in to follow this  

×

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.