See tip 5346 » How do I retrieve a user's ProfileImagePath in batch?
in the 'Tips & Tricks' at http://www.jsifaq.com
Also get the SID (see line 5) and use it to set the ProfileImagePath
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\%sid%" /v ProfileImagePath /T REG_EXPAND_SZ /F /D "<The path>"