Your main problem is probably your incorrect hex notation.

From your script:
Quote:

NewUserAccount.UserAccountControl = $NewUserAccountControl And +H200 And +h10000





From the manual:
Quote:

Hexadecimal notation:

[-|+]<&digits>






Also these values need to be bitwise OR'ed. Your logical AND is not correct.

From manual:
Quote:

|
Performs a bit-wise mathematical OR operation on two numbers




Edited by Howard Bullock (2005-10-26 02:21 PM)
_________________________
Home page: http://www.kixhelp.com/hb/