I just tried this:

$user.loginhours = 255,255,255,255,255

and also tried dimming a var and populating it seperately, get the following error:

COM exception error "loginhours" (Active Directory - The directory datatype can
ot be converted to/from a native DS datatype
) [1/1]

which kinda makes sense i guess - WinNT is expecting an array of bytes - and the best we can do is pass an array of longs (five longs = 20 bytes?). Wonder if one could pass an array of CHR()'s ?

-Shawn

p.s. Tried a 21 element array of CHR()'s and also tried maxing out the longs, eg:

$user.loginhours = 4294967295,4294967295,4294967295,4294967295,4294967295

[Frown]

[ 05 June 2002, 15:49: Message edited by: Shawn ]