FrenchTroll Posted September 6, 2007 Share Posted September 6, 2007 Hello, Is it possible to change the priority of a system process ? (or local service or network service process like sqlservr.exe ?) ProcessSetPriority change only the priority of current user process... Thanks. Link to comment Share on other sites More sharing options...
herewasplato Posted September 7, 2007 Share Posted September 7, 2007 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 More sharing options...
FrenchTroll Posted September 7, 2007 Author Share Posted September 7, 2007 (edited) ...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 September 7, 2007 by FrenchTroll Link to comment Share on other sites More sharing options...
herewasplato Posted September 7, 2007 Share Posted September 7, 2007 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 More sharing options...
FrenchTroll Posted September 7, 2007 Author Share Posted September 7, 2007 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- etcAre 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++accounthttp://www.autoitscript.com/forum/index.ph...count&st=15http://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 More sharing options...
herewasplato Posted September 7, 2007 Share Posted September 7, 2007 ...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 More sharing options...
FrenchTroll Posted September 7, 2007 Author Share Posted September 7, 2007 Don't worry, if you did not understand, it's because i don't explain well It would seem that Microsoft went to a lot of trouble to keep people from doing this very thing... perhaps for security/virus reasons.no no it's possible : look at "process lasso" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now