Copy logon hours from one account to another

Tech-Archive recommends: Fix windows errors by optimizing your registry




All:
I want to force users to logoff.
The following runs but returns an error:
\allow_logon.vbs(3, 1) (null): There is no such object on the server.
Apparently something deosn't lik the underscore ... Can u assist?
tia
S

rem On Error Resume Next

Set objUserTemplate = _
GetObject("LDAP://cn=ITUser,OU=init,dc=c-span,dc=org";)
arrLogonHours = objUserTemplate.Get("logonHours")

Set objUser = _
GetObject("LDAP://cn=smartin,OU=Users,dc=c-span,dc=org";)
objUser.Put "logonHours", arrLogonHours
objUser.SetInfo



.