Windows 7 Profile Default Image Files Location - windows

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:
Need the location so that I can add/edit/remove images via a program (E.g. Different icons for different employee types.)

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

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.

You can find it here:
All - Default Pictures
C:\ProgramData\Microsoft\User Account Pictures\Default Pictures
Standard - Administrator
C:\ProgramData\Microsoft\User Account Pictures\user.bmp
Guest
C:\ProgramData\Microsoft\User Account Pictures\guest.bmp

Related

Why access using IE browser and access using Windows explorer of INetCache folder shows different folder structure on WIN8.1-IE11?

When I access C:\Users\shan\AppData\Local\Microsoft\Windows\INetCache using Windows explorer, it shows following folder structure:
But when I access the same using IE11 browser, Tools->Internet Options->General->Browsing history-> Settings(click)->View files(click), I get different folder structure as follows:
Why folder structure differing in above 2 cases, even though both are referring to the same physical location on Windows 8.1, IE11 Browser ?
I need to write a script which clears this INetCache folder contents(Cache). But not able to get the exact content of this folder. Because it always refers to Folder which contains Low(folder), Virtualized(folder) and counters.dat(file). In my script I want to refer the folder which contains favicon.ico files.
The same behavior is observed on IE10-win7 and IE11-win7 as well, while referencing Temporary Internet Files.
There is an internal api in the IE libraries that controls clearing of the 'Internet Cache'....
there are two... one for 'normal' integrity processes (64 bit tab processes and ActiveX (flash)), another for low integrity processes (32 bit tab processes and ActiveX (flash))
Use GPO (Start>Run>gpedit.msc) to configure user profiles on a domain network to empty the TIF(s) on exit from the browser.
For computers on a public access network (library workstations), you can default to inPrivate Mode from a desktop or Taskbar link
iexplore.exe -private
which does not retain any personally identifiable data of the user in history, or cookies or flash cookies.....
questions about GPO management of IE should be posted to the TechNet support forum for IE.
https://social.technet.microsoft.com/Forums/ie/en-US/home?forum=ieitprocurrentver

Windows 7 - Can't update my program's files in C:\Program Files

I have an addin program that works with MS Word (version 2007). It is located in the C:\Program Files location. I installed Windows 7 and then went to make a routine change to my files in this location and it would only bring up a read only file. How can I grant myself permission to write to my own program? I cannot change this location or use any other workaround. I have this product out to 25 different companies and I can't change the programming to work from any other location. Thanks
You could also embed a manifest in your EXE that makes your program require adminrights on Windows 7 / Vista.
On Windows Vista, UAC means that users run without admin rights and don't have write access to the program files directories.
The correct solution is to write to a folder for which standard users do have write permissions.
The solution you are looking for is to make your app's folder within program files writeable to all users. You can do this by adding a DACL when installing. It is extremely bad practice to allow standard users to write inside the program files directory and I urge you instead to re-code your app so that it does not need to write there.
Assuming you're doing this as part of modifying the config (and not when your application is running for regular users)...
Your user account probably doesn't have the correct permissions to write/modify the file. Assuming your account is an administrator account, right-click the file, select "Properties". Click the "Security" tab. Click edit and give your user account Full Control.
If you can't do this, it's probably because the ownership of the file doesn't allow you. If this is the case, click on "Advanced", go to the "Owner" tab, and click "Edit".
However, if it needs these permissions when it's running, you should instead be using the %AppData% folder.

WIndows file access control

I have a file on a Windows 2003 NTFS file system. It is called C:\MyFolder\MyFile.txt. First grant a user read access to the file. Then I remove the user's read access to the parent folder.
Now the user cannot use Windows Explorer to browse the folder and double click to open in Notepad. The user can go to Start (menu) Run and enter "C:\MyFolder\MyFile.txt" and the file will load in Notepad.
Can someone point me to some MSDN documentation that explains why this is? I've tried all the google and bing queries I can think of.
thanks much
See the 'Traverse Folder' permission in the table on this page:
http://technet.microsoft.com/en-us/library/cc787794(WS.10).aspx
It sounds more like a TechNet article than an MSDN one to me.
If you think about a directory/folder as not a file cabinet folder but rather a index card stuck to the front of the cabinet to say what is in the cabinet. This is effectively what a folder is on the file system (a index to where the files are.)
Because you have denied the user rights to what is in the folder you have denied them access to the index card. However, if they know the precise file they want then they can still access to the file which they have permissions for as this doesn't require a check on the index card.
Behind the scenes it is obviously a little more complicated but that is the basic view. I saw this technique used quite a bit on the *nix environments when I was at Uni to hide previous years assignments from the current batch of students. However, because they hadn't removed permissions from some files the tutors could still direct them to specific examples from previous years.

Where Does Windows Vista Store The Profile Image?

I was just wondering if anyone knows where vista stores the profile images for each user account. I know in XP it is stored in C:\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures, but when I browse the equivalent path in vista, all I have is a user.bmp and a guest.bmp. I understand that these are the defaults IF I don't allow any custom user profile images, but that is not the route that I want to follow. I am assuming that vista is the same as XP where the profile image names are .bmp, but when I do a search, I cannot find any images anywhere. Has vista moved the profile image storage into the registry?
I also know that there is a temp directory, C:\Users\<username>\AppData\Local\Temp, that has the files that I am looking for, but everything I modify them, when I load the profile, they are overwritten. I assume that this is happenning because it is a temp dir. This leads me to believe that there is a master directory with all these images.
Thanks,
Johnathan
This useful post has a vb script that modifies the SAM with the help of SysInternals psexec to set the User Account Picture (aka UserTile).
I wanted to do the same, but I found out, that it is not possible under Vista to change the User Picture programmatically.
I have found the answer here:
Change user picture?

Copying files from XP to Vista in a bach file or command prompt

I am trying to setup a batch file to copy files from my XP laptop
to my Vista desktop on a workgroup network.
But I am getting a Access denied error. Same in a command prompt.
I can copy the files fine using Windows Explorer.
Any ideas please?
Malcolm
I'm assuming you've setup a share on Vista that you are accessing in XP.
In Vista, make the share accessible to everyone anonymously:
Right-click the folder you're sharing, and click Properties.
Click the Sharing tab, then Advanced Sharing
Click Permissions.
Click Add.
Under "Enter the object names to select", type "Everyone" (without quotes).
Click OK.
Select Everyone in the "Group or user names" box.
Under "Permissions for Everyone", check the Allow box for Full Control.
Click OK three times.
You should probably map that share as a network drive on your XP computer.
That should work.
EDIT: I have tested this with the exact same conditions you described, and it worked.

Resources