FbwfPathExclusionListEntry Class (Standard 7 SP1)
7/8/2014
The FbwfPathExclusionListEntry class contains information about an item in the exclusion list of a volume protected by the File-Based Write Filter.
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
The FbwfPathExclusionListEntry class defines the following types of members:
- Properties
Properties
The FbwfPathExclusionListEntry class defines the following properties.
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 containing the exclusion list item.
Path
Data type: string
Access type: Read-only
Qualifiers: Key
Returns the absolute path in the associated volume of a file or directory in the exclusion list.
Example: "\Windows\Temp"
SessionName
Data type: string
Access type: Read-only
Returns a string representation of the CurrentSession property. The session name can be "Current" or "Next".
VolumeName
Data type: string
Access type: Read-only
Qualifiers: 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
Supported clients |
Windows XP Embedded SP3 |
MOF |
FBWFProvider.mof |
Namespace |
\root\Microsoft\WriteFilters |