Copy logon hours from one account to another
- From: "DemoDog" <DemoDog@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 29 Aug 2005 13:43:27 -0700
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
.
- Prev by Date: Re: printui.dll: can't get /ga switch to work
- Next by Date: RE: script to listen
- Previous by thread: VB Script - Need Help CIM_DataFile, Win32_Share
- Next by thread: Monitor logins/logoff
- Index(es):