8 replies
by it_girl_47 Accepted solution
by Former member Accepted solution
http://technet.microsoft.com/en-us/magazine/cc162348.aspx
Please post back if you have any more problems or questions.
by it_girl_47 Accepted solution
by ic-it Accepted solution
Setup their laptops with a scheduled task that opens a bat file with a reminder to connect and change the domain user password.
Schedule it to repeat 2 days prior to the frequency of the domain policy. One day prior a second message with a please ignore if you have already done so.
by it_girl_47 Accepted solution
by ic-it Accepted solution
or even as a startup.
To get more information on scheduling a task type schtasks /? at a cmd prompt.
then type schtasks /create /?
by it_girl_47 Accepted solution
Do you know how I would setup an automatically generated email sent from Domino 7 to notify the users of their password expiration? I know it would need to authenticate via SMTP but not sure where to add it in a script. Below is the script I am working with.
Const SEC_IN_DAY = 86400
Const ADS_UF_DONT_EXPIRE_PASSWD = &h10000
Const ADS_SCOPE_SUBTREE = 2
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"
Set objCOmmand.ActiveConnection = objConnection
objCommand.CommandText = _
"Select Name, distinguishedName from 'LDAP://DC=MYDomain' Where objectClass='user' AND objectClass <> 'computer'"
objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
Set objRecordSet = objCommand.Execute
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
If (InStr(objRecordSet.Fields("Name").Value, "SystemMailbox") = 1) Then
objRecordSet.MoveNext
Else
ldapStr = "LDAP://" & objRecordSet.Fields("distinguishedName").Value
Set objUserLDAP = GetObject(ldapStr)
intCurrentValue = objUserLDAP.Get("userAccountControl")
Wscript.Echo "Name: " & objRecordSet.Fields("Name").Value
If intCurrentValue and ADS_UF_DONT_EXPIRE_PASSWD Then
Wscript.Echo "The password does not expire."
Else
dtmValue = objUserLDAP.PasswordLastChanged
Set objDomainNT = GetObject("WinNT://IL.MOC.LOCAL")
intMaxPwdAge = objDomainNT.Get("MaxPasswordAge")
If intMaxPwdAge < 0 Then
WScript.Echo "The password does not expire."
Else
intMaxPwdAge = (intMaxPwdAge/SEC_IN_DAY)
Wscript.Echo "The maximum password age is " & intMaxPwdAge & " days"
If intTimeInterval >= intMaxPwdAge Then
Wscript.Echo "The password has expired."
Else
Wscript.Echo "The password will expire on " & _
DateValue(dtmValue + intMaxPwdAge)
End If
End If
End If
Wscript.Echo "====================================================="
objRecordSet.MoveNext
End If
Loop
by it_girl_47 Accepted solution
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending