Disk partition information windows

BIOS/MBR-based hard drive partitions

Create custom partition layouts for your hard disk drives (HDDs), solid-state drives (SSDs), and other drives when deploying Windows to BIOS–based devices.

NoteВ В If you use a custom partition layout on WindowsВ 10 for desktop editions (Home, Pro, Enterprise, and Education), update the push-button recovery script so the recovery tools can recreate the custom partition layout when needed.

Partition Requirements

When you deploy Windows to a BIOS-based device, you must format hard drives by using an MBR file system. Windows does not support the GUID partition table (GPT) file system on BIOS-based computers.

An MBR drive can have up to four standard partitions. Typically, these standard partitions are designated as primary partitions. For information about how to create additional partitions beyond this limit, see Configure More than Four Partitions on a BIOS/MBR-Based Hard Disk.

System partition

Each bootable drive must contain a system partition. The system partition must be configured as the active partition.

The minimum size of this partition is 100 MB.

Windows partition

  • This partition must have at least 20 gigabytes (GB) of drive space for 64-bit versions, or 16 GB for 32-bit versions.
  • The Windows partition must be formatted using the NTFS file format.
  • The Windows partition must have 16 GB of free space after the user has completed the Out Of Box Experience (OOBE) and Automatic Maintenance has completed.
  • This partition can have a maximum of 2 terabytes (TB) of space. Software tools to extend the visible partition space beyond 2 TB are not supported on BIOS because they can interfere with software solutions for application compatibility and recovery.

Recovery tools partition

Create a separate recovery partition to support automatic failover and to support booting WindowsВ BitLocker Drive Encryption-encrypted partitions.

We recommend that you place this partition in a separate partition, immediately after the Windows partition. This allows Windows to modify and recreate the partition later if future updates require a larger recovery image.

The Windows Recovery Environment (Windows RE) tools require additional free space:

  • A minimum of 52 MB is required but 250 MB is recommended, to accomodate future updates, especially with custom partition layouts.

When calculating free space, note:

  • The recovery image, winre.wim, is typically between 250-300MB, depending on what drivers, languages, and customizations you add.
  • The file system itself can take up additional space. For example, NTFS may reserve 5-15MB or more on a 750MB partition.

Data partitions

The recommended partition layout for WindowsВ 10 does not include utility or data partitions.

However, if utility or data partitions are required, they should be placed either before the Windows partition or after the Windows RE partition. By keeping the Windows and recovery partitions together, then when future updates of Windows RE area available, Windows will be able to grow the Windows RE partition by shrinking the Windows partition.

This layout makes it more difficult for end users to remove the data partition and merge the space with the Windows partition. For example, the Windows RE partition may need to be moved to the end of the unused space reclaimed from the data partition, so that the Windows partition can be extended. WindowsВ 10 does not include functionality or utility to facilitate this process. However, manufacturers can develop and provide such a utility if PCs are shipped with data partitions.

Each partition can have a maximum of 2 terabytes (TB) of space.

If you’re going to be adding more than four total partitions to the disk, see Configure More than Four Partitions on a BIOS/MBR-Based Hard Disk for more info.

Partition layout

If you install Windows using a bootable USB key made by Windows Imaging and Configuration Designer (ICD), it creates the following layout by default: a system partition, a Windows partition, and a recovery tools partition.

System and utility partitions

By default, system partitions do not appear in File Explorer. This helps protect end users from accidentally modifying a partition.

To keep system and utility partitions from being reset, use type 0x27. Do not use any of the following types: 0x7, 0x0c, 0x0b, 0x0e, 0x06, and 0x42.

To set partitions as utility partitions

  1. When you are deploying Windows by using Windows ICD, the partition type will be set automatically.
  2. When you are deploying Windows by using the DiskPart tool, use the set command after you create the partition.

To verify that system and utility partitions exist

  1. Click Start, right-click This PC, and then click Manage. The Computer Management window opens.
  2. Click Disk Management. The list of available drives and partitions appears.
  3. In the list of drives and partitions, confirm that the system and utility partitions are present and are not assigned a drive letter.

Sample files: configuring disk layout by using WindowsВ PE and DiskPart scripts

