So, I've been trying to teach myself scripting by looking at my company's existing scripts and attempting to reverse engineer. I've had some experience with scripting and programming many moons ago, but I can still more or less follow what's going on.
So, I have a maddening issue. A script created in 2004 by either a former employee or one found on the internet intermittently works. The job of the script is to take an AD group as input, verify the domain and OU and return a list of accounts in that group. As I've said, it works sometimes and other times it fails with an access denied message on a specific line. I've added it below.
Set objGroupLog = fso.CreateTextFile(strGroupLog, True)
This line is in a section where it's trying to write a log, but I'm not sure where it's trying to write to. I have more lines of the script, but have seen people be annoyed at posters for copy and pasting the entire script. I can add any info you'd like to give me a hand.