Windows 10: Add account picture from command line 1809

Discus and support Add account picture from command line 1809 in User Accounts and Family Safety to solve the problem; I want to have my script automatically set up an account picture for a user. In Windows 10 1809 17763 the account pictures are located at... Discussion in 'User Accounts and Family Safety' started by Wobitancrawfodi, Sep 9, 2020.

  1. Add account picture from command line 1809


    I want to have my script automatically set up an account picture for a user.

    In Windows 10 1809 17763 the account pictures are located at %APPDATA%\Microsoft\Windows\AccountPictures.

    Images are stored with a string name such as '81b56e057727e2f4', not an actual file name.

    The reference to this image in the registry is HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\AccountPicture

    However, putting the images in the correct folder and adding the registry key still does not display the account picture.

    Using RegFromApp and manually adding it via the settings app I see that it creates an entry at;

    HKEY_CURRENT_USER\Software\Classes\Local Settings\MuiCache\xxx\52C64B7E with a name of
    @windows.UI.Immersive.dll,-38306

    And its value is 'Account Picture'

    The problem is the xxx in the registry path above is different for each installation.

    The value at the end of the name seems to be constant.

    -38306 for a user account picture
    -23570 for the default account picture.

    So my question is how can I get the account picture to display from the script without having each user manually configure it?

    :)
     
    Wobitancrawfodi, Sep 9, 2020
    #1
  2. Naki Win User

    GPU-Z what command line parameter ?

    Suggestion: /? (-?) and /help (-help) command-line arguments to show a list of all possible arguments in a small window. *Smile Add account picture from command line 1809 :)
     
    Naki, Sep 9, 2020
    #2
  3. ryanly Win User
    GPU-Z what command line parameter ?

    Current /? (-?) or / help (-help) parameter is invalid
     
    ryanly, Sep 9, 2020
    #3
  4. Add account picture from command line 1809

    Add account picture from command line 1809

    I want to have my script automatically set up an account picture for a user.

    In Windows 10 1809 17763 the account pictures are located at %APPDATA%\Microsoft\Windows\AccountPictures.

    Images are stored with a string name such as '81b56e057727e2f4', not an actual file name.

    The reference to this image in the registry is HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\AccountPicture

    However, putting the images in the correct folder and adding the registry key still does not display the account picture.

    Using RegFromApp and manually adding it via the settings app I see that it creates an entry at;

    HKEY_CURRENT_USER\Software\Classes\Local Settings\MuiCache\xxx\52C64B7E with a name of
    @windows.UI.Immersive.dll,-38306

    And its value is 'Account Picture'

    The problem is the xxx in the registry path above is different for each installation.

    The value at the end of the name seems to be constant.

    -38306 for a user account picture
    -23570 for the default account picture.

    So my question is how can I get the account picture to display from the script without having each user manually configure it?
     
    Wobitancrawfodi, Sep 9, 2020
    #4
Thema:

Add account picture from command line 1809

Loading...
  1. Add account picture from command line 1809 - Similar Threads - Add account picture

  2. Command line to add dword to registry

    in Windows 10 Gaming
    Command line to add dword to registry: I currently have this registry HKEY_LOCAL_MACHINE\SOFTWARE\EveryonePrint\HCP Client and would like to add a DWORD to it with the value 00000000 but it is coming up with invalid syntax error. What is wrong with my command line below? I can manually add the DWORD using register...
  3. Command line to add dword to registry

    in Windows 10 Software and Apps
    Command line to add dword to registry: I currently have this registry HKEY_LOCAL_MACHINE\SOFTWARE\EveryonePrint\HCP Client and would like to add a DWORD to it with the value 00000000 but it is coming up with invalid syntax error. What is wrong with my command line below? I can manually add the DWORD using register...
  4. Command line commands

    in Windows 10 Customization
    Command line commands: I would like to create a shortcut on the desktop using a command in a .bat file. I would like to specify what icon file to use, what program to execute, and the parameters to pass to the program. I have researched MKLINK but I don't think it will do the job. Any...
  5. How to add tag into a picture by command line?

    in Windows 10 Network and Sharing
    How to add tag into a picture by command line?: Hi all, I am using Windows 10 and need to add tags for multiple pictures. It's too slow to add it one by one, is there a script way like command line to do it in batch? Regards, Ming...
  6. Unable to add an account picture

    in Windows 10 Customization
    Unable to add an account picture: Hello, I just recently upgraded to WIN10 from a USB drive. During setup I was attempting to add an account photo but I keep getting the error message "setting the account picture failed. Please try again" I have read on other questions that users can navigate to the...
  7. How to change lockscreen picture by command line?

    in Windows 10 Customization
    How to change lockscreen picture by command line?: Hi All is there any way to change lockscreen picture via command line or powershell scripts? Thanks for any replies. 153063
  8. How to add custom command line in Windows Terminal

    in Windows 10 News
    How to add custom command line in Windows Terminal: [ATTACH] [ATTACH]With Windows Terminal, the company is trying to bring all the command-line based utilities under one UWP shell. Out of the box, it includes Windows PowerShell and Windows Command Prompt – but if someone wants, they can include another command-line [...] This...
  9. Add Network Location - CMD / Command Line

    in Windows 10 Network and Sharing
    Add Network Location - CMD / Command Line: Is there a way to "add a network location" in CMD? The wizard tool allows for path renaming, I'd like to run a one line command similar to 'net use' that creates the share location without the drive limiter. Has anyone come across a command to do so? I believe the wizard...
  10. Can't add user via command line

    in User Accounts and Family Safety
    Can't add user via command line: I am trying to add a user via the command line through a virtual pc I added with VMWare. I'm running windows 10, and unable to add because this is what I get when I open CMD: I can't go beyond this point, I keep getting error messages. Any help would be deeply appreciated....