

Next, you need to create a PowerShell script that will get the current user’s photo from Active Directory, save it to a JPG file, and set it as the user’s profile image. Set User Account Profile Photo on Windows with PowerShell This will allow you to apply the policy to OU with computer accounts. Enable the GPO option Configure user Group Policy Loopback Processing mode = Merge (Computer Configuration -> Administrative Templates -> System -> Group Policy).In the next window, select the option Replace existing permission on all subkeys with inheritable permissions, otherwise, users won’t have privileges to nested registry subkeys.Grant Full Control permissions for domain users group ( \Users) on the Database Security screen.

Create a new registry key ( Add key) with the path MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users Navigate to the GPO section Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Registry.
