Solved

Win7 - Use GPO to set different User Account Picture at logon-screen

Posted on 2010-11-12
8
1,742 Views
Last Modified: 2012-06-27
At our company we are going to migrate to Windows 7 next year. One of the things we would like to do, is to display a specific picture for each user that log on to the system.

Users can set their own user account picture but we would like to set it to the photo of the user. This needs to be done through GPO when the user logs on.

I found out that the picture information is stored in "c:\programdata\microsoft\user account pictures\" and is called domain + username.DAT (eg. MYDOMAIN + MARK.DAT).

I am able to create a script that during logon of a users copies a specific file to this location but how do I create this DAT file? If I open it in a picuture viewer it is not a picture file.
Has anybody else had this challenge and how did you deal with it?

Any help would be appreciated.
0
Comment
Question by:u795696
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 16

Expert Comment

by:The_Kirschi
ID: 34118478
0
 

Author Comment

by:u795696
ID: 34119302
Ermm, no I did not see that article because it discusses the change of the LogonUI Background. Something completly different..... I need to change the User Account Picture for each separate user
0
 
LVL 16

Accepted Solution

by:
The_Kirschi earned 25 total points
ID: 34119724
Yes, you're right. Sorry for this.

The .dat file is not the picture itself but a file that has multiple info about the users' profile. The user picture actually is a bmp file.

Maybe this will help you:

I'm running server 2008 (with all the extra GP items for Vista, requiring the client side extensions installed on each maching).  I use the User Settings->Preferences->Windows Settings->Files, I'm using a central location as my source, and destination is C:\Users\%Username\AppData\Local\Temp\(Domain)+%Username%.bmp where (Domain) is your network Domain.

Found at: http://www.eggheadcafe.com/software/aspnet/32256951/force-user-account-picture-wgroup-policy.aspx
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Expert Comment

by:Lee Osborne
ID: 34130446
Just for information, I do exactly the same as @The_Kirschi, although with a slight variation on the file locations.

My user.bmp file is copied from the central share to c:\programdata\microsoft\user account pictures\user.bmp . When a user logs on, it will copy this file to their profile account picture.

I also copy guest.bmp to the same location which will automatically set the account picture for new users who log on.

Lee
0
 

Author Comment

by:u795696
ID: 34138381
I have now created 2 scripts that will do the change for me.

Script 1: runs at computer startup and changes rights to the USER.BMP file at C:\PROGRAMDATA\MICROSOFT\USER ACCOUNT PICTURES\ with ICACLS

Script 2: Runs at logon of a user; this script looks at the user loggin on and then copies the appropriate user-picture to the folder mentioned in script 1. Then it stops the explorer-process and restarts it so that the picture is also displayed at the top of the startmenu.

All works fine, we do not use Fast User Switching so everybody had his own picture displayed and if there is no picture then a default logo will be displayed.

I now need to be able to prevent that users are able to use the Windows menu to change their picture so that it will always be the picture I set to the user.
Is a GPO available for this? We have a DC running on MS Server 2003.

0
 
LVL 15

Assisted Solution

by:Lee Osborne
Lee Osborne earned 25 total points
ID: 34138455
You can lock this down by using the following GPO:

Computer Configuration > Administrative Templates > Control Panel > User Accounts
Apply the default user logon picture to all users: Enabled

This will force the default picture to be used, and will also prevent it from being changed.

Lee
0
 

Author Comment

by:u795696
ID: 34139020
OK then I guess my queste for this is finished :)

I'll split credits between you and The_Kirschi
0
 

Author Closing Comment

by:u795696
ID: 34139039
With the provided links I was able to get things the way I wanted them after some tweaking
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
is freezing possible in ssd? 4 68
Registry permissions settings not sticking 5 33
BgInfo help 5 61
How to move files from subfolders in one folder 8 20
One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question