Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
7/8/2014
Review the syntax, members, and examples of the FbwfVolumeConfiguration WMI provider class for Windows Embedded 8 Standard (Standard 8).
This 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
This class defines the following types of members:
- Properties
Properties
This class defines the following properties.
Property |
Data type |
Qualifiers |
Description |
|---|---|---|---|
Allocation |
string |
[Read] |
Returns the state of cache pre-allocation for the given session. The state can be either "Enabled" or "Disabled". |
Compression |
string |
[Read] |
Returns the state of cache compression for the given session. The state can be either "Enabled" or "Disabled". |
CurrentSession |
Boolean |
[Read, Key] |
Returns true if the information about the exclusion list item is for the current session; returns false if it is for the next session. |
DriveLetter |
string |
[Read] |
Returns the drive letter of the volume. |
Name |
string |
[Read, Key] |
Returns the name of the volume. |
SessionName |
string |
[Read] |
Returns a string representation of the CurrentSession property. The session name can be "Current" or "Next". |
SizeDisplay |
string |
[Read] |
Returns the size display mode for the given session. The mode can be either "Virtual" or "Actual". |
State |
uint32 |
[Read] |
Returns the state of the overlay for the volume. Returns 0 (zero) if the overlay is enabled; returns 1 if it is disabled. |
StateName |
string |
[Read] |
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
Architecture |
x64, |
MOF |
FBWFProvider.mof |
Supported Clients |
Windows XP Embedded SP3 |
WMI Namespace |
root\Microsoft\WriteFilters |
WMI Provider |
FBWFProvider |