For image-based deployment, boot the PC to Windows PE, and then use the DiskPart tool to create the partition structures on your destination PCs.

NoteВ В In these DiskPart examples, the partitions are assigned the letters: System=S, Windows=W, and Recovery=R.

Change the Windows drive letter to a letter that’s near the end of the alphabet, such as W, to avoid drive letter conflicts. Do not use X, because this drive letter is reserved for Windows PE. After the device reboots, the Windows partition is assigned the letter C, and the other partitions don’t receive drive letters.

If you reboot, WindowsВ PE reassigns disk letters alphabetically, starting with the letter C, without regard to the configuration in Windows Setup. This configuration can change based on the presence of different drives, such as USB flash drives.

The following steps describe how to partition your hard drives and prepare to apply images. You can use the code in the sections that follow to complete these steps.

To partition hard drives and prepare to apply images

Save the following code as a text file (CreatePartitions-BIOS.txt) on a USB flash drive.

Use WindowsВ PE to boot the destination computer.

Clean and partition the drive. In this example, F is the letter of the USB flash drive.

If you use a custom partition layout on WindowsВ 10 for desktop editions, update the push-button recovery script so the recovery tools can recreate the custom partition layout when needed.

Important To avoid bare metal recovery boot issues due to partition size, it is recommended that manufacturers allow the bare metal recovery feature’s auto generation script to create the partition used for the recovery WIM. If manufacturer’s wish to use a custom DISKPART script for partition creation, the recommended minimum partition size is 990MB and a minimum of 250MB of free space.

Next steps

Use a deployment script to apply the Windows images on the newly created partitions. For more information, see Capture and Apply Windows, System, and Recovery Partitions.

PARTITION_INFORMATION_GPT structure (winioctl.h)

Contains GUID partition table (GPT) partition information.

Syntax

Members

A GUID that identifies the partition type.

Each partition type that the EFI specification supports is identified by its own GUID, which is published by the developer of the partition.

This member can be one of the following values.

Value Meaning
PARTITION_BASIC_DATA_GUID ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 The data partition type that is created and recognized by Windows.

Only partitions of this type can be assigned drive letters, receive volume GUID paths, host mounted folders (also called volume mount points), and be enumerated by calls to FindFirstVolume and FindNextVolume.

This value can be set only for basic disks, with one exception. If both PARTITION_BASIC_DATA_GUID and GPT_ATTRIBUTE_PLATFORM_REQUIRED are set for a partition on a basic disk that is subsequently converted to a dynamic disk, the partition remains a basic partition, even though the rest of the disk is a dynamic disk. This is because the partition is considered to be an OEM partition on a GPT disk.

PARTITION_ENTRY_UNUSED_GUID 00000000-0000-0000-0000-000000000000 There is no partition.

This value can be set for basic and dynamic disks.

PARTITION_SYSTEM_GUID c12a7328-f81f-11d2-ba4b-00a0c93ec93b The partition is an EFI system partition.

This value can be set for basic and dynamic disks.

PARTITION_MSFT_RESERVED_GUID e3c9e316-0b5c-4db8-817d-f92df00215ae The partition is a Microsoft reserved partition.

This value can be set for basic and dynamic disks.

PARTITION_LDM_METADATA_GUID 5808c8aa-7e8f-42e0-85d2-e1e90434cfb3 The partition is a Logical Disk Manager (LDM) metadata partition on a dynamic disk.

This value can be set only for dynamic disks.

PARTITION_LDM_DATA_GUID af9b60a0-1431-4f62-bc68-3311714a69ad The partition is an LDM data partition on a dynamic disk.

This value can be set only for dynamic disks.

PARTITION_MSFT_RECOVERY_GUID de94bba4-06d1-4d40-a16a-bfd50179d6ac The partition is a Microsoft recovery partition.

This value can be set for basic and dynamic disks.

The GUID of the partition.

The Extensible Firmware Interface (EFI) attributes of the partition.

This member can be one or more of the following values.

Value Meaning
GPT_ATTRIBUTE_PLATFORM_REQUIRED 0x0000000000000001 If this attribute is set, the partition is required by a computer to function properly.

For example, this attribute must be set for OEM partitions. Note that if this attribute is set, you can use the DiskPart.exe utility to perform partition operations such as deleting the partition. However, because the partition is not a volume, you cannot use the DiskPart.exe utility to perform volume operations on the partition.

