UWF_Servicing

이 클래스는 UWF(통합 쓰기 필터) 서비스 모드를 쿼리하고 제어할 수 있는 속성과 메서드를 포함합니다.

구문

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

    UInt32 Enable();
    UInt32 Disable();
    UInt32 UpdateWindows(
        [out] UInt32 UpdateStatus
    );
};

멤버

다음 표에는 이 클래스에 속하는 메서드 및 속성이 나와 있습니다.

메서드

메서드 설명
UWF_Servicing.Disable UWF(통합 쓰기 필터) 서비스 모드를 사용하지 않도록 설정합니다.
시스템은 다시 시작 후 다음 세션에서 서비스 모드를 유지합니다.
UWF_Servicing.Enable UWF(통합 쓰기 필터) 서비스 모드를 사용하도록 설정합니다.
시스템은 다시 시작 후 다음 세션에서 서비스 모드로 전환됩니다.
UWF_Servicing.UpdateWindows Windows 업데이트를 호출하여 Windows10 Enterprise를 실행하는 디바이스에 대한 중요 및 보안 업데이트를 다운로드하고 설치합니다.

속성

속성 데이터 형식 한정자 설명 및
CurrentSession 부울 [key, read] 서비스를 사용하도록 설정할 시기를 나타냅니다.
- True이면 현재 세션
- False
에서 서비스를 사용하도록 설정하면 다시 시작 후 세션에서 서비스가 사용하도록 설정됩니다.
ServiceEnabled 부울 [read] 시스템이 현재 세션에서 서비스 모드에 있는지 또는 다시 시작 후 다음 세션에서 서비스 모드에 있는지를 나타냅니다.
- 서비스를 사용하도록 설정하면 True이고, 그렇지 않으면 False
입니다.

설명

이 클래스에는 현재 세션에 대한 인스턴스와 다시 시작 후 다음 세션에 대한 인스턴스로 두 개만 있습니다.

예시

다음 예제에서는 PowerShell 스크립트에서 WMI(Windows Management Instrumentation) 공급자를 사용하여 디바이스에서 UWF 서비스 모드를 활성화 및 비활성화하는 방법을 보여 줍니다.

$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."
}

요구 사항

Windows 버전 지원됨
Windows Home 아니요
Windows Pro 아니요
Windows Enterprise
Windows Education
Windows IoT Enterprise