Partager via


Win32_ShadowContext class

The Win32_ShadowContext class specifies how a shadow copy is to be created, queried, or deleted, and the degree of writer involvement.

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

Syntax

class Win32_ShadowContext : CIM_Setting
{
  string  Name;
  boolean Persistent;
  boolean ClientAccessible;
  boolean NoAutoRelease;
  boolean NoWriters;
  boolean Transportable;
  boolean NotSurfaced;
  boolean HardwareAssisted;
  boolean Differential;
  boolean Plex;
  boolean Imported;
  boolean ExposedRemotely;
  boolean ExposedLocally;
};

Members

The Win32_ShadowContext class has these types of members:

Properties

The Win32_ShadowContext class has these properties.

ClientAccessible

Data type: boolean

Access type: Read-only

If true, the shadow copy is created by the Windows Previous Versions component.

Differential

Data type: boolean

Access type: Read-only

If true, the shadow copy is created by a differential shadow copy provider. The provider can be implemented in hardware or software.

ExposedLocally

Data type: boolean

Access type: Read-only

If true, the shadow copy is exposed on a remote computer with a network share. If both ExposedLocally and ExposedRemotely are false, the shadow copy is hidden.

ExposedRemotely

Data type: boolean

Access type: Read-only

If true, the shadow copy is exposed on a remote computer with a network share. If both ExposedRemotely and ExposedLocally are false, the shadow copy is hidden.

HardwareAssisted

Data type: boolean

Access type: Read-only

If true, the shadow copy is created by a hardware shadow copy provider.

Imported

Data type: boolean

Access type: Read-only

If true, the shadow copy is imported to a computer by using the Import method and is not created by using the Create method.

Name

Data type: string

Access type: Read-only

Qualifiers: Key

Name of the context.

NoAutoRelease

Data type: boolean

Access type: Read-only

If true, the shadow copy is retained after the requestor process ends. If false, the shadow copy is automatically deleted when the shadow copy requestor process ends.

NotSurfaced

Data type: boolean

Access type: Read-only

If true, the shadow copy is not currently in the device namespace of the local computer.

NoWriters

Data type: boolean

Access type: Read-only

If true, the shadow copy is created without involvement of shadow copy writer components.

Persistent

Data type: boolean

Access type: Read-only

If true, the shadow copy persists across restarts.

Plex

Data type: boolean

Access type: Read-only

If true, the shadow copy is created by a split-mirror shadow copy provider.

Transportable

Data type: boolean

Access type: Read-only

If true, the shadow copy can be surfaced on another computer. If false, and the volumes are surfaced locally, it may not be possible to surface them later on a different computer.

Examples

The Get Remote Shadow Volume Information With Powershell PowerShell sample on TechNet gallery uses Win32_ShadowContext to retrieve shadow volume information.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2003
Namespace
Root\CIMV2
MOF
Vss.mof
DLL
Vsswmi.dll

See also

Win32_ShadowProvider

Win32_ShadowCopy

Win32_ShadowStorage

Win32_ShadowBy

Win32_ShadowFor

Win32_ShadowOn

Win32_ShadowVolumeSupport

Win32_ShadowDiffVolumeSupport