When a user logs on, their registry profile at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ contains a State Value Name, a REG_DWORD data type, that is a bit mask whose value indicates the state of the local profile cache.

NOTE: See tip 5346 ยป How do I retrieve a user's ProfileImagePath in batch?

The mask bits and their meaning are:

Hex Mask Description
0001 Profile is mandatory.
0002 Update the locally cached profile.
0004 New local profile.
0008 New central profile.
0010 Update the central profile.
0020 Delete the cached profile.
0040 Upgrade the profile.
0080 Using Guest user profile.
0100 Using Administrator profile.
0200 Default net profile is available and ready.
0400 Slow network link identified.
0800 Temporary profile loaded.