Still fairly new to VBScripting, but damm I love it, especially when I get an error and then get to find out why, but I'm afraid this one has got me. Searching and reading all over the net hasn't help and neither has trial and error. I reckon you clever people will get the answer in about 20 seconds (and recommend a better way to write this script) but I'll be happy to receive any help you would like to offer.
So, here is it, a script to search AD for the last time every user in 3 separate OU's logged on and dump it into Excel, once I get this part working at least I'm modify it to search all the other DC's and then compare times.
Anyways, getting an error on line 119, which is the line I have highlighted below, specifically: "Microsoft VBScript runtime error: Object required: 'objRecordSet.Fields(...).Value'" It's also worrth adding that it works perfectly fine for the 1st SubRoutine (AdminUsers), gets all the info it should and populates Excel.
I'm sure it's probbaly something really easy for anyone who has some expeirence, but at the moment I just can't seem to find what I'm doing wrong.