Set method of the MSFT_StorageSetting class

Sets the state of various storage settings on this computer.

Only the parameters specified will be set on the system.

Syntax

UInt32 Set(
  [in] UInt16 NewDiskPolicy,
  [in] UInt32 ScrubPolicy
);

Parameters

NewDiskPolicy [in]

The new disk policy.

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 [in]

The file scrub policy of the automatic data integrity scanner.

Value Meaning
0 Off
1 Integrity Streams
2 All

Requirements

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

See also

MSFT_StorageSetting