» Archive for the ‘Windows Vista’ Category
Registry & Windows VistaMonday, October 23rd, 2006
GUIDS of a Control Panel applets (Vista)
Today I’ll show how to create a special shortcut to the Control Panel applets, of course everything concerning the Windows Vista. You can also use that policy in the Windows XP, but not every object (applet), which I described here exists in XP (GUIDS are the same in both systems).
GUID - Globally Unique Identifier is a 128bit (16bytes) number that specify an object (ex. shell folder) in the Windows systems.
Lets take a look at the list below.
GUIDS of Control Panel Applets
{00f2886f-cd64-4fc9-8ec5-30ef6cdbe8c3}
Scanner and Camera Control Panel
{381b4222-f694-41f0-9685-ff5bb260df2e}
PreferredPlan
{0DF44EAA-FF21-4412-828E-260A8728E7F1}
Taskbar and Start Menu
{17cd9488-1228-4b2f-88ce-4298e93e0966}
Set User Defaults
{335a31dd-f04b-4d76-a925-d6b47cf360df}
Backup and Restore Center
{37efd44d-ef8d-41b1-940d-96973a50e9e0}
Windows Sidebar Properties
{3e7efb4c-faf1-453d-89eb-56026875ef90}
Get Programs Online
{4D1209BD-36E2-4e2f-840D-6C7FB879DD9E}
Windows Ultimate Extras
{5ea4f148-308c-46d7-98a9-49041b1dd468}
Mobility Center
{6DFD7C5C-2451-11d3-A299-00C04F8EF6AF}
Folder Options
{78CB147A-98EA-4AA6-B0DF-C8681F69341C}
CardSpace
{7A979262-40CE-46ff-AEEE-7884AC3B6136}
Add New Hardware
{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}
Network and Sharing Center
{9C60DE1E-E5FC-40f4-A487-460851A8D915}
AutoPlay
{A304259D-52B8-4526-8B1A-A1D6CECC8243}
iSCSI Initiator
{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}
System
{D20EA4E1-3957-11d2-A40B-0C5020524152}
Fonts
{D555645E-D4F8-4c29-A827-D93C859C4F2A}
Ease of Access
{D9EF8727-CAC2-4e60-809E-86F80A666C91}
Secure Startup
{E95A4861-D57A-4be1-AD0F-35267E261739}
Windows SideShow
{FCFEECAE-EE1B-4849-AE50-685DCF7717EC}
Problem Reports and Solutions
Each applet is represented by one unique number (GUID). Now, I’ll show you how to create a special shortcut with using that numbers.
We will put our shortcut on a Desktop. Run a regedit, and open following key (pic1):
HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace
Inside this key create new key with a name {ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} (pic2)
Now refresh the Desktop, you will see a new icon - Personalization
If you want to remove new shortcut from the dekstop, just delete
{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} key.
You can also add the shortcuts to the others special places (HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\..):
- Control Panel - ControPanel\NameSpace
- Desktop - Desktop\NameSpace
- MyComputer - MyComputer\NameSpace
I only presented the GUIDs of the Control Panel applets. In the near future, I will show you the numbers of the others shell objects.
Registry & Windows VistaSunday, October 15th, 2006
Vista (User) Shell Folders - Registry (part 2)
Now let’s see current user profile paths.
HKEY_CURRENT_USER\…\Shell Folders
- Windows XP -
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders
AppData
C:\Documents and Settings\AN\Application Data
Cookies
C:\Documents and Settings\AN\Cookies
Desktop
C:\Documents and Settings\AN\Desktop
Favorites
C:\Documents and Settings\AN\Favorites
NetHood
C:\Documents and Settings\AN\NetHood
Personal
C:\Documents and Settings\AN\My Documents
PrintHood
C:\Documents and Settings\AN\PrintHood
Recent
C:\Documents and Settings\AN\Recent
SendTo
C:\Documents and Settings\AN\SendTo
Start Menu
C:\Documents and Settings\AN\Start Menu
Templates
C:\Documents and Settings\AN\Templates
Programs
C:\Documents and Settings\AN\Start Menu\Programs
Startup
C:\Documents and Settings\AN\Start Menu\Programs\Startup
Local Settings
C:\Documents and Settings\AN\Local Settings
Local AppData
C:\Documents and Settings\AN\Local Settings\Application Data
Cache
C:\Documents and Settings\AN\Local Settings\Temporary Internet Files
History
C:\Documents and Settings\AN\Local Settings\History
My Pictures
C:\Documents and Settings\AN\My Documents\My Pictures
My Music
C:\Documents and Settings\AN\My Documents\My Music
CD Burning
C:\Documents and Settings\AN\Local Settings\Application Data\Microsoft\CD Burning
My Video
empty
Administrative Tools
C:\Documents and Settings\AN\Start Menu\Programs\Administrative Tools
AN - AccountName
- Windows Vista -
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders
AppData
C:\Users\AN\AppData\Roaming
Cookies
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Cookies
Desktop
C:\Users\AN\Desktop
Favorites
C:\Users\AN\Favorites
NetHood
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Network Shortcuts
Personal
C:\Users\AN\Documents
PrintHood
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
Recent
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Recent
SendTo
C:\Users\AN\AppData\Roaming\Microsoft\Windows\SendTo
Start Menu
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu
Templates
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Templates
Programs
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
Startup
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Local Settings
none
Local AppData
C:\Users\AN\AppData\Local
Cache
C:\Users\AN\AppData\Local\Microsoft\Windows\Temporary Internet Files
History
C:\Users\AN\AppData\Local\Microsoft\Windows\History
My Pictures
C:\Users\AN\Pictures
My Music
C:\Users\AN\Music
CD Burning
C:\Users\AN\AppData\Local\Microsoft\Windows\Burn\Burn
My Video
C:\Users\AN\Videos
Administrative Tools
C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
AN - AccountName
HKEY_CURRENT_USER\…\User Shell Folders
%USERPROFILE% - the environment variable - C:\Documents And Settings\AN
- Windows XP -
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders
AppData
%USERPROFILE%\Application Data
Desktop
%USERPROFILE%\Desktop
Favorites
%USERPROFILE%\Favorites
NetHood
%USERPROFILE%\NetHood
Personal
%USERPROFILE%\My Documents
PrintHood
%USERPROFILE%\PrintHood
Programs
%USERPROFILE%\Start Menu\Programs
SendTo
%USERPROFILE%\SendTo
Start Menu
%USERPROFILE%\Start Menu
Startup
%USERPROFILE%\Start Menu\Programs\Startup
Recent
none
Templates
%USERPROFILE%\Templates
My Pictures
%USERPROFILE%\My Documents\My Pictures
My Music
none
My Video
none
Local Settings
%USERPROFILE%\Local Settings
Local AppData
%USERPROFILE%\Local Settings\Application Data
Cache
%USERPROFILE%\Local Settings\Temporary Internet Files
Cookies
%USERPROFILE%\Cookies
History
%USERPROFILE%\Local Settings\History
%USERPROFILE% - the environment variable - C:\Users\AN
- Windows Vista -
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders
AppData
%USERPROFILE%\AppData\Roaming
Desktop
%USERPROFILE%\Desktop
Favorites
%USERPROFILE%\Favorites
NetHood
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Network Shortcuts
Personal
%USERPROFILE%\Documents
PrintHood
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
Programs
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
SendTo
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo
Start Menu
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu
Startup
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Recent
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent
Templates
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Templates
My Pictures
%USERPROFILE%\Pictures
My Music
%USERPROFILE%\Music
My Video
%USERPROFILE%\Videos
Local Settings
none
Local AppData
%USERPROFILE%\AppData\Local
Cache
%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files
Cookies
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Cookies
History
%USERPROFILE%\AppData\Local\Microsoft\Windows\History
Both, Windows Vista and Xp stores the current user profile in one directory (XP - C:\Documents and Settings\AccountName, Vista - C:\Users\AccountName), but in Vista the major role plays C:\Users\AccountName\AppData folder with \Roaming and \Local subfolders. The C:\User\AccountName\AppData is equivalent of the C:\Documents and Settings\AccountName\Application Data
We can also find the difference deep inside the profile folders nodes, but the main directories in the Windows Vista are:
- C:\Users,
- C:\Users\Public,
- C:\Users\AppData (\Roaming, and \Local),
- C:\ProgramData\Microsoft\Windows.
Registry & Windows VistaSunday, October 15th, 2006
Vista (User) Shell Folders - Registry (part 1)
Yesterday I showed you the structure of windows vista profiles folders. As you know, a lot of changes ensued in new OS. The folder names was simplified, some places doesn’t exist anymore, and an old names referring to a new objects. Today we will compare a registry values, which contains a paths to suitable profile folders.
User Shell Folders - This subkey contains the path to Windows Explorer folders for current users and for all users. The entries that appear in user User Shell Folders take precedence over those in Shell Folders.
Shell Folders - The subkey remains in the registry to support programs designed for Windows NT 4.0 or earlier.
HKEY_LOCAL_MACHINE\…\Shell Folders
- Windows XP -
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders
Common AppData
C:\Documents and Settings\All Users\Application Data
Common Programs
C:\Documents and Settings\All Users\Start Menu\Programs
Common Documents
C:\Documents and Settings\All Users\Documents
Common Desktop
C:\Documents and Settings\All Users\Desktop
Common Start Menu
C:\Documents and Settings\All Users\Start Menu
CommonPictures
C:\Documents and Settings\All Users\Documents\My Pictures
CommonMusic
C:\Documents and Settings\All Users\Documents\My Music
CommonVideo
C:\Documents and Settings\All Users\Documents\My Videos
Common Favorites
C:\Documents and Settings\All Users\Favorites
Common Startup
C:\Documents and Settings\All Users\Start Menu\Programs\Startup
Common Templates
C:\Documents and Settings\All Users\Templates
Common Administrative Tools
C:\Documents and Settings\All Users\Start Menu\Programs\Administrative Tools
Personal
C:\Documents and Settings\AN\My Documents
- Windows Vista -
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders
Common AppData
C:\ProgramData\
Common Programs
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
Common Documents
C:\Users\Public\Documents
Common Desktop
C:\Users\Public\Desktop
Common Start Menu
C:\ProgramData\Microsoft\Windows\Start Menu
CommonPictures
C:\Users\Public\Pictures
CommonMusic
C:\Users\Public\Music
CommonVideo
C:\Users\Public\Videos
Common Favorites
none
Common Startup
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
Common Templates
C:\ProgramData\Microsoft\Windows\Templates
Common Administrative Tools
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
Personal
none
HKEY_LOCAL_MACHINE\…\User Shell Folders
%ALLUSERSPROFILE% - the environment variable - C:\Documents and Settings\All Users
- Windows XP -
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders
Common Desktop
%ALLUSERSPROFILE%\Desktop
Common Start Menu
%ALLUSERSPROFILE%\Start Menu
Common Programs
%ALLUSERSPROFILE%\Start Menu\Programs
Common Startup
%ALLUSERSPROFILE%\Start Menu\Programs\Startup
Common AppData
%ALLUSERSPROFILE%\Application Data
Common Templates
%ALLUSERSPROFILE%\Templates
Common Favorites
%ALLUSERSPROFILE%\Favorites
Common Documents
%ALLUSERSPROFILE%\Documents
Common Music
none
Common Pictures
none
Common Video
none
%PUBLIC% - the environment variable - C:\Users\Public
%ProgramData% - the environment variable - C:\ProgramData
- Windows Vista -
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders
Common Desktop
%PUBLIC%\Desktop
Common Start Menu
%ProgramData%\Microsoft\Windows\Start Menu
Common Programs
%ProgramData%\Microsoft\Windows\Start Menu\Programs
Common Startup
%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup
Common AppData
%ProgramData%
Common Templates
%ProgramData%\Microsoft\Windows\Templates
Common Favorites
none
Common Documents
%PUBLIC%\Documents
Common Music
%PUBLIC%\Music
Common Pictures
%PUBLIC%\Pictures
Common Video
%PUBLIC%\Videos
Analyzing those four tables we can see the difference between profiles folders. Windows Xp have only one folder to store
the all users profile files - C:\Documents And Folders\All Users , however Vista have two folders - C:\Users\Public and C:\ProgramData\Microsoft (the rest of folders in C:\ProgramData are links (JUNCTIONS) to C:\Users\Public and C:\ProgramData\Microsoft).
End of Part 1
Windows VistaSaturday, October 14th, 2006
Windows Vista Profiles folders
Two days ago I finished downloading the Windows Vista (RC1) Build 5600 x64 version. The installation completed without any problems, errors and BSODs. I’m very happy of that, because I read on a few forums that people had a problems during the installation, so I was wonder if I will have any, but everything works fine.
The last few days I spent searching for a difference between XP and Vista especially in a registry and a directory structure, preparing for changing the location of a profiles and a program files (and Program Files (x86)) folders. Those tricks which I used in XP doesn’t works, something will have to change.
The table below shows the first node of profile folders in Windows XP.
Documents and Settings
<DIR>
All Users
<DIR>
Default User
<DIR>
AN
<DIR>
LocalService
<DIR>
NetworkService
AN - AccountName
Documents and Settings\AN
<DIR>
Start Menu
<DIR>
Application Data
<DIR>
Cookies
<DIR>
Desktop
<DIR>
Favorites
<DIR>
SendTo
<DIR>
Local Settings
<DIR>
My Documents
<DIR>
NetHood
<DIR>
Recent
<DIR>
PrintHood
<DIR>
Templates
<FILE>
NTUSER.DAT
<FILE>
NTUSER.DAT.LOG
<FILE>
ntuser.ini
AN - AccountName
In the Windows Vista the structure of a profile folders is little different. All profiles are stored in C:\Users folder, the Documents And Settings still exists but as a link (JUNCTION) to the C:\Users folder. For more information about junction on NTFS read this
Root
<JUNCTION>
Documents and Settings [C:\Users]
<DIR>
ProgramData
<DIR>
Users
In the USERS folder we can find the names that are similar to those in the Documents And Settings in WinXP. The All Users folder is a symbolic link to C:\ProgramData, as you will see later in C:\ProgramData are links (JUNCTIONS) to C:\Users\Public (that folder contain informations that concerns all of the users).
Users
<SYMLINKD>
All Users [C:\ProgramData]
<DIR>
Default
<JUNCTION>
Default User [C:\Users\Default]
<DIR>
AN
<DIR>
Public
AN - AccountName
Let’s take a look at account folder. The main difference is that the Appclication Data folder no longer exist it is only a link (Junction) to a new location C:\Users\AN\AppData\Roaming
I think that Microsoft decide to use short names without space for all the system folders (Local instead of Local Settings, Public instead of All Users, Documents instead of My Documents etc.)
USERS\AN
<DIR>
AppData
<JUNCTION>
Application Data [C:\Users\AN\AppData\Roaming]
<DIR>
Contacts
<JUNCTION>
Cookies [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Cookies]
<DIR>
Desktop
<DIR>
Downloads
<DIR>
Favorites
<DIR>
Links
<JUNCTION>
Local Settings [C:\Users\AN\AppData\Local]
<DIR>
Music
<JUNCTION>
My Documents [C:\Users\AN\Documents]
<JUNCTION>
NetHood [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Network Shortcuts]
<DIR>
Videos
<JUNCTION>
Templates [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Templates]
<JUNCTION>
Start Menu [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu]
<JUNCTION>
SendTo [C:\Users\AN\AppData\Roaming\Microsoft\Windows\SendTo]
<DIR>
Searches
<DIR>
Saved Games
<JUNCTION>
Recent [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Recent]
<DIR>
Pictures
<JUNCTION>
PrintHood [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Printer Shortcuts]
<FILE>
NTUSER.DAT
<FILE>
NTUSER.DAT.LOG
<FILE>
ntuser.ini
AN - AccountName
The ProgramData folder contains links to the C:\Users\Public, the Application Data for All Users seems to be a ProgramData folder, All Users and All Users\Application Data folders points to ProgramData.
ProgramData
<JUNCTION>
Application Data [C:\ProgramData]
<JUNCTION>
Desktop [C:\Users\Public\Desktop]
<JUNCTION>
Documents [C:\Users\Public\Documents]
<JUNCTION>
Favorites [C:\Users\Public\Favorites]
<DIR>
Microsoft
<JUNCTION>
Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu]
<JUNCTION>
Templates [C:\ProgramData\Microsoft\Windows\Templates]
There’s a lots of changes in the profile folders structure. If I want to change the location of all the profiles folders I should reconstruct the whole structure on a different partition. It’s not that simple as was in XP, copying files is not enough. There will be a lot of work to do, but I take a challenge…
GUIDS of a Control Panel applets (Vista)
Today I’ll show how to create a special shortcut to the Control Panel applets, of course everything concerning the Windows Vista. You can also use that policy in the Windows XP, but not every object (applet), which I described here exists in XP (GUIDS are the same in both systems).
GUID - Globally Unique Identifier is a 128bit (16bytes) number that specify an object (ex. shell folder) in the Windows systems.
Lets take a look at the list below.
| GUIDS of Control Panel Applets | |
| {00f2886f-cd64-4fc9-8ec5-30ef6cdbe8c3} | Scanner and Camera Control Panel |
| {381b4222-f694-41f0-9685-ff5bb260df2e} | PreferredPlan |
| {0DF44EAA-FF21-4412-828E-260A8728E7F1} | Taskbar and Start Menu |
| {17cd9488-1228-4b2f-88ce-4298e93e0966} | Set User Defaults |
| {335a31dd-f04b-4d76-a925-d6b47cf360df} | Backup and Restore Center |
| {37efd44d-ef8d-41b1-940d-96973a50e9e0} | Windows Sidebar Properties |
| {3e7efb4c-faf1-453d-89eb-56026875ef90} | Get Programs Online |
| {4D1209BD-36E2-4e2f-840D-6C7FB879DD9E} | Windows Ultimate Extras |
| {5ea4f148-308c-46d7-98a9-49041b1dd468} | Mobility Center |
| {6DFD7C5C-2451-11d3-A299-00C04F8EF6AF} | Folder Options |
| {78CB147A-98EA-4AA6-B0DF-C8681F69341C} | CardSpace |
| {7A979262-40CE-46ff-AEEE-7884AC3B6136} | Add New Hardware |
| {8E908FC9-BECC-40f6-915B-F4CA0E70D03D} | Network and Sharing Center |
| {9C60DE1E-E5FC-40f4-A487-460851A8D915} | AutoPlay |
| {A304259D-52B8-4526-8B1A-A1D6CECC8243} | iSCSI Initiator |
| {BB06C0E4-D293-4f75-8A90-CB05B6477EEE} | System |
| {D20EA4E1-3957-11d2-A40B-0C5020524152} | Fonts |
| {D555645E-D4F8-4c29-A827-D93C859C4F2A} | Ease of Access |
| {D9EF8727-CAC2-4e60-809E-86F80A666C91} | Secure Startup |
| {E95A4861-D57A-4be1-AD0F-35267E261739} | Windows SideShow |
| {FCFEECAE-EE1B-4849-AE50-685DCF7717EC} | Problem Reports and Solutions |
Each applet is represented by one unique number (GUID). Now, I’ll show you how to create a special shortcut with using that numbers.
We will put our shortcut on a Desktop. Run a regedit, and open following key (pic1):
HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace
Inside this key create new key with a name {ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} (pic2)
Now refresh the Desktop, you will see a new icon - Personalization
If you want to remove new shortcut from the dekstop, just delete
{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} key.
You can also add the shortcuts to the others special places (HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\..):
- Control Panel - ControPanel\NameSpace
- Desktop - Desktop\NameSpace
- MyComputer - MyComputer\NameSpace
I only presented the GUIDs of the Control Panel applets. In the near future, I will show you the numbers of the others shell objects.
Vista (User) Shell Folders - Registry (part 2)
Now let’s see current user profile paths.
HKEY_CURRENT_USER\…\Shell Folders
- Windows XP -
| HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders | |
| AppData | C:\Documents and Settings\AN\Application Data |
| Cookies | C:\Documents and Settings\AN\Cookies |
| Desktop | C:\Documents and Settings\AN\Desktop |
| Favorites | C:\Documents and Settings\AN\Favorites |
| NetHood | C:\Documents and Settings\AN\NetHood |
| Personal | C:\Documents and Settings\AN\My Documents |
| PrintHood | C:\Documents and Settings\AN\PrintHood |
| Recent | C:\Documents and Settings\AN\Recent |
| SendTo | C:\Documents and Settings\AN\SendTo |
| Start Menu | C:\Documents and Settings\AN\Start Menu |
| Templates | C:\Documents and Settings\AN\Templates |
| Programs | C:\Documents and Settings\AN\Start Menu\Programs |
| Startup | C:\Documents and Settings\AN\Start Menu\Programs\Startup |
| Local Settings | C:\Documents and Settings\AN\Local Settings |
| Local AppData | C:\Documents and Settings\AN\Local Settings\Application Data |
| Cache | C:\Documents and Settings\AN\Local Settings\Temporary Internet Files |
| History | C:\Documents and Settings\AN\Local Settings\History |
| My Pictures | C:\Documents and Settings\AN\My Documents\My Pictures |
| My Music | C:\Documents and Settings\AN\My Documents\My Music |
| CD Burning | C:\Documents and Settings\AN\Local Settings\Application Data\Microsoft\CD Burning |
| My Video | empty |
| Administrative Tools | C:\Documents and Settings\AN\Start Menu\Programs\Administrative Tools |
AN - AccountName
- Windows Vista -
| HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders | |
| AppData | C:\Users\AN\AppData\Roaming |
| Cookies | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Cookies |
| Desktop | C:\Users\AN\Desktop |
| Favorites | C:\Users\AN\Favorites |
| NetHood | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Network Shortcuts |
| Personal | C:\Users\AN\Documents |
| PrintHood | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Printer Shortcuts |
| Recent | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Recent |
| SendTo | C:\Users\AN\AppData\Roaming\Microsoft\Windows\SendTo |
| Start Menu | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu |
| Templates | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Templates |
| Programs | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu\Programs |
| Startup | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup |
| Local Settings | none |
| Local AppData | C:\Users\AN\AppData\Local |
| Cache | C:\Users\AN\AppData\Local\Microsoft\Windows\Temporary Internet Files |
| History | C:\Users\AN\AppData\Local\Microsoft\Windows\History |
| My Pictures | C:\Users\AN\Pictures |
| My Music | C:\Users\AN\Music |
| CD Burning | C:\Users\AN\AppData\Local\Microsoft\Windows\Burn\Burn |
| My Video | C:\Users\AN\Videos |
| Administrative Tools | C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools |
AN - AccountName
HKEY_CURRENT_USER\…\User Shell Folders
%USERPROFILE% - the environment variable - C:\Documents And Settings\AN
- Windows XP -
| HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders | |
| AppData | %USERPROFILE%\Application Data |
| Desktop | %USERPROFILE%\Desktop |
| Favorites | %USERPROFILE%\Favorites |
| NetHood | %USERPROFILE%\NetHood |
| Personal | %USERPROFILE%\My Documents |
| PrintHood | %USERPROFILE%\PrintHood |
| Programs | %USERPROFILE%\Start Menu\Programs |
| SendTo | %USERPROFILE%\SendTo |
| Start Menu | %USERPROFILE%\Start Menu |
| Startup | %USERPROFILE%\Start Menu\Programs\Startup |
| Recent | none |
| Templates | %USERPROFILE%\Templates |
| My Pictures | %USERPROFILE%\My Documents\My Pictures |
| My Music | none |
| My Video | none |
| Local Settings | %USERPROFILE%\Local Settings |
| Local AppData | %USERPROFILE%\Local Settings\Application Data |
| Cache | %USERPROFILE%\Local Settings\Temporary Internet Files |
| Cookies | %USERPROFILE%\Cookies |
| History | %USERPROFILE%\Local Settings\History |
%USERPROFILE% - the environment variable - C:\Users\AN
- Windows Vista -
| HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders | |
| AppData | %USERPROFILE%\AppData\Roaming |
| Desktop | %USERPROFILE%\Desktop |
| Favorites | %USERPROFILE%\Favorites |
| NetHood | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Network Shortcuts |
| Personal | %USERPROFILE%\Documents |
| PrintHood | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Printer Shortcuts |
| Programs | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs |
| SendTo | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo |
| Start Menu | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu |
| Startup | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup |
| Recent | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent |
| Templates | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Templates |
| My Pictures | %USERPROFILE%\Pictures |
| My Music | %USERPROFILE%\Music |
| My Video | %USERPROFILE%\Videos |
| Local Settings | none |
| Local AppData | %USERPROFILE%\AppData\Local |
| Cache | %USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files |
| Cookies | %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Cookies |
| History | %USERPROFILE%\AppData\Local\Microsoft\Windows\History |
Both, Windows Vista and Xp stores the current user profile in one directory (XP - C:\Documents and Settings\AccountName, Vista - C:\Users\AccountName), but in Vista the major role plays C:\Users\AccountName\AppData folder with \Roaming and \Local subfolders. The C:\User\AccountName\AppData is equivalent of the C:\Documents and Settings\AccountName\Application Data
We can also find the difference deep inside the profile folders nodes, but the main directories in the Windows Vista are:
- C:\Users,
- C:\Users\Public,
- C:\Users\AppData (\Roaming, and \Local),
- C:\ProgramData\Microsoft\Windows.
Vista (User) Shell Folders - Registry (part 1)
Yesterday I showed you the structure of windows vista profiles folders. As you know, a lot of changes ensued in new OS. The folder names was simplified, some places doesn’t exist anymore, and an old names referring to a new objects. Today we will compare a registry values, which contains a paths to suitable profile folders.
User Shell Folders - This subkey contains the path to Windows Explorer folders for current users and for all users. The entries that appear in user User Shell Folders take precedence over those in Shell Folders.
Shell Folders - The subkey remains in the registry to support programs designed for Windows NT 4.0 or earlier.
HKEY_LOCAL_MACHINE\…\Shell Folders
- Windows XP -
| HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders | |
| Common AppData | C:\Documents and Settings\All Users\Application Data |
| Common Programs | C:\Documents and Settings\All Users\Start Menu\Programs |
| Common Documents | C:\Documents and Settings\All Users\Documents |
| Common Desktop | C:\Documents and Settings\All Users\Desktop |
| Common Start Menu | C:\Documents and Settings\All Users\Start Menu |
| CommonPictures | C:\Documents and Settings\All Users\Documents\My Pictures |
| CommonMusic | C:\Documents and Settings\All Users\Documents\My Music |
| CommonVideo | C:\Documents and Settings\All Users\Documents\My Videos |
| Common Favorites | C:\Documents and Settings\All Users\Favorites |
| Common Startup | C:\Documents and Settings\All Users\Start Menu\Programs\Startup |
| Common Templates | C:\Documents and Settings\All Users\Templates |
| Common Administrative Tools | C:\Documents and Settings\All Users\Start Menu\Programs\Administrative Tools |
| Personal | C:\Documents and Settings\AN\My Documents |
- Windows Vista -
| HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders | |
| Common AppData | C:\ProgramData\ |
| Common Programs | C:\ProgramData\Microsoft\Windows\Start Menu\Programs |
| Common Documents | C:\Users\Public\Documents |
| Common Desktop | C:\Users\Public\Desktop |
| Common Start Menu | C:\ProgramData\Microsoft\Windows\Start Menu |
| CommonPictures | C:\Users\Public\Pictures |
| CommonMusic | C:\Users\Public\Music |
| CommonVideo | C:\Users\Public\Videos |
| Common Favorites | none |
| Common Startup | C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup |
| Common Templates | C:\ProgramData\Microsoft\Windows\Templates |
| Common Administrative Tools | C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools |
| Personal | none |
HKEY_LOCAL_MACHINE\…\User Shell Folders
%ALLUSERSPROFILE% - the environment variable - C:\Documents and Settings\All Users
- Windows XP -
| HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders | |
| Common Desktop | %ALLUSERSPROFILE%\Desktop |
| Common Start Menu | %ALLUSERSPROFILE%\Start Menu |
| Common Programs | %ALLUSERSPROFILE%\Start Menu\Programs |
| Common Startup | %ALLUSERSPROFILE%\Start Menu\Programs\Startup |
| Common AppData | %ALLUSERSPROFILE%\Application Data |
| Common Templates | %ALLUSERSPROFILE%\Templates |
| Common Favorites | %ALLUSERSPROFILE%\Favorites |
| Common Documents | %ALLUSERSPROFILE%\Documents |
| Common Music | none |
| Common Pictures | none |
| Common Video | none |
%PUBLIC% - the environment variable - C:\Users\Public
%ProgramData% - the environment variable - C:\ProgramData
- Windows Vista -
| HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders | |
| Common Desktop | %PUBLIC%\Desktop |
| Common Start Menu | %ProgramData%\Microsoft\Windows\Start Menu |
| Common Programs | %ProgramData%\Microsoft\Windows\Start Menu\Programs |
| Common Startup | %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup |
| Common AppData | %ProgramData% |
| Common Templates | %ProgramData%\Microsoft\Windows\Templates |
| Common Favorites | none |
| Common Documents | %PUBLIC%\Documents |
| Common Music | %PUBLIC%\Music |
| Common Pictures | %PUBLIC%\Pictures |
| Common Video | %PUBLIC%\Videos |
Analyzing those four tables we can see the difference between profiles folders. Windows Xp have only one folder to store
the all users profile files - C:\Documents And Folders\All Users , however Vista have two folders - C:\Users\Public and C:\ProgramData\Microsoft (the rest of folders in C:\ProgramData are links (JUNCTIONS) to C:\Users\Public and C:\ProgramData\Microsoft).
End of Part 1
Windows Vista Profiles folders
Two days ago I finished downloading the Windows Vista (RC1) Build 5600 x64 version. The installation completed without any problems, errors and BSODs. I’m very happy of that, because I read on a few forums that people had a problems during the installation, so I was wonder if I will have any, but everything works fine.
The last few days I spent searching for a difference between XP and Vista especially in a registry and a directory structure, preparing for changing the location of a profiles and a program files (and Program Files (x86)) folders. Those tricks which I used in XP doesn’t works, something will have to change.
The table below shows the first node of profile folders in Windows XP.
| Documents and Settings | |
| <DIR> | All Users |
| <DIR> | Default User |
| <DIR> | AN |
| <DIR> | LocalService |
| <DIR> | NetworkService |
AN - AccountName
| Documents and Settings\AN | |
| <DIR> | Start Menu |
| <DIR> | Application Data |
| <DIR> | Cookies |
| <DIR> | Desktop |
| <DIR> | Favorites |
| <DIR> | SendTo |
| <DIR> | Local Settings |
| <DIR> | My Documents |
| <DIR> | NetHood |
| <DIR> | Recent |
| <DIR> | PrintHood |
| <DIR> | Templates |
| <FILE> | NTUSER.DAT |
| <FILE> | NTUSER.DAT.LOG |
| <FILE> | ntuser.ini |
AN - AccountName
In the Windows Vista the structure of a profile folders is little different. All profiles are stored in C:\Users folder, the Documents And Settings still exists but as a link (JUNCTION) to the C:\Users folder. For more information about junction on NTFS read this
| Root | |
| <JUNCTION> | Documents and Settings [C:\Users] |
| <DIR> | ProgramData |
| <DIR> | Users |
In the USERS folder we can find the names that are similar to those in the Documents And Settings in WinXP. The All Users folder is a symbolic link to C:\ProgramData, as you will see later in C:\ProgramData are links (JUNCTIONS) to C:\Users\Public (that folder contain informations that concerns all of the users).
| Users | |
| <SYMLINKD> | All Users [C:\ProgramData] |
| <DIR> | Default |
| <JUNCTION> | Default User [C:\Users\Default] |
| <DIR> | AN |
| <DIR> | Public |
AN - AccountName
Let’s take a look at account folder. The main difference is that the Appclication Data folder no longer exist it is only a link (Junction) to a new location C:\Users\AN\AppData\Roaming
I think that Microsoft decide to use short names without space for all the system folders (Local instead of Local Settings, Public instead of All Users, Documents instead of My Documents etc.)
| USERS\AN | |
| <DIR> | AppData |
| <JUNCTION> | Application Data [C:\Users\AN\AppData\Roaming] |
| <DIR> | Contacts |
| <JUNCTION> | Cookies [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Cookies] |
| <DIR> | Desktop |
| <DIR> | Downloads |
| <DIR> | Favorites |
| <DIR> | Links |
| <JUNCTION> | Local Settings [C:\Users\AN\AppData\Local] |
| <DIR> | Music |
| <JUNCTION> | My Documents [C:\Users\AN\Documents] |
| <JUNCTION> | NetHood [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Network Shortcuts] |
| <DIR> | Videos |
| <JUNCTION> | Templates [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Templates] |
| <JUNCTION> | Start Menu [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Start Menu] |
| <JUNCTION> | SendTo [C:\Users\AN\AppData\Roaming\Microsoft\Windows\SendTo] |
| <DIR> | Searches |
| <DIR> | Saved Games |
| <JUNCTION> | Recent [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Recent] |
| <DIR> | Pictures |
| <JUNCTION> | PrintHood [C:\Users\AN\AppData\Roaming\Microsoft\Windows\Printer Shortcuts] |
| <FILE> | NTUSER.DAT |
| <FILE> | NTUSER.DAT.LOG |
| <FILE> | ntuser.ini |
AN - AccountName
The ProgramData folder contains links to the C:\Users\Public, the Application Data for All Users seems to be a ProgramData folder, All Users and All Users\Application Data folders points to ProgramData.
| ProgramData | |
| <JUNCTION> | Application Data [C:\ProgramData] |
| <JUNCTION> | Desktop [C:\Users\Public\Desktop] |
| <JUNCTION> | Documents [C:\Users\Public\Documents] |
| <JUNCTION> | Favorites [C:\Users\Public\Favorites] |
| <DIR> | Microsoft |
| <JUNCTION> | Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu] |
| <JUNCTION> | Templates [C:\ProgramData\Microsoft\Windows\Templates] |
There’s a lots of changes in the profile folders structure. If I want to change the location of all the profiles folders I should reconstruct the whole structure on a different partition. It’s not that simple as was in XP, copying files is not enough. There will be a lot of work to do, but I take a challenge…

