NIKENIT Posted August 8, 2014 Share Posted August 8, 2014 (edited) 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 August 8, 2014 by NIKENIT Link to comment Share on other sites More sharing options...
careca Posted August 8, 2014 Share Posted August 8, 2014 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 More sharing options...
ViciousXUSMC Posted August 8, 2014 Share Posted August 8, 2014 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 More sharing options...
NIKENIT Posted August 11, 2014 Author Share Posted August 11, 2014 As far as i know, this will change userpic only after PC restart. Link to comment Share on other sites More sharing options...
careca Posted August 11, 2014 Share Posted August 11, 2014 Isn't that good enough? 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 More sharing options...
ViciousXUSMC Posted August 11, 2014 Share Posted August 11, 2014 As far as i know, this will change userpic only after PC restart. Maybe try to kill and restart the Explorer process? Not sure if that would work but it does for a lot of things that normally require a logoff/restart. Link to comment Share on other sites More sharing options...
Geir1983 Posted August 11, 2014 Share Posted August 11, 2014 Maybe you can do it with this api: http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.userprofile.userinformation.aspx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now