Jump to content

Priority of process


Recommended Posts

A forum search for...

+change +priority +system +process

...turned up several posts.

Looking at this post...

http://www.autoitscript.com/forum/index.ph...st&p=317343

...I saw this comment:

Note: if you are trying to change the priority of a process running as the SYSTEM account, run this program from a Schedule Task as user SYSTEM.

That made me wonder if compiling an AutoIt EXE that takes in the process of interest via command line and passes it to ProcessSetPriority would work if that EXE was launched from your main script via RunAsSet and the account of interest???

You tell me :-)

-MSP-

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

...I saw this comment:

Note: if you are trying to change the priority of a process running as the SYSTEM account, run this program from a Schedule Task as user SYSTEM.

Yes, "at 00:00 /interactive process.exe" for example with a Schedule Task that work for system account, but we need to wait, we can't run in real-time a process like this :)

That made me wonder if compiling an AutoIt EXE that takes in the process of interest via command line and passes it to ProcessSetPriority would work if that EXE was launched from your main script via RunAsSet and the account of interest???

Crafty but not possible. :) RunAsSet launch only specific user account, not AccountSID...

Edited by FrenchTroll
Link to comment
Share on other sites

Doh, had I tried to test my theory before posting - I would have learned about RunAsSet and "system".

A forum search for

+RunAsSet +system +account

Returned a few threads that mentioned running the script as a service... would that work for you needs?

-MSP-

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

:) of course you can run an autoit process under LocalService account by launching it via a service and change the priority of another LocalService account process like this...i don't test but logicaly it's possible.

Then, if i want to change the priority of each process :

1- for system account, i must launch the script with Schedule Task.

2- for LocalService, i must launch the script via a service.

3- for the user account, i can use RunAsSet, well.

4- for networkservice, ???

5- S-1-5-3, ???

6- S-1-1-0, ???

7- S-1-5-7, ???

8- etc

Are you serious or it's me that understand nothing ?

ps : i read 3 thread about system account :

http://www.autoitscript.com/forum/index.ph...system++account

http://www.autoitscript.com/forum/index.ph...count&st=15

http://www.autoitscript.com/forum/index.ph...system++account

...and no answer.

Can you give us just an small example please ? How you have make in your test ?

thanks

Link to comment
Share on other sites

...Are you serious or it's me that understand nothing ? ...

It is I that does not understand... sorry.

I've not used RunAsSet much and your 1, 2, 3... list made it clear to me what you are after. Sorry that I did not pick up on it in your OP.

I really meant it when I said:

"...would that work for you needs?"

I just don't understand enough about RunAsSet and the various type of accounts to help beyond what is in other posts. Maybe another member can chime in.

It would seem that Microsoft went to a lot of trouble to keep people from doing this very thing... perhaps for security/virus reasons.

-MSP-

[size="1"][font="Arial"].[u].[/u][/font][/size]

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