Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 7 Profile Default Image Files Location

I'm looking for the location to the images that are used next user's accounts when a user logs into a windows 7 system. Can someone point me in the right direction.

The following is a screenshot of the pictures I'm referring to: enter image description here

Need the location so that I can add/edit/remove images via a program (E.g. Different icons for different employee types.)

like image 559
James Oravec Avatar asked Jan 15 '23 03:01

James Oravec


2 Answers

Not really a programming question, but the location appears to be C:\ProgramData\Microsoft\User Account Pictures\Default Pictures.

like image 120
Luke Avatar answered Jan 17 '23 17:01

Luke


I only have access to Windows XP here, but looking in the source code of picturespage.js inside nusrmgr.cpl (the users Control Panel applet), it loads the pictures using this code:

EnumPics(top.window.GetShell().NameSpace(35).Self.Path + "\\Microsoft\\User Account Pictures\\Default Pictures");

Namespace 35 (0x23) is apparently ssfCOMMONAPPDATA.

The 'Common App Data' path is [generally] C:\Documents and Settings\All Users\Application Data\ on XP, and C:\ProgramData\ on Vista and above. That path can retrieved through the Windows API by calling SHGetKnownFolderPath with CSIDL_COMMON_APPDATA.

like image 30
Boann Avatar answered Jan 17 '23 16:01

Boann