I have a couple hundred multi-user machines that have potentially hundreds of unique users per month per machine. Lately I have been noticing that some users are experiencing a temporary profile when logging in to some machines. When I check the user registry (HKLM\Software\Microsoft\W
ist) I notice that some users keys have a .bak on the end. If I delete that key the user can log in with an expected profile and behavior. It would make sense to me then to systematically remove these keys from the machines to improve general computer use.
I am struggling in finding a way to delete just the keys that end in a .bak without touching the others. I have found some articles on EE that talk about using wildcard masks in VBscripts, but I'm not sure how to do that. Any other solutions to this problem are also appreciated.