© 2017 Altair d.o.o. Slovenia

  • Facebook - White Circle
  • LinkedIn - White Circle
  • Google+ - White Circle

How to prevent an application (such as Excel) to use 100% of processor resources on the RDP server 2016 for comfortable work of all server users?

November 24, 2018

Follow points.


1. PowerShell script:

ForEach($PROCESS in Get-Process EXCEL) { $PROCESS.ProcessorAffinity=15}



This script allow Core 1,2,3,4 to all process with name "EXCEL". Save it to *.ps1 file on server folder.


2. Turn on Process Creation Auditing in Local Security Policy.

This policy will generate the Event 4688 with reference to "EXCEL.EXE" process:



3. Create the task for executing PowerShell script in Task Scheduler.

We must set custom event filter for task, for example:


  <Query Id="0" Path="Security">
    <Select Path="Security">*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and Task = 13312]] and *[EventData[Data[6]='C:\Program Files (x86)\Microsoft Office\Office16\EXCEL.EXE']]</Select>


Thus, when the EXCEL application starts, it will be automatically allowed to use only the first 4 CPU cores from the available ones.



Share on Facebook
Please reload

Please reload