FbwfVolumeConfiguration Class (Standard 7 SP1)
7/8/2014
The FbwfVolumeConfiguration class contains information about the configuration of a protected volume.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Syntax
class FbwfVolumeConfiguration
{
string Allocation;
string Compression;
boolean CurrentSession;
string DriveLetter;
string Name;
string SessionName;
string SizeDisplay;
uint32 State;
string StateName;
};
Members
The FbwfVolumeConfiguration class defines the following types of members:
- Properties
Properties
The FbwfVolumeConfiguration class defines the following properties.
Allocation
Data type: string
Access type: Read-only
Returns the state of cache pre-allocation for the given session. The state can be either "Enabled" or "Disabled".
Compression
Data type: string
Access type: Read-only
Returns the state of cache compression for the given session. The state can be either "Enabled" or "Disabled".
CurrentSession
Data type: boolean
Access type: Read-only
Qualifiers: Key
Returns true if the information about the exclusion list item is for the current session or false if it is for the next session.
DriveLetter
Data type: string
Access type: Read-only
Returns the drive letter of the volume.
Name
Data type: string
Access type: Read-only
Qualifiers: Key
Returns the name of the volume.
SessionName
Data type: string
Access type: Read-only
Returns a string representation of the CurrentSession property. The session name can be "Current" or "Next".
SizeDisplay
Data type: string
Access type: Read-only
Returns the size display mode for the given session. The mode can be either "Virtual" or "Actual".
State
Data type: uint32
Access type: Read-only
Returns the state of the overlay for the volume.
Value
Description
0
Enabled
1
Disabled
StateName
Data type: string
Access type: Read-only
Returns the state of the overlay for the volume. The state can be either "Enabled" or "Disabled".
Example
This example can be used to enumerate all instances of FbwfVolumeConfiguration.
Windows PowerShell
$ComputerName="localhost" # or "remote-machine-name"
$Namespace = "root\Microsoft\WriteFilters"
$Class = "FbwfVolumeConfiguration"
Write-Host "Retrieving FBWF volume configurations..."
$FbwfVolumes = Get-WmiObject `
-ComputerName $ComputerName `
-Namespace $Namespace `
-Class $Class `
Write-Host "The following volume configurations were found: "
foreach ($FbwfVolume in $FbwfVolumes) {
Write-Output $FbwfVolume `
}
VBScript
strComputer = "localhost" ' or "remote-machine-name"
strNamespace = "\root\Microsoft\WriteFilters"
strClass = "FbwfVolumeConfiguration"
On Error Resume Next
Set FbwfVolumes = GetObject("WINMGMTS:\\" & strComputer & _
strNamespace).InstancesOf(strClass)
If Err.Number <> 0 Then
WScript.Echo "Method exited with error code: 0x" & Hex(Err.Number)
Wscript.Echo Err.Source & " - " & Err.Description
WScript.Quit(1)
End If
For Each FbwfVolume In FbwfVolumes
WScript.Echo "Volume:" & FbwfVolume.Properties_("Name")
For Each Prop In FbwfVolume.Properties_
WScript.Echo Prop.Name & ":" & Prop.Value
Next
WScript.Echo "------------------------------"
Next
Requirements
Supported clients |
Windows XP Embedded SP3 |
MOF |
FBWFProvider.mof |
Namespace |
\root\Microsoft\WriteFilters |