Author Posts

June 6, 2018 at 8:09 pm

Hello,
I'm sorry for my english! I speak french... from Belgium.

I am looking a GPO PowerShell script to added a picture to C:\ProgramData\Microsoft\User Account Pictures of all users in the
domain.
The picture is the same for everyone.

Source: \\servername\share\user.jpg
Destination: C:\ProgramData\Microsoft\User Account Pictures

Thanks for your help.
Paul
Belgium

June 6, 2018 at 8:49 pm

Hello Paul,
Why don't you just use a GPO to add the file (Computer Configuration/Windows Settings/Security Settings/File System)? No need to use a script for this, or do you have a specific reason?

BTW: As far as I know a user's picture in that folder is contained in a .dat file, not a jpg.

Regards,
Kris.

June 7, 2018 at 6:25 am

Hello,
Thank you for your answer.
I enabled the GPO – Computer Configuration / Windows Settings / Security Settings / File System.
I have a synology with an active directory server. This is certainly the reason for copying the picture.