Deploy a default User Account Picture for Vista & WIndows 7 across the network via GPO

Published on
15,621 Points
2 Endorsements
Last Modified:
Hi All

Just a quick one for everybody.

I was recently looking into setting the default User Account Picture for all my vista clients within the network but on closer inspection the group policy setting only allows you to set the default picture as the local default. As there is no way to specify a single central network location for the picture you could use the following instead.

So in order to enforce a default company picture do the following;

1. Load up the group policy management console.

2. Either create a new group policy object or edit an existing one that is in the same OU as the vista computers.

3. Navigate to: Computer Configuration>Policies>Administrative Templates>Control Panel>User Accounts>Apply the default user logon picture to all users. And set to enabled and keep the GPMC opened.

4. Edit the attached script and change the CompanyPictureLocation = "\\UNC\Path\Of\Picture" to the network location of the picture and of course save as *.vbs be sure that the new picture is a bitmap and is named User.bmp

5. Navigate to: Computer Configuration>Policies>Windows Settings>Scripts>Startup>Add>(Copy the folder path from the open file dialog & then open it up in windows explorer and finally copy the attached script there.)

Reboot and the new picture will be copied to all vista clients in the OU the gpo is contained within.

Const OverWriteExisting = True
Set FSO = Createobject("Scripting.FileSystemObject")
LocalLocation = "C:\ProgramData\Microsoft\User Account Pictures\"
CompanyPictureLocation = "\\UNC\Path\Of\Picture\User.bmp"
FSO.CopyFile CompanyPictureLocation, LocalLocation, OverWriteExisting

Open in new window

1 Comment

Expert Comment

Your the man dude!!!

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Join & Write a Comment

The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Please check the video also in regards to recovery of deleted emails from office 365 admin center and through the MFCMAPI tool. I have mentioned each and every step with the proper steps that need to be taken care of.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month