Skip to content

Instantly share code, notes, and snippets.

View moorer2k's full-sized avatar
🏠
Working from home

Moore moorer2k

🏠
Working from home
  • WA State
View GitHub Profile
@moorer2k
moorer2k / Set-XMRIG-Threads.ps1
Created May 28, 2021 03:06
Simple PowerShell script to change between your min / max threads to use for XMRIG on windows.
#Automatically switch between desired threads for XMRIG.
$path = 'C:\Users\Moore\Desktop\xmrig\config.json'
$minThreads = '15'
$maxThreads = '28'
if (Select-String -Path $path -Pattern "$minThreads," -SimpleMatch -Quiet)
{
(Get-Content $path) -replace "$minThreads,", "$maxThreads," | Out-File -encoding ASCII $path
}