Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 電腦軟體介紹

Rundll32.exe 神奇指令大全:一鍵開啟控制台項目、系統工具、電源管理、桌面屬性

編輯:電腦軟體介紹

前言:Rundll32 是 Windows 隱藏的萬用啟動器

Rundll32.exe 可載入 DLL 並呼叫其匯出函數,微軟內建大量 shell32.dll,Control_RunDLL 入口,涵蓋控制台所有項目、系統工具、電源、桌面、網路、裝置管理等。掌握常用指令,可建立捷徑、批次檔、腳本、右鍵選單擴充,一鍵直達深層設定。

核心語法

rundll32.exe , [參數]
常見模式:rundll32.exe shell32.dll,Control_RunDLL <.cpl檔> [,分頁索引]

分類完整指令表

系統電源與關機

功能指令
系統重新啟動rundll32.exe user.exe,ExitWindowsExec
關閉系統(登出)rundll32.exe user.exe,ExitWindows
強制關機(不儲存)rundll32.exe user.exe,ExitWindowsExec

控制台主入口與常用項目

項目指令備註
控制台首頁rundll32.exe shell32.dll,Control_RunDLL
輔助選項-鍵盤rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1
輔助選項-聲音rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2
輔助選項-顯示rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3
輔助選項-滑鼠rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4
輔助選項-一般rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5
新增硬體精靈rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1
新增印表機精靈rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter
新增/移除程式rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1安裝/解除安裝分頁
Windows 功能rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2
啟動磁片rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3
我的公文包rundll32.exe syncui.dll,Briefcase_Create桌面建立公文包
磁碟複製rundll32.exe diskcopy.dll,DiskCopyRunDll軟碟/影像複製
建立捷徑精靈rundll32.exe apwiz.cpl,NewLinkHere %1%1 為目標路徑

日期時間、顯示、螢幕保護、桌面主題

項目指令
日期時間屬性rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0
時區設定rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1
桌面背景rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
螢幕保護程式rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1
外觀/視覺效果rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
顯示設定(解析度/色彩)rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3
字型資料夾rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL FontsFolder
格式化磁碟對話框rundll32.exe shell32.dll,SHFormatDrive
遊戲控制器-一般rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,0
遊戲控制器-進階rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,1

列印、多媒體、聲音、網路、滑鼠、鍵盤、字型、印表機

項目指令
列印 HTML 檔rundll32.exe mshtml.dll,PrintHTML "檔案完整路徑"
Exchange 一般選項rundll32.exe shell32.dll,Control_RunDLL mlcfg32.cpl
滑鼠屬性rundll32.exe shell32.dll,Control_RunDLL main.cpl @0
鍵盤-速度rundll32.exe shell32.dll,Control_RunDLL main.cpl @1
鍵盤-語言rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,1
印表機資料夾rundll32.exe shell32.dll,Control_RunDLL main.cpl @2
字型資料夾(同 FontsFolder)rundll32.exe shell32.dll,Control_RunDLL main.cpl @3
輸入法屬性rundll32.exe shell32.dll,Control_RunDLL main.cpl @4
新增 Modem 精靈rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add
多媒體-音訊rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0
多媒體-視訊rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1
多媒體-MIDIrundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2
多媒體-CD 音樂rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,3
多媒體-裝置rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4
聲音控制面板rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1
網路連線rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl
ODBC 資料來源rundll32.exe shell32.dll,Control_RunDLL odbccp32.cpl

系統屬性、裝置管理、硬體設定檔、效能

項目指令
系統-一般rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0
裝置管理員rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1
硬體設定檔rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2
系統效能/虛擬記憶體rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
撥號屬性rundll32.exe shell32.dll,Control_RunDLL telephon.cpl
桌面主題rundll32.exe shell32.dll,Control_RunDLL themes.cpl
密碼原則rundll32.exe shell32.dll,Control_RunDLL password.cpl
電源選項rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl
區域選項-一般rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0
區域-數字rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1
區域-貨幣rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2
區域-時間rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3
區域-日期rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4

特殊功能:指定檔案「開啟方式」、安裝螢幕保護

功能指令
開啟方式對話框rundll32.exe shell32.dll,OpenAs_RunDLL "完整檔案路徑"
安裝螢幕保護程式rundll32.exe desk.cpl,InstallScreenSaver "螢幕保護檔案.scr"

實戰應用:建立一鍵捷徑/批次檔/右鍵選單

  1. 桌面捷徑:右鍵桌面 → 新增 → 捷徑 → 位置貼上指令(如 rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1) → 命名「螢幕保護設定」
  2. 批次檔:@echo off & rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl 存為 power_options.bat
  3. 右鍵選單擴充:註冊表 HKCR\Directory\Background\shell\PowerOptions\command → 預設值 = 上述指令,桌面空白處右鍵即見「電源選項」
  4. 自動化腳本:PowerShell Start-Process "rundll32.exe" -ArgumentList "shell32.dll,Control_RunDLL sysdm.cpl,,1" 呼叫裝置管理員

注意事項

  • 64-bit Windows:C:\Windows\System32\rundll32.exe 為 64-bit,C:\Windows\SysWOW64\rundll32.exe 為 32-bit。呼叫 32-bit DLL 需用 32-bit 版本
  • 部分 .cpl 為 32-bit(舊版驅動面板),需明確指定 %windir%\SysWOW64\rundll32.exe
  • 參數中的分頁索引(,,0 等)因 Windows 版本不同而異,建議實測確認
  • 不支援 UAC 提升,需系統管理員權限的項目(裝置管理員、網路設定)請以「系統管理員身分執行」呼叫

結語:指令在手,控制台隨心走

Rundll32 指令表是 Windows 深度使用者的「傳送門」。收藏本表,下次需要直達「裝置管理員」、「電源選項」、「螢幕保護」、「網路連線」時,一行指令、一個捷徑、一個右鍵選單,秒開不迷路。

Copyright © Windows教程網 All Rights Reserved