can i create local users just using windows registry? i write the programm wich help me to migrate my from one computer to another. When i work with domain user i can save it settings with windows registry and saving ProfileImagePath folder. now i want to save local users by this way.
No, you need more than the registry in order to create a user. You have to script it or use another language that can interact with something like WMI to create users. Some profile items and settings are stored in the registry, but you also have things like the user's profile folder (including the ntuser.dat file) and the password which are not part of the registry.
With a little VBS scripting you can do this (copied from here):
Note: you do not interact with the registry at all, instead with the SAM.