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

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.