This attribute can be set for basic and dynamic disks. If it is set for a partition on a basic disk and the disk is converted to a dynamic disk, the partition remains a basic partition, even though the rest of the disk is a dynamic disk. This is because the partition is considered to be an OEM partition on a GPT disk.

GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER 0x8000000000000000 If this attribute is set, the partition does not receive a drive letter by default when the disk is moved to another computer or when the disk is seen for the first time by a computer.

This attribute is useful in storage area network (SAN) environments.

Despite its name, this attribute can be set for basic and dynamic disks.

GPT_BASIC_DATA_ATTRIBUTE_HIDDEN 0x4000000000000000 If this attribute is set, the partition is not detected by the Mount Manager.

As a result, the partition does not receive a drive letter, does not receive a volume GUID path, does not host mounted folders (also called volume mount points), and is not enumerated by calls to FindFirstVolume and FindNextVolume. This ensures that applications such as Disk Defragmenter do not access the partition. The Volume Shadow Copy Service (VSS) uses this attribute.

Despite its name, this attribute can be set for basic and dynamic disks.

GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY 0x2000000000000000 If this attribute is set, the partition is a shadow copy of another partition.

VSS uses this attribute. This attribute is an indication for file system filter driver-based software (such as antivirus programs) to avoid attaching to the volume.

An application can use the attribute to differentiate a shadow copy volume from a production volume. An application that does a fast recovery, for example, will break a shadow copy LUN and clear the read-only and hidden attributes and this attribute. This attribute is set when the shadow copy is created and cleared when the shadow copy is broken.

Despite its name, this attribute can be set for basic and dynamic disks.

Windows ServerВ 2003:В В This attribute is not supported before Windows ServerВ 2003 with SP1.

GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY 0x1000000000000000 If this attribute is set, the partition is read-only.

Writes to the partition will fail. IOCTL_DISK_IS_WRITABLE will fail with the ERROR_WRITE_PROTECT Win32 error code, which causes the file system to mount as read only, if a file system is present.

VSS uses this attribute.

Do not set this attribute for dynamic disks. Setting it can cause I/O errors and prevent the file system from mounting properly.

A wide-character string that describes the partition.

Remarks

The GPT partition format is required for disks that are used to boot computers that use Extended Firmware Interface (EFI) firmware. GPT data disks can reside on x86, x64, and Itanium-based architectures.

Starting with Windows ServerВ 2003 with SP1, GPT is supported on all Windows platforms, not only platforms that use EFI.

Win32_DiskPartition class

The Win32_DiskPartition WMI class represents the capabilities and management capacity of a partitioned area of a physical disk on a computer system running Windows. Example: Disk #0, Partition #1.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

Members

The Win32_DiskPartition class has these types of members:

Methods

The Win32_DiskPartition class has these methods.

Method Description
Reset Requests a reset of the logical device.
SetPowerState Sets the desired power state for a logical device and when a device should be put into that state.

Properties

The Win32_DiskPartition class has these properties.

Access

Data type: uint16

Access type: Read-only

Media access available.

Unknown (0)

Readable (1)

Writeable (2)

Read/Write Supported (3)

Write Once (4)

AdditionalAvailability

Data type: unit16

Access type: Write-only

Additional availability and status of the Device, beyond that specified in the Availability property. The Availability property denotes the primary status and availability of the Device. In some cases, this will not be sufficient to denote the complete status of the Device. In those cases, the AdditionalAvailability property can be used to provide further information. For example, a Device’s primary Availability may be Off line (value=8), but it may also be in a low power state (AdditonalAvailability value=14), or the Device could be running Diagnostics (AdditionalAvailability value=5, In Test).»

Other (1)

Unknown (2)

Running/Full Power (3)

Warning (4)

In Test (5)

Not Applicable (6)

Power Off (7)

Off Line (8)

Off Duty (9)

Degraded (10)

Not Installed (11)

Install Error (12)

Power Save — Unknown (13)

Power Save — Low Power Mode (14)

Power Save — Standby (15)

Power Cycle (16)

Power Save — Warning (17)

Paused (18)

Not Ready (19)

