Created
February 5, 2023 22:57
-
-
Save ZEBAS204/87280cea56ac2303088b8e793e8e8691 to your computer and use it in GitHub Desktop.
Old script to reduce all Ubisoft background processes on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;===,,,@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