I have a script that collects system and SharePoint-related data from a server and emails it to a mailbox. The XML configuration file it reads contains the following values:
<settings> <client>PAN001</client> <smtp> <to>john.citizen@domain.com</to> <from>bob.bee@domain.com</from> <server>smtp</server> <port>587</port> <username>username</username> <password>password</password> <enablessl>true</enablessl> </smtp> </settings>
The <client> node will be configured depending on the server while the nodes under <smtp> will always stay the same. The problem is I have to deploy this script to 10 farms (approximately 20 or more servers). If I had to change, for example, the username and password nodes, I would have to do this for each server that hosts my scripts.
I was thinking of doing was uploading the configuration file to a central location and have the script download the configuration file each time, but it's not safe to assume that each of the servers will have access to this this "central location" or even the internet at all.
What would be the best method of doing this?
- Edited by petersmileyface 11 hours 30 minutes ago