MSFT_StorageSetting class

Represents various operating system-wide settings related to storage management.

The following syntax is simplified from Managed Object Format (MOF) code.

Syntax

class MSFT_StorageSetting
{
  UInt16 NewDiskPolicy;
  UInt32 ScrubPolicy;
};

Members

The MSFT_StorageSetting class has these types of members:

Methods

The MSFT_StorageSetting class has these methods.

Method Description
Get Retrieves the current state of all storage settings for the computer.
Set Sets the state of various storage settings on this computer.
UpdateHostStorageCache Updates the internal cache of software objects (that is, Disks, Partitions, Volumes) for the storage setting.

Properties

The MSFT_StorageSetting class has these properties.

NewDiskPolicy

Data type: UInt16

Access type: Read-only

Describes the action the operating system will take when a new disk is discovered on the system. When a disk is offline, the disk layout can be read, but no volume devices are surfaced through Plug and Play (PnP). This means that no file system can be mounted on the disk. When a disk is online, one or more volume devices are installed for the disk.

Value Meaning
Unknown 0 The disk policy is not specified.
Online All 1 All newly discovered disks are brought online and made read/write.
Offline Shared 2 All newly discovered disks that do not reside on a shared bus are brought online and made read/write.
Offline All 3 All newly discovered disks remain offline and read-only.
Offline Internal 4 All newly discovered disks that do not reside on a shared bus remain offline and read-only.

ScrubPolicy

Data type: UInt32

Access type: Read-only

Describes the policy for the files that the automatic data integrity scanner will scrub.

Off (0)

Integrity Streams (1)

All (2)

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Namespace Root\Microsoft\Windows\Storage
MOF Storagewmi.mof