Not Configured (20)

Quiesce (21)

Availability

Data type: uint16

Access type: Read-only

Qualifiers: MappingStrings («MIF.DMTF|Operational State|003.5», «MIB.IETF|HOST-RESOURCES-MIB.hrDeviceStatus»)

Availability and status of the device.

Other (1)

Unknown (2)

Running/Full Power (3)

Warning (4)

In Test (5)

Not Applicable (6)

Power Off (7)

Off Line (8)

Off Duty (9)

Degraded (10)

Not Installed (11)

Install Error (12)

Power Save — Unknown (13)

The device is known to be in a power save mode, but its exact status is unknown.

Power Save — Low Power Mode (14)

The device is in a power save state but still functioning, and may exhibit degraded performance.

Power Save — Standby (15)

The device is not functioning but could be brought to full power quickly.

Power Cycle (16)

Power Save — Warning (17)

The device is in a warning state, though also in a power save mode.

Paused (18)

The device is paused.

Not Ready (19)

The device is not ready.

Not Configured (20)

The device is not configured.

Quiesced (21)

The device is quiet.

BlockSize

Data type: uint64

Access type: Read-only

Size in bytes of the blocks which form this storage extent. If unknown or if a block concept is not valid (for example, for aggregate extents, memory or logical disks), enter a 1.

For more information about using uint64 values in scripts, see Scripting in WMI.

Bootable

Data type: boolean

Access type: Read-only

Indicates whether the computer can be booted from this partition.

BootPartition

Data type: boolean

Access type: Read-only

Qualifiers: MappingStrings («Win32API|File Functions|ReadFile»)

Partition is the active partition. The operating system uses the active partition when booting from a hard disk.

Caption

Data type: string.

Access type: Read-only

Short description of the object.

ConfigManagerErrorCode

Data type: uint32

Access type: Read-only

Windows Configuration Manager error code.

This device is working properly. (0)

Device is working properly.

This device is not configured correctly. (1)

Device is not configured correctly.

Windows cannot load the driver for this device. (2)

The driver for this device might be corrupted, or your system may be running low on memory or other resources. (3)

This device is not working properly. One of its drivers or your registry might be corrupted. (4)

The driver for this device needs a resource that Windows cannot manage. (5)

The boot configuration for this device conflicts with other devices. (6)

Cannot filter. (7)

The driver loader for the device is missing. (8)

This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly. (9)

This device cannot start. (10)

This device failed. (11)

This device cannot find enough free resources that it can use. (12)

Windows cannot verify this device’s resources. (13)

This device cannot work properly until you restart your computer. (14)

This device is not working properly because there is probably a re-enumeration problem. (15)

Windows cannot identify all the resources this device uses. (16)

This device is asking for an unknown resource type. (17)

Reinstall the drivers for this device. (18)

Failure using the VxD loader. (19)

Your registry might be corrupted. (20)

System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device. (21)

This device is disabled. (22)

System failure: Try changing the driver for this device. If that doesn’t work, see your hardware documentation. (23)

This device is not present, is not working properly, or does not have all its drivers installed. (24)

Windows is still setting up this device. (25)

Windows is still setting up this device. (26)

This device does not have valid log configuration. (27)

The drivers for this device are not installed. (28)

This device is disabled because the firmware of the device did not give it the required resources. (29)

This device is using an Interrupt Request (IRQ) resource that another device is using. (30)

This device is not working properly because Windows cannot load the drivers required for this device. (31)

ConfigManagerUserConfig

Data type: boolean

Access type: Read-only

If True, the device is using a user-defined configuration.

CreationClassName

Data type: string.

Access type: Read-only

Name of the first concrete class to appear in the inheritance chain used in the creation of an instance. When used with the other key properties of the class, the property allows all instances of this class and its subclasses to be uniquely identified.

Description

Data type: string

Access type: Read-only

Description of the object.

DeviceID

Data type: string

Access type: Read-only

Unique identifier of the disk drive and partition, from the rest of the system.

DiskIndex

Data type: uint32

Access type: Read-only

Qualifiers: MappingStrings («Win32API|File Functions|ReadFile»)

Index number of the disk containing this partition.

ErrorCleared

Data type: boolean

