i have this code to create a local windows user
public static bool CreateLocalWindowsAccount(string username, string password, string displayName, string des
check if you do not have UAC enabled alternatively you have to write the code to elevate your application privileges. This however restarts your application.
http://support.microsoft.com/kb/981778