User Profile Namespace in Windows Vista and Windows 7
To address concerns with using the user profile namespace in earlier versions of Windows, the following changes have been implemented for user profiles starting with Windows Vista:
- The root of the user profile namespace has been moved from %SystemDrive% \Documents And Settings to %SystemDrive%\Users. This means, for example, that the user profile folder for user Karen Joe (karen@live.com) is now found at %SystemDrive%\Users\karen instead of %SystemDrive%\Documents And Settings \karen.
- The "My" prefix has been dropped from folders storing user-managed data files to simplify their appearance. For example, documents are now stored in a folder named Documents instead of in a folder named My Documents. Note that in Windows Vista, these folders are displayed in the same way (that is, without the "My" prefix) in both the Windows Explorer shell and at the command prompt. Beginning with Windows 7, however, these folders display a "My" prefix when viewed within Windows Explorer but not when viewed at the command prompt. In other words, the Windows Explorer shell in Windows 7 adds a "My" prefix to the displayed representation of these folders, but the actual folders in the underlying file system do not include this prefix in their names.
- The Windows Vista and later versions of My Music, My Pictures, and My Videos are no longer subfolders of My Documents. Instead, these and similar user-managed data folders are now stored under the root profile folder and are peers of the My Documents folder. The user profile namespace has been flattened in this way to help provide better separation between user-managed data and application settings and to simplify how Folder Redirection works.
- New subfolders have been added under the root profile folder to help to better
organize user-managed data and settings and to help prevent "profile pollution,"
when users or applications save data files in the root profile folder or in subfolders not
intended for that particular purpose. Specifically, the following new profile subfolders
have been added beginning with Windows Vista:
- Contacts The default location for storing the user's contacts
- Downloads The default location for saving all downloaded content
- Searches The default location for storing saved searches
- Links The default location for storing Windows Explorer favorites
- Saved Games The default location for storing saved games
- The system of using CSIDL values used in Windows XP to identify special folders, such
as My Documents, used by applications has been replaced. These special folders are
now referred to as known folders, and they are identified to the operating system by
a set of globally unique identifier (GUID) values called Known Folder IDs. The Known
Folder system provides a number of advantages over the older CSIDL system. For example,
Independent Software Vendors (ISVs) can extend the set of Known Folder IDs to
define additional application-specific known folders, assign IDs to them, and register
them with the system. In contrast, the system of CSIDL values cannot be extended. A
known folder added by an ISV can also add custom properties that allow the folder
to expose its purpose and intended use to the user. All the known folders on a system
can also be enumerated using the GetFolderIds method of the IKnownFolderManager
interface. Finally, 13 known folders can be redirected to new locations by using Folder
Redirection. By comparison, under the CSIDL system, only the My Documents folder
could be redirected. A new, hidden folder named AppData located under the profile
root is used as a central location for storing all per-user application settings and binaries.
In addition, the following three subfolders under AppData are better at separating
state information and helping applications roam:
- Local This folder stores computer-specific application data and settings that cannot (or should not) roam, as well as user-managed data or settings too large to support roaming effectively. The AppData\Local folder within a Windows Vista or later user profile is essentially the same as the Local Settings\Application Data folder under the root folder of a Windows XP user profile.
- Roaming This folder stores user-specific application data and settings that should (or must) roam along with the user when RUP is implemented. The AppData \Roaming folder within a Windows Vista or later user profile is essentially the same as the Application Data folder under the root folder of a Windows XP user profile.
- LocalLow This folder allows low-integrity processes to have Write access to it. Low-integrity processes perform tasks that could compromise the operating system. For example, applications started by the Protected Mode of Internet Explorer must use this profile folder for storing application data and settings. The LocalLow profile folder has no counterpart in Windows XP.
- The All Users profile has been renamed Public to better describe its purpose. (Anything stored in this folder is publicly available to all users on the computer.) The contents of certain subfolders within this profile, such as Desktop, merge with the user's own profile when the user logs on to the computer, just as the All Users profile does in Windows XP. As with All Users in Windows XP, the Public profile in Windows Vista and later versions has no per-user registry hive because the operating system never loads the profile. In addition, application data stored in the All Users profile in Windows XP is now stored in the hidden %SystemDrive%\ProgramData folder in Windows Vista.
- Users now can share individual files easily and securely from within their user profile folders and subfolders.
- The Default User profile has been renamed Default. As with Default User in Windows XP, the Default profile in Windows Vista and later versions is never loaded and is copied only when creating new profiles. The Default profile thus acts as a template for creating each user's profile when he logs on for the first time.
Note Only the local default user folder has changed from Default User to Default. The default roaming user profile located on the NETLOGON share on domain controllers is now called Default User.v2.
Table below compares the user profile namespace for Windows Vista and later versions with that of Windows XP. The folders in the first column are subfolders (or special files) of the root profile folder %SystemDrive%\Users\user_name; the folders in the second column are rooted at %SystemDrive%\Documents And Settings\user_name. Many of these folders are hidden.
Table below: The User Profile Namespace in Windows Vista and Later Versions Compared with Windows XP
Windows Vista AND later VERSIONS | Windows XP |
N/A | Local Settings |
AppData | N/A |
AppData\Local | Local Settings\Application Data |
AppData\Local\Microsoft\Windows\History | Local Settings\History |
AppData\Local\Temp | Local Settings\Temp |
AppData\Local\Microsoft\Windows\Temporary Internet Files | Local Settings\Temporary Internet Files |
AppData\LocalLow | N/A |
AppData\Roaming | Application Data |
AppData\Roaming\Microsoft \Windows\Cookies | Cookies |
AppData\Roaming\Microsoft\Windows\Network Shortcuts | NetHood |
AppData\Roaming\Microsoft\Windows\Printer Shortcuts | PrintHood |
AppData\Roaming\Microsoft\Windows\Recent | Recent |
AppData\Roaming\Microsoft\Windows\Send To | SendTo |
AppData\Roaming\Microsoft\Windows\Start Menu | Start Menu |
AppData\Roaming\Microsoft\Windows\Templates | Templates |
Contacts | N/A |
Desktop | Desktop |
Documents | My Documents |
Downloads | N/A |
Favorites | Favorites |
Links | N/A |
Music | My Documents\My Music |
Pictures | My Documents\My Pictures |
Searches | N/A |
Saved Games | N/A |
Videos | My Documents\My Videos |
Note Windows Vista and later versions allow users to use the Encrypting File System (EFS) to encrypt all files and folders within their user profiles except for Ntuser.dat and the AppData\Roaming\Microsoft\Credentials subfolder, which is essentially the same behavior as user profile encryption in Windows XP. To encrypt files that EFS cannot encrypt, use Windows BitLocker.
In this tutorial:
- Managing Users and User Data
- Understanding User Profiles in Windows 7
- Types of User Profiles
- User Profile Namespace
- User Profile Namespace in Windows XP
- User Profile Namespace in Windows Vista and Windows 7
- Application Compatibility Issue
- Disabling Known Folders
- Windows 7 Understanding Libraries
- Working with Libraries
- Including Indexed Folders in a Library
- Adding Nonindexed Remote Locations to a Library
- Creating Additional Libraries
- Managing Libraries
- Implementing Corporate Roaming
- Understanding Roaming User Profiles and Folder Redirection
- Understanding Roaming User Profiles in Earlier Versions of Windows
- Understanding Folder Redirection in Earlier Versions of Windows
- Enhancements to Roaming User Profiles and Folder Redirection Previously Introduced in Windows Vista
- Additional Enhancements to Roaming User Profiles and Folder Redirection Introduced in Windows 7
- Improved First Logon Performance With Folder Redirection
- Implementing Folder Redirection
- Configuring the Redirection Method
- Configuring Target Folder Location
- Configuring Redirection Options
- Configuring Policy Removal Options
- Folder Redirection and Sync Center
- Considerations for Mixed Environments
- Additional Group Policy Settings for Folder Redirection
- Troubleshooting Folder Redirection
- Implementing Roaming User Profiles
- Creating a Default Network Profile
- Configuring a User Account to Use a Roaming Profile
- Implementing Mandatory Profiles
- Implementing Super-Mandatory Profiles
- Managing User Profiles Using Group Policy
- Working with Offline Files
- Enhancements to Offline Files Introduced Previously in Windows Vista
- Additional Enhancements to Offline Files Introduced in Windows 7
- Understanding Offline File Sync
- Modes of Operation in Offline Files
- Managing Offline Files
- Managing Offline Files Using Windows Explorer
- Managing Offline Files Using the Offline Files Control Panel
- Managing Offline Files Using Sync Center
- Configuring Offline Files on the Server
- Managing Offline Files Using Group Policy
- Offline Files Policy Settings Introduced in Windows Vista
- Additional Offline Files Policy Settings for Windows 7