Skip to content

Instantly share code, notes, and snippets.

View jayagami's full-sized avatar

Itachi jayagami

View GitHub Profile
jayagami / tune_ps2.ps1
Created December 24, 2018 04:03 — forked from michael-baker/tune_ps2.ps1
Apply an Intel XTU profile from PowerShell
View tune_ps2.ps1
# Must be run under 32-bit PowerShell as ProfilesApi is x86
[System.Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\Intel\Intel(R) Extreme Tuning Utility\Client\ProfilesApi.dll") | Out-Null
# This script programmatically applies an Intel XTU profile.
# This script can replace the CLI method outlined here:
[ProfilesApi.XtuProfileReturnCode]$applyProfileResult = 0
$profileApi = [ProfilesApi.XtuProfiles]::new()
$profileApi.Initialize() | Out-Null