UWF_Servicing (Standard 8)

7/8/2014

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

This class contains properties and methods that enable you to query and control Unified Write Filter (UWF) servicing mode.

Syntax

class UWF_Servicing {
    [key, read] boolean CurrentSesson;
    [read] boolean ServicingEnabled;

    UInt32 Enable();
    UInt32 Disable();
};

Members

The following tables list the methods and properties that belong to this class.

Methods

Method

Description

Disable

Disables Unified Write Filter (UWF) servicing mode.

The system leaves servicing mode in the next session that follows a restart.

Enable

Enables Unified Write Filter (UWF) servicing mode.

The system enters servicing mode in the next session that follows a restart.

Properties

Property

Data type

Qualifiers

Description

CurrentSession

boolean

[key, read]

True: Indicates that servicing is enabled in the current session.

False: Indicates that servicing is enabled in the session that follows a restart.

ServicingEnabled

boolean

[read]

True: Indicates that the system is in servicing mode in the current session, or will be in servicing mode in the next session that follows a restart.

False: Indicates that the system is not in servicing mode in the current session, or will not be in servicing mode in the next session that follows a restart.

Remarks

This class only has two instances, one for the current session, and another for the next session that follows a restart.

Example

The following example shows how to enable and disable UWF servicing mode on a device by using the Windows Management Instrumentation (WMI) provider in a PowerShell script.

$COMPUTER = "localhost"
$NAMESPACE = "root\standardcimv2\embedded"

# Define common parameters

$CommonParams = @{"namespace"=$NAMESPACE; "computer"=$COMPUTER}

# Enable UWF Servicing

$nextSession = Get-WmiObject -class UWF_Servicing @CommonParams | where {
    $_.CurrentSession -eq $false
}

if ($nextSession) {

    $nextSession.Enable() | Out-Null;
    Write-Host "This device is enabled for servicing mode after the next restart."
}

# Disable UWF Servicing

$nextSession = Get-WmiObject -class UWF_Servicing @CommonParams | where {
    $_.CurrentSession -eq $false
}

if ($nextSession) {

    $nextSession.Disable() | Out-Null;
    Write-Host "Servicing mode is now disabled for this device."
} 

Requirements

Architecture

x64,
x86

MOF

uwfwmi.mof

WMI Namespace

root\standardcimv2\embedded

WMI Provider

UWF

See Also

Reference

Unified Write Filter WMI Provider Reference

Concepts

Unified Write Filter (UWF) Overview