Access type: Read-only

If True, the error reported in LastErrorCode is now cleared.

ErrorDescription

Data type: string

Access type: Read-only

Information about the error recorded in LastErrorCode, and information on any corrective actions that may be taken.

ErrorMethodology

Data type: string

Access type: Read-only

Type of error detection and correction supported by this storage extent.

HiddenSectors

Data type: uint32

Access type: Read-only

Number of hidden sectors in the partition.

IdentifyingDescriptions

Data type: string array

Access type: Read-only

An array of free-form strings providing explanations and details behind the entries in the OtherIdentifyingInfo array. Note, each entry of this array is related to the entry in OtherIdentifyingInfo that is located at the same index.

Index

Data type: uint32

Access type: Read-only

Index number of the partition.

InstallDate

Data type: datetime

Access type: Read-only

Date the object was installed. This property does not need a value to indicate that the object is installed.

LastErrorCode

Data type: uint32

Access type: Read-only

Last error code reported by the logical device.

MaxQuiesceTime

Data type: uint64

Access type: Read-only

Qualifiers: Depricated

Maximum time in milliseconds, that a Device can run in a Quiesced state. A Device’s state is defined in its Availability and AdditionalAvailability properties, where Quiesced is conveyed by the value 21. What occurs at the end of the time limit is device-specific. The Device may unquiesce, may offline or take other action. A value of 0 indicates that a Device can remain quiesced indefinitely.

«The MaxQuiesceTime property has been deprecated. When evaluating the use of Quiesce, it was determine that this single property is not adequate for describing when a device will automatically exit a quiescent state. In fact, the most likely scenario for a device to exit a quiescent state was determined to be based on the number of outstanding requests queued rather than on a maximum time. This will be re-evaluated and repositioned later. \n

Name

Data type: string

Access type: Read-only

Label by which the object is known. When subclassed, the property can be overridden to be a key property.

NumberOfBlocks

Data type: uint64

Access type: Read-only

Total number of consecutive blocks, each block the size of the value contained in the BlockSize property, which form this storage extent. Total size of the storage extent can be calculated by multiplying the value of the BlockSize property by the value of this property. If the value of BlockSize is 1, this property is the total size of the storage extent.

For more information about using uint64 values in scripts, see Scripting in WMI.

OtherIdentifyingInfo

Data type: uint64

Access type: Read-only

Array that captures additional data, beyond DeviceID information, that could be used to identify a LogicalDevice. One example would be to hold the Operating System’s user friendly name for the Device in this property. Maximum length is 256.

PNPDeviceID

Data type: string

Access type: Read-only

Windows Plug and Play device identifier of the logical device.

PowerManagementCapabilities

Data type: uint16 array

Access type: Read-only

Indicates the specific power-related capabilities of the logical device. The array values, 0=»Unknown», 1=»Not Supported» and 2=»Disabled» are self-explanatory. The value, 3=»Enabled» indicates that the power management features are currently enabled but the exact feature set is unknown or the information is unavailable. «Power Saving Modes Entered Automatically» (4) describes that a device can change its power state based on usage or other criteria. «Power State Settable» (5) indicates that the SetPowerState method is supported. «Power Cycling Supported» (6) indicates that the SetPowerState method can be invoked with the PowerState input variable set to 5 («Power Cycle»). «Timed Power On Supported» (7) indicates that the SetPowerState method can be invoked with the PowerState input variable set to 5 («Power Cycle») and the Time parameter set to a specific date and time, or interval, for power-on.

Unknown (0)

Not Supported (1)

Disabled (2)

Enabled (3)

Power Saving Modes Entered Automatically (4)

Power State Settable (5)

Power Cycling Supported (6)

Timed Power On Supported (7)

PowerManagementSupported

Data type: boolean

Access type: Read-only

If True, the device can be power-managed (can be put into suspend mode, and so on). The property does not indicate that power management features are currently enabled, only that the logical device is capable of power management.

PowerOnHours

Data type: uint64

Access type: Read-only

The number of consecutive hours that this Device has been powered, since its last power cycle.

PrimaryPartition

Data type: boolean

Access type: Read-only

If True, this is the primary partition.

Purpose

Data type: string

Access type: Read-only

Description of the media and its use.

