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>"
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.