-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathget-intel-hwids.bat
More file actions
64 lines (53 loc) · 2.64 KB
/
get-intel-hwids.bat
File metadata and controls
64 lines (53 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
setlocal enabledelayedexpansion
:: Intel Chipset HWIDs Detection Tool
:: Lists all Intel devices with their Hardware IDs for platform identification
:: Set console window size to 75 columns and 27 lines
mode con: cols=75 lines=27
echo /**************************************************************************
echo ** INTEL CHIPSET HWIDs DETECTION TOOL **
echo ** --------------------------------------------------------------------- **
echo ** **
echo ** Detects Intel Hardware IDs for platform identification **
echo ** and creates a report in Intel_HWIDs_Report.txt **
echo ** **
echo ** Author: Marcin Grygiel / www.firstever.tech **
echo ** **
echo ** --------------------------------------------------------------------- **
echo ** This tool is not affiliated with Intel Corporation. **
echo ** Drivers are sourced from official Intel servers. **
echo ** Use at your own risk. **
echo ** --------------------------------------------------------------------- **
echo ** **
echo ** Visit: github.com/FirstEverTech/Universal-Intel-Chipset-Updater **
echo ** **
echo *************************************************************************/
echo.
:: Get the directory where this batch file is located
set "SCRIPT_DIR=%~dp0"
:: Check if PowerShell script exists in the same directory
if not exist "!SCRIPT_DIR!get-intel-hwids.ps1" (
echo Error: get-intel-hwids.ps1 not found in current directory!
echo.
echo Please ensure the PowerShell script is in the same folder as this BAT file.
pause
exit /b 1
)
:: Check for administrator privileges
net session >nul 2>&1
if %errorLevel% neq 0 (
echo This script requires administrator privileges.
echo Requesting elevation...
echo.
:: Re-launch as administrator with the correct directory
powershell -Command "Start-Process -FilePath '%~f0' -Verb RunAs -WorkingDirectory '!SCRIPT_DIR!'"
exit /b
)
echo Running Intel HW_ID detection...
echo.
:: Change to script directory to ensure proper file access
cd /d "!SCRIPT_DIR!"
:: Run PowerShell script with execution policy bypass
powershell -ExecutionPolicy Bypass -File "get-intel-hwids.ps1"
echo.
pause