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.


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


The Win32_OfflineFilesUserConfiguration class has these types of members:


The Win32_OfflineFilesUserConfiguration class has these properties.


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.


Data type: boolean

Access type: Read-only

If true, the configuration settings are in effect.


Data type: boolean

Access type: Read/write

If true, the Make Available Offline button is removed.


Data type: boolean

Access type: Read/write

If true, the Work Offline button is removed.


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 Name Type Specify This Value
PolicyPlatformContext_PrincipalContext_Type VT_BSTR "PolicyPlatform_UserContext"
PolicyPlatformContext_PrincipalContext_Id VT_BSTR The user's SID in SDDL format
PolicyPlatformContext_PrincipalContext_UserSession VT_I4 The 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_Flags VT_I4 This property is reserved for future use. Set it to zero.
PolicyPlatformContext_PrincipalContext_ProcessId VT_I4 The process identifier of the process that owns the user's impersonation token
PolicyPlatformContext_PrincipalContext_UserToken VT_I8 The user's impersonation token


Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]