Jump to content

Change user profile pic in win8.


Recommended Posts

I know how to change userpic in win 7 and older, but in win 8 and win 8_1 standart method does not work

I mean this one:

$hPicPath = DLLStructCreate("wchar[128]")  
    DllStructSetData($hPicPath, 1, @UserProfileDir & "\usertile.jpg")

   $hUserName = DLLStructCreate("wchar[128]")  
      DllStructSetData($hUserName, 1, @LogonDomain&"\"&@UserName)

   $aRet = DllCall(@SystemDir & "\shell32.dll", "long", 262, "ptr", DllStructGetPtr($hUserName), "int", 0, "ptr", DllStructGetPtr($hPicPath))

I know there is some function like [Windows.System.UserProfile.UserInformation]::SetAccountPictureAsync($file) (powershell), but it doesnt work in AutoIt. Can somebody help me? Im very new here.

Edited by NIKENIT
Link to comment
Share on other sites

Well, in w7 i just copy a file called 'user.bmp' to 'C:ProgramDataMicrosoftUser Account Pictures' and it's done.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

I used to do it like careca, change the file itself.

Based on that if it works in Win 8 all the same here is a quote from a Win 8 site.

The default user account picture images are in the hidden system folder below.

C:ProgramDataMicrosoftDefault Account Pictures

The current user account picture (tile image) is stored in the hidden folder below.


C:UsersPublicPublic Account PicturesS-1-5-21.......(GUID for user account)

The recent user account pictures used for your account are stored in the hidden folder below.


C:Users(user-name)AppDataRoamingMicrosoftWindowsAccountPictures
Link to comment
Share on other sites

Isn't that good enough? :ermm:

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...