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?
Related
i'm trying to find a way to change the logo (png) contained in appdata\microsoft\signatures for all the users in an active directory.
I want to do that automatically with a batch or powershell script. The only problem is that the users in this AD do not have the permission to read and modify inside the Signatures folder.
Does anyone have an idea of how can i do this?
Thank you all
I did try some script but the problem is the fact that not all the computers in the AD are on.
I have a handheld device on Windows CE 6.0 operation system, I'm trying to add one additional font for web application and when I put it in \windows\fonts folder everything works but when I reboot device font disappears and font folder becomes empty. Please help me to save this font in this folder or help me to find a specific folder where I can put this font and it will work.
Make sure the following things are in check.
Your login account should have write access to the C:\Windows\Fonts
folder, this point you have done.
The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Fonts should be fully modifiable by your account
Make sure the font files are not encrypted. If you need advice how to not encrypted the font please see here
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
I am creating an installer (using Inno Setup) for a windows application. The app has initial documents that I need to store in the users 'My Documents' folder.
Here is the issue, I install it as an Admin, but there may be one or many non admin users on that machine. How can i add that same folder to all the possible current (and future user's) My Documents folder?
Here is what i have tried so far-
1) I could try to pick up all usernames - This however, wont work for future user creations :(
2) I have tried to add it to the systems %allusersprofile%\Documents folder. It does not get reflected to individual My Documents folders.
I believe there should be a way, but have been unable to find a clean solution off the internet till now. Can anyone direct me towards the right path?
Mucho Thanks!
There isn't really a construct for this in Windows. You have a few options:
Put the document in some common place (like %allusersprofile%\Documents, or %program files%\yourCompany\yourApp\documents) and create a start menu link/icon that points to either the folder with the documents or the document itself.
Put the document into the Default User documents folder. When a new user is created, their profile is setup to mirror that of the default user. This doesn't help you with current users, but it does help you for users who haven't been created (logged on)
I'd go with option 1 because it's relatively standard and its what your average user is going to expect.
Look at Inno Setup Shell Folder Constants : {commondocs}
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.