The SMS_TaskSequence_PartitionDiskAction Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents a task sequence action that formats and partitions a specified disk on a target computer.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_TaskSequence_PartitionDiskAction : SMS_TaskSequence_Action
{
	SMS_TaskSequence_Condition Condition;
	Boolean ContinueOnError;
	String Description;
	UInt32 DiskIndex;
	Boolean DiskpartBiosCompatibilityMode;
	String DiskType;
	Boolean Enabled;
	Boolean GPTBootDisk;
	String Name;
	SMS_TaskSequence_PartitionSettings Partitions[];
	String PartitionStyle;
	String SupportedEnvironment;
	UInt32 Timeout;
};

Methods

The SMS_TaskSequence_PartitionDiskAction class does not define any methods.

Properties

Condition


Data type: SMS_TaskSequence_ConditionAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
ContinueOnError


Data type: BooleanAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
Description


Data type: StringAccess type: Read/WriteQualifiers: [AllowedLen("0-255")]See SMS_TaskSequence_Action Server WMI Class.
DiskIndex


Data type: UInt32Access type: Read/WriteQualifiers: [Not_Null]The number of the physical disk to partition and format.
DiskpartBiosCompatibilityMode


Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue to set registry keys to disable sector alignment when partitioning the disk for compatibility with the target computer BIOS. The default value is false.
DiskType


Data type: StringAccess type: Read/WriteQualifiers: NoneDeprecated and should not be used.The type of disk. Possible values are:
  • DYNAMIC

  • BASIC

Enabled


Data type: BooleanAccess type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.
GPTBootDisk


Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue to create an extensible firmware interface (EFI) partition so that an EFI system can boot from the disk. The default value is false. Set this property if PartitionStyle is set to GPT.
Name


Data type: StringAccess type: Read/WriteQualifiers: [AllowedLen("1-100")]See SMS_TaskSequence_Action Server WMI Class.
Partitions


Data type: SMS_TaskSequence_PartitionSettings ArrayAccess type: Read/WriteQualifiers: [Not_null]SMS_TaskSequence_PartitionSettings Server WMI Class objects representing partition settings.
PartitionStyle


Data type: StringAccess type: Read/WriteQualifiers: [Not_null]The partition style. Possible values are:
  • GPT. GUID partition table format.

  • MBR. Master boot record format.

SupportedEnvironment


Data type: StringAccess type: Read/WriteQualifiers: [Not_Null:ToInstance]See SMS_TaskSequence_Action Server WMI Class.The default value of this property for this task sequence action is WinPE.
Timeout


Data type: UInt32Access type: Read/WriteQualifiers: NoneSee SMS_TaskSequence_Action Server WMI Class.

Remarks

Class qualifiers for this class include:

[CommandLine("osddiskpart.exe"),VariablePrefix("OSD"),

ActionCategory{"Disks,1,2"},ActionUI{"AdminUI.TaskSequenceEditor.dll", "Microsoft.ConfigurationManagement.AdminConsole.TaskSequenceEditor", "PartitionDiskControl", "TaskSequenceOptionControl"}]

For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.