Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 2000/2003 網路與磁碟維護實用指令大全

編輯:Windows 2003 常見問題解答

Windows 2000/2003 內建「復原主控台」提供底層修復指令,配合一般命令提示字元指令,可處理磁碟邏輯錯誤、開機磁區損壞、分區管理、網路連線等常見維護工作。

一、磁碟與檔案系統修復

任務指令關鍵參數
掃描/修復邏輯錯誤、壞軌chkdsk/p 強制檢查、/r 尋找壞軌並恢復資料 (含 /p)
重寫分區開機磁區fixbootfixboot D: 寫入 D: 分區;無參數寫入系統分區
修復主開機記錄 (MBR)fixmbrfixmbr \Device\HardDisk0;無參數寫入開機磁碟
快速格式化分區format/q 快速、/fs:NTFS 指定檔案系統
建立/刪除分區 (不影響現有系統)diskpart/add 建立、/delete 刪除、指定裝置/磁碟機/分區名稱、size (MB)

二、服務與驅動程式控制 (復原主控台)

  • disable <服務/驅動名稱> — 停用,會顯示原啟動類型以便日後復原。
  • enable <服務/驅動名稱> <啟動類型> — 啟用,啟動類型:SERVICE_BOOT_START、SYSTEM_START、AUTO_START、DEMAND_START。
  • listsvc — 列出所有可用服務與驅動。

三、系統登入與環境

  • logon — 列出偵測到的 Windows 安裝,輸入 Administrator 密碼登入 (最多 3 次失敗重開機)。
  • systemroot — 將當前目錄切至登入安裝的 %SystemRoot%。
  • set <變數>=<值> — 設定復原主控台環境變數 (如 allowwildcards=true 啟用萬用字元)。
  • exit — 離開復原主控台並重開機。

四、網路連線與 VPN 存取控制

  • net use \\Server\Share /user:Domain\User Password — 映射網路磁碟機;/d 斷開。
  • 限制 VPN 撥入用戶:在「路由和遠端存取」→「遠端存取原則」新增原則,依「Windows-Groups」條件限定允許群組,非群組成員自動拒絕。

五、線上說明

help [指令] 或 指令 /? 取得語法說明 (如 help disable)。

熟練這些指令,可在無圖形介面環境下快速完成磁碟搶救、開機修復、服務控制與網路存取管理。

Copyright © Windows教程網 All Rights Reserved