We've moved most of our website log files from C: to a data volume D:, however we have a LOT of websites, and some are still logging to C:
I'd like to generate report on which sites these are so we can move the logs to D: which has the space to cope with the expanding volume.
Thoughts: I can see a whole lot of website IDs in C:\WINDOWS\system32\LogFiles directory, but I don't know how to determine the site from the ID, nor whether the site even exists any more. (The non-existent ones can be archived somewhere else)
EDIT: I'm asking about a pre-existing tool rather than asking how to write my own. The problem is not yet worthy of writing something.
If the solution can be adapted to report on other pieces of IIS information that would be great.
Cheers. Murray.
Credit to Pekka for pointing out the obvious, I'll write it up here.
To find all the sites logging to C: you can search the meta base XML file (%systemroot%\System32\Inetsrv\MetaBase.xml) for the string "C:\WINDOWS\system32\LogFiles\" or your equivalent.