Skip to content

Instantly share code, notes, and snippets.

@norman-bauer
Created April 13, 2018 06:37
Show Gist options
  • Save norman-bauer/8cef80861292c6ccd8356c10b3d3f057 to your computer and use it in GitHub Desktop.
Save norman-bauer/8cef80861292c6ccd8356c10b3d3f057 to your computer and use it in GitHub Desktop.
UserAccountPicture.exe VB.Net version
Imports System.Runtime.InteropServices
Module useraccountpicture
<DllImport("shell32.dll", EntryPoint:="#262", CharSet:=CharSet.Unicode, PreserveSig:=False)> _
Private Sub SetUserTile(ByVal username As String, ByVal notneeded As Integer, ByVal picturefilename As String)
End Sub
Sub Main(ByVal args As String())
If (args.Length = 2) Then
SetUserTile(args(0), 0, args(1))
End If
End Sub
End Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment