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.

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

ValueMeaning
Temporary
0

Specifies that the profile is a temporary profile. The profile will be deleted after the user logs off.

Roaming
1

Specifies that the profile is now set to roaming. If this bit is not set, the profile is set to local.

Mandatory
2

Specifies that the profile is a mandatory profile.

Corrupted
3

Specifies that the profile is a corrupted profile and not in use. The user or administrator must fix the corruption to use this profile.

 

Requirements

Minimum supported client

Windows Vista with SP1

Minimum supported server

Windows Server 2008

Namespace

\\.\root\CIMV2

MOF

UserProfileWmiProvider.mof

DLL

Profprov.dll

 

 

Show:
© 2014 Microsoft. All rights reserved.