Candi Suriano
2006-04-27 08:56:02 UTC
I sure hope this is the last thing I struggle with :)
I'm trying to restrict the logon hours for a user. Here's the relevant
pieces of my code (that doesn't work). The strUserDN is correct as I set a
lot of other properties with this object.
Dim hour() As Byte = New Byte() {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0}
user = New DirectoryEntry(strUserDN)
user.Properties("logonHours").Value = hour
user.CommitChanges()
As always, thanks in advance.
I'm trying to restrict the logon hours for a user. Here's the relevant
pieces of my code (that doesn't work). The strUserDN is correct as I set a
lot of other properties with this object.
Dim hour() As Byte = New Byte() {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0}
user = New DirectoryEntry(strUserDN)
user.Properties("logonHours").Value = hour
user.CommitChanges()
As always, thanks in advance.
--
Candi
Candi