把下面分隔線內的字存檔為ChangeHalByRundll.cmd
放在C碟下
-----------我是分隔線-----------------
Code:@echo off
:: =========================================================================================================
:: ChangeHalByRundll.cmd 使用Windows的rundll32命令來更改計算機類型的批處理
:: 用法: ChangeHalByRundll <硬件ID>
:: <硬件ID>是指你想更改成的計算機類型所對應的HardwareID。
:: 例如:你想將計算機改成ACPI Uniprocessor類型,那麼使用命令:ChangeHalByRundll ACPIPIC_UP
:: 計算機類型與硬件ID的對應關係如下:
:: 計算機類型 硬件ID(HardwareID)
:: Standard E_ISA_UP
:: ACPI Uniprocessor ACPIAPIC_UP
:: ACPI Multiprocessor ACPIAPIC_MP
:: MPS Uniprocessor MPS_UP
:: MPS Multiprocessor MPS_MP
:: Compaq SystemPro SYSPRO_MP
:: ACPI ACPIPIC_UP
:: =========================================================================================================
if %1#==# goto _usage
set HardIDs=E_ISA_UP ACPIPIC_UP ACPIAPIC_UP ACPIAPIC_MP MPS_UP MPS_MP SGI_MPS_MP SYSPRO_MP
echo %HardIDs% | find /i "%1" > nul
if errorlevel 1 goto _usage
:_update
REG.EXE DELETE "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E966-E325-11CE-BFC1-08002BE10318}\0000" /f
REG.EXE DELETE "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E966-E325-11CE-BFC1-08002BE10318}\0001" /f
REG.EXE DELETE "HKLM\SYSTEM\ControlSet001\Control\Class\{4D36E966-E325-11CE-BFC1-08002BE10318}\0000" /f
REG.EXE DELETE "HKLM\SYSTEM\ControlSet001\Control\Class\{4D36E966-E325-11CE-BFC1-08002BE10318}\0001" /f
REG.EXE DELETE "HKLM\SYSTEM\CurrentControlSet\Enum\Root\ACPI_HAL" /f
REG.EXE DELETE "HKLM\SYSTEM\CurrentControlSet\Enum\Root\PCI_HAL" /f
rundll32.exe setupapi,InstallHinfSection %1_HAL 131 %windir%\inf\hal.inf
cls
echo.
echo 恭喜,計算機類型更改完畢,請重新啟動計算機使更改生效,系統會重新掃瞄硬件!
echo 按任意鍵退出...
pause >nul
goto _quit
:_usage
cls
echo.
echo 錯誤:你沒有指定計算機類型對應的硬件ID或者你指定的硬件ID不存在。
echo 用法: %0 ^<硬件ID^>
echo.
echo 計算機類型與硬件ID的對應關係如下:
echo.
echo 計算機類型 硬件ID(HardwareID)
echo Standard E_ISA_UP
echo ACPI Uniprocessor ACPIAPIC_UP
echo ACPI Multiprocessor ACPIAPIC_MP
echo MPS Uniprocessor MPS_UP
echo MPS Multiprocessor MPS_MP
echo Compaq SystemPro SYSPRO_MP
echo ACPI ACPIPIC_UP
echo.
echo 按任意鍵退出...
pause>nul
goto _quit
:_quit
set HardIDs=
[Ctrl+A Select All]
-----------我是分隔線-----------------
開始-->執行-->輸入"CMD"按Enter-->輸入"C:\ACPI Multiprocessor ACPIAPIC_MP"按Enter