User account and Profile folder different names same SID
A user got married, name was changed in AD. User logs on with new username, since the SID hasn't changed the Profile folder still has her previous name.
Problem is deploying a user based MSI (through SCCM, collections are based on AD groups).
The problem is the basically the shortcut which has to end up in the users profile.
No need to ask, why user based deployments. I am not the first packager that has raised this question and sure will not be the last. It's not going to change anytime soon.
Anyway.......I have been googling and I don't think it can be done, ...or...can it?
Community Chosen Answer
This breaks the %username%. You can fix it easily, they will have to set thier theme after
1. Rename c:\users\oldname to c:\user\newname
2. run regedit and change the profileimagepath to the new name under that users keyset.