I need to query all server files and sub folders in our AD enterprise (OU=FILEPRINT,OU=PROD,OU=SERVERS,OU=ROOT, ,DC=.)..for database files.
I need to find all databases in all shared directories and get the info back to a csv on the date created, modified, size, path and name.
I have a list of shares in our environment, which is (very) 1325 lines long, but it is really only about 30 servers So, I was thinking an ADSI script could query all those servers and bring out the data nicely.
A batch or cmd script that could process the share list in the csv, line by line, would be fine, or one that could go to our forest and search all the file servers for database files.
I've got a vb script going, but I'm really struggling with it. I think I don't know how to call, declare or name file properties in a script or parse out the output either!
Thanks for your help.