#85953 - 2002-06-05 03:40 PM
Re: LogonHours user properties
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
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]](images/icons/frown.gif) [ 05 June 2002, 15:49: Message edited by: Shawn ]
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
1 registered
(Allen)
and 675 anonymous users online.
|
|
|