add-circle-bold add-circle add-square add alarm-bell-1 alert-diamond analytics-pie-2 archive archive arrow-down-1 arrow-down-2 arrow-left-1 arrow-right-1 arrow-up-1 attachment-1 bin-paper-1 book-star button-record check-1 check-circle-1 close close-quote close cog-1 cog common-file-stack copy-paste credit-card-1 diagram-fall-down disable time-clock-midnight download-thick-bottom drawer-send envelope-letter envelope-letter expand-6 expand-6 file-code filter-1 floppy-disk flying-insect-honey folder-file-1 headphones-customer-support hierarchy-9 hyperlink-2 information-circle keyboard-arrow-down keyboard-arrow-up layout-module-1 list-bullets lock-2 lock-unlock-1 love-it messages-bubble-square move-to-top multiple-circle multiple-neutral-1 multiple-users-1 navigation-menu-horizontal navigation-menu network-browser open-quote pencil-1 pencil-write pencil-1 print-text rating-star rating-star remove-circle remove-square-1 search send-email-1 shield-warning single-neutral-actions single-neutral smiley-sad-1 smiley-unhappy smiley-indifferent smiley-smile-1_1 smiley-happy smiley-sad-1 smiley-unhappy smiley-indifferent smiley-happy smiley-thrilled social-media-twitter synchronize-arrows-1 tags-double ticket-1 ticket-1 time-clock-circle undo view-1 view-off view wench

Increase CPU priority of protection plan scheduled task

You can increase the CPU priority of the protection plan scheduled task on a plan that is starved for system resources and has a longer than expected runtime.

This will give the protection plan processes normal priority instead of below normal priority, the default.

  1. Download the attached zip file and expand it, noting the path to the expanded ps1 file.
  2. Open the ps1 file in notepad
  3. Change the -user and -password fields in line four of the script to reflect the correct domain username and password, with a space between the field and its value, e.g. -User mydomain\myuser -Password mypass
  4. Save the edited file. Copy the file to the computer running the plan.
  5. Run the powershell script on the computer that runs the plan.
  6. To run the script, open powershell, then type the path and script name and hit enter, e.g. c:\scripts\settaskpriority.ps1
  7. If the execution policy prevents the script from running, type set-executionpolicy remotesigned and hit enter. Then run the script.

setTaskPriority.zip