Win32_UserProfile class
The Win32_UserProfile class contains information about user profiles on a Windows system.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Syntax
class Win32_UserProfile
{
string SID;
string LocalPath;
boolean Loaded;
uint32 REF refCount;
boolean Special;
boolean RoamingConfigured;
string RoamingPath;
boolean RoamingPreference;
uint32 Status;
DATETIME LastUseTime;
DATETIME LastDownloadTime;
DATETIME LastUploadTime;
};
Members
The Win32_UserProfile class has these types of members:
Methods
The Win32_UserProfile class has these methods.
| Method | Description |
|---|---|
| ChangeOwner |
Changes the owner of a user profile to a different user. |
Properties
The Win32_UserProfile class has these properties.
- LastDownloadTime
-
- Data type: DATETIME
- Access type: Read-only
Specifies the last time that a roaming profile was downloaded from a server.
- LastUploadTime
-
- Data type: DATETIME
- Access type: Read-only
Specifies the last time that a roaming profile was uploaded to server.
- LastUseTime
-
- Data type: DATETIME
- Access type: Read-only
Specifies the last time that this profile was used.
- Loaded
-
- Data type: boolean
- Access type: Read-only
Indicates whether this profile is loaded.
- LocalPath
-
- Data type: string
- Access type: Read-only
Contains the path of the user profile on the local computer.
- refCount
-
- Data type: uint32
- Access type: Read-only
Specifies the reference count of the profile. If the profile is loaded, the reference count is at least 1. Higher values indicate that more than one application or service has loaded the profile and is using it.
- RoamingConfigured
-
- Data type: boolean
- Access type: Read-only
Indicates whether the user has a roaming profile configured.
Note If a user has a roaming profile configured, it does not mean that this profile is a roaming profile. Other policies and user preferences can prevent the profile from roaming. For more information, see the RoamingPreference and Status properties.
- RoamingPath
-
- Data type: string
- Access type: Read-only
Contains the user's roaming profile path if the RoamingConfigured property is set to true.
- RoamingPreference
-
- Data type: boolean
- Access type: Read-only
Indicates whether the user prefers to use this profile to roam if the RoamingConfigured property is set to true. By default, the RoamingPreference property is set to true and the roaming profile can roam between the local computer and the server. If the user sets this property to false to prevent roaming, the profile works like a local profile.
- SID
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key
Contains the SID of the user who owns this user profile.
- Special
-
- Data type: boolean
- Access type: Read-only
Indicates whether this profile belongs to a special system service.
- Status
-
- Data type: uint32
- Access type: Read-only
Specifies the status of the profile. This parameter may be set one or more of the following values.
Requirements
|
Minimum supported client | Windows Vista with SP1 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Namespace |
\\.\root\CIMV2 |
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 11/19/2012
