G
Guest
hi
im trying list the date that a user account expires...ihave this code, but i
got an error in the LDAP
<job id="expi">
<script language="VBScript">
On Error Resume Next
Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")
dtmAccountExpiration = objUser.AccountExpirationDate
If Error.Number = -2147467259 Or dtmAccountExpiration = "1/1/1970" Then
WScript.Echo "No account expiration date specified"
Else
WScript.Echo "Account expiration date: " & objUser.AccountExpirationDate
End If
</script>
</job>
somebody knows how can i fix it??? thanks
im trying list the date that a user account expires...ihave this code, but i
got an error in the LDAP
<job id="expi">
<script language="VBScript">
On Error Resume Next
Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")
dtmAccountExpiration = objUser.AccountExpirationDate
If Error.Number = -2147467259 Or dtmAccountExpiration = "1/1/1970" Then
WScript.Echo "No account expiration date specified"
Else
WScript.Echo "Account expiration date: " & objUser.AccountExpirationDate
End If
</script>
</job>
somebody knows how can i fix it??? thanks