passwordNotify.vbs is a script I am sure many have seen. it is located at:
http://www.gelmir.com/index.php?option=com_content&task=view&id=7&Itemid=8
The script runs great... except it only runs through the users that start with "A" whose passwords expired before January 1st! (We keep user accounts around for compliance reasons).
I pretty much used the script as is from the site listed above, and the instructions seem to be pretty clear that this should return all users whose accounts are either expired or will expire within 14 days.
As a follow up, it appears the script ends with this displayed:
C:\passwordNotify.vbs(156,
2) (null): 0x80005000
Would you mind posting the full script you're using? Makes life easier :)
The Null error you're getting will be why it's not going beyond A, it just needs a little error control in there to get by and it's easier to glue that into what you have than assemble the script again from the article concerned.
Chris