Eye Candy it might be, but it would tie in with the idea of keeping all of the config on the server quite nicely.
I am still trying to find the time to finish this particular idea, any body else is welcome to chime in with whatever help they can.
The idea is this....
1) We add a table to the database for multiple site (location) configuration.
This allows us to set up multiple configs. Each config has a site name and suitable site details..
(see how this ties in with this idea
, we can also add the location details at the same time)
Each site also has an associated Audit Scope (domain name, machine name, IP range or subnet), and an associated
IP or range of IPs that can run the audit for that scope.
We can also have a link from each configuration on the OA server that allows us to grab (download) an audit.vbs for that location.
This audit.vbs is hard coded with the OA server URL (including perhaps a unique key) but doesn't need a config file, since it will
download this when the script is run.
2) When we run audit.vbs, it checks for a local config file. If one is found, it uses that, then checks to see if it can see the OA server,
and if so, is there is an update for audit.vbs
If no local config is found, it tries the server URL, and creates a config, and updates itself based on the values returned from the server.
If no local config is found, and the server cannot be contacted, audit.vbs audits the local machine to a local text file.
3) When contacted by audit.vbs for a config file, If the server recognises the IP address or subnet of the auditing PC
requesting a config it throws back the correct config file for that particular scope (subnet/domain/PC or whatever)
otherwise it throws back a suitable config to audit just the local machine, and post back to the server.
The result of this work is the ability to modify config for any site from the web server, and even have the audit.vbs update itself and its config if need be from the server. Only trouble is, I have done the basics (the site URL is in audit.vbs, and it will grab a config from that URL, however it is not currently a dynamic config, and no check is made to see if audit.vbs is out of date either) I simply haven't had time to finish the idea.
Anybody want to assist?