大网数据广告活动
Windows排障命令

select disk

· 52CE 我爱测

Reference article for the select disk command, which selects the specified disk and then shifts focus to it.

Selects the specified disk and shifts the focus to it.

Syntax

select disk={<n>|<disk path>|system|next}

Parameters

Parameter Description
<n> Specifies the number of the disk to receive focus. You can view the numbers for all the disks on the computer by using the list disk command in DiskPart.NOTEWhen configuring systems with multiple disks, don't use select disk=0 to specify the system disk. The computer may reassign disk numbers when you reboot, and different computers with the same disk configuration can have different disk numbers.
<disk path> Specifies the location of the disk to receive focus, for example, PCIROOT(0)#PCI(0F02)#atA(C00T00L00). To view the location path of a disk, select it and then type detail disk.
system On BIOS computers, this option specifies that disk 0 receives focus. On EFI computers, the disk containing the EFI system partition (ESP), used for the current boot, receives focus. On EFI computers, the command will fail if there's no ESP, if there's more than one ESP, or if the computer is booted from Windows Preinstallation Environment (Windows PE).
next After a disk is selected, this option iterates over all disks in the disk list. When you run this option, the next disk in the list receives focus.

Examples

To shift the focus to disk 1, type:

select disk=1

To select a disk by using its location path, type:

select disk=PCIROOT(0)#PCI(0100)#atA(C00T00L01)

To shift the focus to the system disk, type:

select disk=system

To shift the focus to the next disk on the computer, type:

select disk=next

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。