RewritePartition

Data type: boolean

Access type: Read-only

If True, the partition information has changed. When you change a partition (with IOCTL_DISK_SET_DRIVE_LAYOUT), the system uses this property to determine which partitions have changed and need their information rewritten. If TRUE, the partition must be rewritten.

Size

Data type: uint64

Access type: Read-only

Total size of the partition.

For more information about using uint64 values in scripts, see Scripting in WMI.

StartingOffset

Data type: uint64

Access type: Read-only

Starting offset (in bytes) of the partition.

For more information about using uint64 values in scripts, see Scripting in WMI.

Status

Data type: string

Access type: Read-only

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: «OK», «Degraded», and «Pred Fail» (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: «Error», «Starting», «Stopping», and «Service». The latter, «Service», could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither «OK» nor in one of the other states.

OK («OK»)

Error («Error»)

Degraded («Degraded»)

Unknown («Unknown»)

Pred Fail («Pred Fail»)

Starting («Starting»)

Stopping («Stopping»)

Service («Service»)

Stressed («Stressed»)

NonRecover («NonRecover»)

No Contact («No Contact»)

Lost Comm («Lost Comm»)

StatusInfo

Data type: uint16

Access type: Read-only

State of the logical device. If this property does not apply to the logical device, the value 5 («Not Applicable») should be used.

Other (1)

Unknown (2)

Enabled (3)

Disabled (4)

Not Applicable (5)

SystemCreationClassName

Data type: string

Access type: Read-only

Creation class name of the scoping system.

SystemName

Data type: string

Access type: Read-only

Name of the scoping system.

TotalPowerOnHours

Data type: uint64

Access type: Read-only

The total number of hours that this device has been powered.

Type

Data type: string

Access type: Read-only

Type of the partition.

«Unused» «12-bit FAT» «Xenix Type 1» «Xenix Type 2» «16-bit FAT» «Extended Partition» «MS-DOS V4 Huge» «Installable File System» «PowerPC Reference Platform» «UNIX» «NTFS» «Win95 w/Extended Int 13» «Extended w/Extended Int 13» «Logical Disk Manager» «Unknown»

Unused («Unused»)

12-bit FAT («12-bit FAT»)

Xenix Type 1 («Xenix Type 1»)

Xenix Type 2 («Xenix Type 2»)

16-bit FAT («16-bit FAT»)

Extended Partition («Extended Partition»)

MS-DOS V4 Huge («MS-DOS V4 Huge»)

Installable File System («Installable File System»)

PowerPC Reference Platform («PowerPC Reference Platform»)

UNIX («UNIX»)

NTFS («NTFS»)

Win95 w/Extended Int 13 («Win95 w/Extended Int 13»)

Extended w/Extended Int 13 («Extended w/Extended Int 13»)

Logical Disk Manager («Logical Disk Manager»)

Unknown («Unknown»)

Remarks

The Win32_DiskPartition class is derived from CIM_DiskPartition.

A partition is a structural division of a physical disk drive. Although a drive can contain a single partition, larger volumes are often divided into multiple partitions. This is why you might have drives C, D, and E even though your computer has only a single physical hard disk.

Windows supports the following partition types:

  • Primary partition. This is the only type of partition that can have an operating system installed. Each drive can have as many as four primary partitions, each assigned a different drive letter.
  • Extended partition. An additional partition that can be subdivided into multiple logical drives, each assigned a unique drive letter. A drive can have only one extended partition; however, you can divide this partition into multiple logical drives. This enables a disk to have more than just the four allowed primary partitions.
  • System partition. Any primary partition containing an operating system.

Partitions can tell you how a physical disk drive is actually being used. By examining the physical partitions on a disk, you can determine the following types of things:

  • How the disk has been divided into logical drives.
  • If there is unpartitioned space available on the disk. This can be determined by subtracting the size of all the partitions on a disk from the size of the disk itself.
  • If you can boot the computer from that disk (that is, does the disk contain a boot partition).

All these questions can be resolved by using the Win32_DiskPartition class.

Examples

The following PowerShell code sample checks the alignment of disks on a computer: if the offset is fractional, the disk is not aligned correctly.

Читайте также:  Топ твикеров для windows 10
Оцените статью