FbwfPathExclusionListEntry Class (Standard 8)

7/8/2014

Review the syntax, members, and examples of the FbwfPathExclusionListEntry WMI provider class for Windows Embedded 8 Standard (Standard 8).

This class contains information about an item in the exclusion list of a volume protected by the File-Based Write Filter (FBWF).

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

class FbwfPathExclusionListEntry
{
  boolean CurrentSession;
  string  DriveLetter;
  string  Path;
  string  SessionName;
  string  VolumeName;
};

Members

This class defines the following types of members:

  • Properties

Properties

This class defines the following properties.

Property

Data type

Qualifiers

Description

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 containing the exclusion list item.

Path

string

[Read, Key]

Returns the absolute path in the associated volume of a file or directory in the exclusion list. For example, “\Windows\Temp”

SessionName

string

[Read]

Returns a string representation of the CurrentSession property. The session name can be "Current" or "Next".

VolumeName

string

[Read, Key]

Returns the name of the protected volume containing the exclusion list item.

Example

This example can be used to retrieve a listing of files and directories excluded from an FBWF-protected volume.

Windows PowerShell

$ComputerName="localhost"   # or "remote-machine-name"
$Namespace = "root\Microsoft\WriteFilters"
$Class = "FbwfPathExclusionListEntry"

Write-Output "Retrieving exclusion list entries..."

$FbwfPathExclusionListEntries = Get-WmiObject `
   -ComputerName $ComputerName `
   -Namespace $Namespace `
   -Class $Class 

Write-Output $FbwfPathExclusionListEntries | Format-List

VBScript

strComputer = "localhost"   ' or "remote-machine-name"
strNamespace = "\root\Microsoft\WriteFilters"
strClass = "FbwfPathExclusionListEntry"

WScript.Echo "Retrieving exclusion list entries..."

On Error Resume Next

Set FbwfPathExclusionListEntries = 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 FbwfPathExclusionListEntry In FbwfPathExclusionListEntries
   For Each Prop In FbwfPathExclusionListEntry.Properties_
      WScript.Echo Prop.Name & ":" & Prop.Value
   Next
Next

Requirements

Architecture

x64,
x86

MOF

FBWFProvider.mof

Supported Clients

Windows XP Embedded SP3
Windows Embedded Standard 2009
Windows Embedded Standard 7 SP1
Windows Embedded 8 Standard
WEPOS 1.1 SP3
POSReady 2009
Windows Embedded POSReady 7
Windows Fundamentals for Legacy PCs 7

WMI Namespace

root\Microsoft\WriteFilters

WMI Provider

FBWFProvider

See Also

Concepts

File-Based Write Filter WMI Provider Reference