I got this script from John Savill at
I edited it for my domain ou structure and it Wscript.echo's the first echo
with correct information for that user, but on line 56 [ Set
objUserConnection = GetObject("LDAP://" &
objRecordSet.Fields("distinguishedName").Value) ], it errors with (null):
0x80005000.
Any idea's how to prevent this error without using On Error Resume Next?
There are a lot of long lines that would cause line wrapping. It's probably
easier for you to visit the link and look at his example.
The only thing I changed was the strRootDomain= string line.
Or if anyone has another script to check when AD users passwords are a certain number of days from expiring...
I prefer a script to third party tools as I'm on a gov campus and have control limited to my OU and not the domain a few levels up.
Thanks for any help or suggestions!
-Steve
I edited it for my domain ou structure and it Wscript.echo's the first echo
with correct information for that user, but on line 56 [ Set
objUserConnection = GetObject("LDAP://" &
objRecordSet.Fields("distinguishedName").Value) ], it errors with (null):
0x80005000.
Any idea's how to prevent this error without using On Error Resume Next?
There are a lot of long lines that would cause line wrapping. It's probably
easier for you to visit the link and look at his example.
The only thing I changed was the strRootDomain= string line.
Or if anyone has another script to check when AD users passwords are a certain number of days from expiring...
I prefer a script to third party tools as I'm on a gov campus and have control limited to my OU and not the domain a few levels up.
Thanks for any help or suggestions!
-Steve