I have an application that checks to see if a user exists (if not create it) every time it starts. This is done as follows:
bool bUserExists = false; Directo
The following in a command prompt returns 1 if 'username' exists.
net user | find "username" /c