Skip to content

Instantly share code, notes, and snippets.

@krizajb
Created July 20, 2019 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krizajb/e6274ceba77fe174b7f5a48c0d5eb970 to your computer and use it in GitHub Desktop.
Save krizajb/e6274ceba77fe174b7f5a48c0d5eb970 to your computer and use it in GitHub Desktop.
Restarts HWiNFO instance end re-disables dGPU
@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
start /min cmd /c taskkill /f /im HWiNFO64.exe
start /min /wait cmd /c D:\Documents\Qord\dell-xps\devcon.exe enable "PCI\VEN_10DE&DEV_1C8C&SUBSYS_087C1028&REV_A1"
start /min /wait cmd /c D:\Documents\Qord\dell-xps\devcon.exe disable "PCI\VEN_10DE&DEV_1C8C&SUBSYS_087C1028&REV_A1"
start /min cmd /c "C:\Program Files\HWiNFO64\HWiNFO64.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment