Win32_OfflineFilesUserConfiguration class

Represents the user's offline files configuration properties.

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

Syntax

class Win32_OfflineFilesUserConfiguration
{
  string  AssignedOfflineFiles[];
  boolean WorkOfflineButtonRemoved;
  boolean MakeAvailableOfflineButtonRemoved;
  boolean IsEffective;
};

Members

The Win32_OfflineFilesUserConfiguration class has these types of members:

Properties

The Win32_OfflineFilesUserConfiguration class has these properties.

AssignedOfflineFiles
Data type: string array
Access type: Read/write

An array of strings containing administratively assigned offline files. Each string contains a file path. The file path should be no longer than MAX_PATH characters. The array size is not fixed; the caller can specify as many file paths as needed.

IsEffective
Data type: boolean
Access type: Read-only

If true, the configuration settings are in effect.

MakeAvailableOfflineButtonRemoved
Data type: boolean
Access type: Read/write

If true, the Make Available Offline button is removed.

WorkOfflineButtonRemoved
Data type: boolean
Access type: Read/write

If true, the Work Offline button is removed.

Remarks

This class requires a context object to be passed as the pCtx parameter to the IWbemServices::GetObject method. This context object has the following properties, which should be set to the following values:

Property NameTypeSpecify This Value
PolicyPlatformContext_PrincipalContext_TypeVT_BSTR"PolicyPlatform_UserContext"
PolicyPlatformContext_PrincipalContext_IdVT_BSTRThe user's SID in SDDL format
PolicyPlatformContext_PrincipalContext_UserSessionVT_I4The identifier of a Windows session to which the user is interactively logged on. It is possible that there are multiple sessions to which the user is logged on interactively. The MPP will pass the id of one of these sessions.
PolicyPlatformContext_PrincipalContext_FlagsVT_I4This property is reserved for future use. Set it to zero.
PolicyPlatformContext_PrincipalContext_ProcessIdVT_I4The process identifier of the process that owns the user's impersonation token
PolicyPlatformContext_PrincipalContext_UserTokenVT_I8The user's impersonation token

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Namespace

Root\CIMv2

MOF

OfflineFilesConfigurationWmiProvider.mof

 

 

Community Additions

ADD
Show: