Partager via


Win32_RoamingProfileUserConfiguration class

Represents a roaming profile user configuration.

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

Syntax

class Win32_RoamingProfileUserConfiguration
{
  string  ExcludedProfileDirs[];
  string  DirectoriesToSyncAtLogonLogoff[];
  boolean IsEffective;
};

Members

The Win32_RoamingProfileUserConfiguration class has these types of members:

Properties

The Win32_RoamingProfileUserConfiguration class has these properties.

DirectoriesToSyncAtLogonLogoff

Data type: string array

Access type: Read/write

An array of strings containing network directories to synchronize at when the user logs on to or off of a local computer.

ExcludedProfileDirs

Data type: string array

Access type: Read/write

An array of strings containing directories to exclude from the roaming profile.

IsEffective

Data type: boolean

Access type: Read-only

If true, the configuration settings are in effect.

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 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

Requirements

Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\CIMv2
MOF
UserProfileConfigurationWmiProvider.mof