Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Win32_UserProfile class

Represents a user profile.

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                        RefCount;
  boolean                       Special;
  boolean                       RoamingConfigured;
  string                        RoamingPath;
  boolean                       RoamingPreference;
  uint32                        Status;
  DATETIME                      LastUseTime;
  DATETIME                      LastDownloadTime;
  DATETIME                      LastUploadTime;
  uint8                         HealthStatus;
  DATETIME                      LastAttempedProfileDownloadTime;
  DATETIME                      LastAttemptedProfileUploadTime;
  DATETIME                      LastBackgroundRegistryUploadTime;
  Win32_FolderRedirectionHealth AppDataRoaming;
  Win32_FolderRedirectionHealth Desktop;
  Win32_FolderRedirectionHealth StartMenu;
  Win32_FolderRedirectionHealth Documents;
  Win32_FolderRedirectionHealth Pictures;
  Win32_FolderRedirectionHealth Music;
  Win32_FolderRedirectionHealth Videos;
  Win32_FolderRedirectionHealth Favorites;
  Win32_FolderRedirectionHealth Contacts;
  Win32_FolderRedirectionHealth Downloads;
  Win32_FolderRedirectionHealth Links;
  Win32_FolderRedirectionHealth Searches;
  Win32_FolderRedirectionHealth SavedGames;
};

Members

The Win32_UserProfile class has these types of members:

Methods

The Win32_UserProfile class has these methods.

MethodDescription
ChangeOwner

Changes a user profile's owner.

 

Properties

The Win32_UserProfile class has these properties.

AppDataRoaming
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected AppData\\Roaming folder.

Contacts
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Contacts folder.

Desktop
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Desktop folder.

Documents
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Documents folder.

Downloads
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Downloads folder.

Favorites
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Favorites folder.

HealthStatus
Data type: uint8
Access type: Read-only
Qualifiers: Values (Healthy, Unhealthy, Caution, Not Applicable) , ValueMap (0, 1, 2, 3)

The health status of the profile.

LastAttempedProfileDownloadTime
Data type: DATETIME
Access type: Read-only

If the profile is a roaming profile, this property is a DATETIME value that indicates the last time an attempt was made to download the profile from the server, even if it was unsuccessful.

If the profile is a local profile, this property is zero.

LastAttemptedProfileUploadTime
Data type: DATETIME
Access type: Read-only

If the profile is a roaming profile, this property is a DATETIME value that indicates the last time an attempt was made to upload the profile to the server, even if it was unsuccessful.

If the profile is a local profile, this property is zero.

LastBackgroundRegistryUploadTime
Data type: DATETIME
Access type: Read-only

If this profile is a roaming profile, this property is a DATETIME value that indicates the last time the profile's registry hive was uploaded to the server.

LastDownloadTime
Data type: DATETIME
Access type: Read-only

If this profile is a roaming profile, this property is a DATETIME value that indicates the last time the profile was downloaded from the server.

LastUploadTime
Data type: DATETIME
Access type: Read-only

If this profile is a roaming profile, this property is a DATETIME value that indicates the last time the profile was uploaded to the server.

LastUseTime
Data type: DATETIME
Access type: Read-only

A DATETIME value that indicates the last time this profile was used.

Links
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Links folder.

Loaded
Data type: boolean
Access type: Read-only

If true, the profile is loaded.

LocalPath
Data type: string
Access type: Read-only

The user profile's path on the local computer.

Music
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Music folder.

Pictures
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Pictures folder.

RefCount
Data type: uint32
Access type: Read-only

The reference count of the profile. The profile's reference count is the number of applications or services that have loaded the profile and are using it. If the profile is loaded, the reference count must be greater than or equal to 1.

RoamingConfigured
Data type: boolean
Access type: Read-only

If true, a roaming profile is configured for the user.

Note  Even if a roaming profile is configured for the user, that doesn't necessarily mean that this user profile is a roaming profile. Policies and user preferences can prevent the profile from roaming. These are indicated in the RoamingPreference and Status properties.

RoamingPath
Data type: string
Access type: Read/write

If the RoamingConfigured property is true, this property contains the user's roaming profile path.

RoamingPreference
Data type: boolean
Access type: Read/write

If true, and if the RoamingConfigured property is true, this user profile can roam between the local computer and the server.

If false, or if the RoamingConfigured property is false, roaming is not allowed, and this user profile acts the same as a local profile.

The default value of this property is true.

SavedGames
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Saved Games folder.

Searches
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Searches folder.

SID
Data type: string
Access type: Read-only
Qualifiers: Key

The security identifier (SID) of the user who owns this user profile.

Special
Data type: boolean
Access type: Read-only

If true, the profile belongs to a special system service.

StartMenu
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Start Menu folder.

Status
Data type: uint32
Access type: Read-only

The status of the user profile. One or more of the following status values.

ValueMeaning
Temporary
0x00000001

The profile is a temporary profile. It will be deleted when the user logs off.

Roaming
0x00000002

If this flag is set, the profile is a roaming profile. If it is not set, the profile is a local profile.

Mandatory
0x00000004

The profile is a mandatory profile. This means that the administrator has set the profile for the user, and the user is not allowed to make changes to it.

Corrupted
0x00000008

The profile is corrupted and is not in use. A user or administrator must repair the corruption in order to use this profile again.

 

Videos
Data type: Win32_FolderRedirectionHealth
Access type: Read-only

A Win32_FolderRedirectionHealth object that represents the health of the user's redirected Videos folder.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Namespace

CIMV2

MOF

UserProfileWmiProvider.mof

 

 

Community Additions

Show:
© 2014 Microsoft