Windows Dev Center

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

UserProfileConfigurationWmiProvider.mof

 

 

Community Additions

ADD
Show:
© 2015 Microsoft