C:\ProgramData\Microsoft\User Account Pictures

Welcome Forums General PowerShell Q&A C:\ProgramData\Microsoft\User Account Pictures

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
6 months ago.

  • Author
    Posts
  • #101969

    Participant
    Points: 0
    Rank: Member

    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

  • #101971

    Participant
    Points: 0
    Rank: Member

    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.

  • #101983

    Participant
    Points: 0
    Rank: Member

    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.

The topic ‘C:\ProgramData\Microsoft\User Account Pictures’ is closed to new replies.