Skip to content

Instantly share code, notes, and snippets.

@ZEBAS204
Created February 5, 2023 22:57
Show Gist options
  • Save ZEBAS204/87280cea56ac2303088b8e793e8e8691 to your computer and use it in GitHub Desktop.
Save ZEBAS204/87280cea56ac2303088b8e793e8e8691 to your computer and use it in GitHub Desktop.
Old script to reduce all Ubisoft background processes on Windows
;;;===,,,@echo off
;;;===,,,findstr /v "^;;;===,,," "%~f0" > "%~dp0ps.ps1"
;;;===,,,PowerShell.exe -ExecutionPolicy Bypass -Command "& '%~dp0ps.ps1'"
;;;===,,,del /s /q "%~dp0ps.ps1" >NUL 2>&1
;;;===,,,pause
# To get All properties add `| Format-List *`
# or `| Format-Table -Property ID, CPU, ProcessName, priorityclass, basepriority`
Get-Process -Name Uplay*,Ubisoft*,upc | ForEach-Object {
Write-Host -NoNewline "Lowered priority of" $_.ProcessName "from" $_.priorityclass "to idle."
Write-Host ""
# $_.ProcessorAffinity=2
$_.PriorityClass='Idle'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment