Deploy an application to multiple folders and install it with powershell

So i had to dabble my feet into Powershell this week. Something i need to work a lot more on in the future. So expect to see more scripts popping up soon 🙂

What i had to do was create a script that would allow me to roll out an application to many folders under a directory. As this particular program does not “scale” quite well on users so we needed to manually scale out many instances of the same service on the same server. Now this was setup on multiple servers as well for redundancy. Now we created a folder on a share with the files needed and the config file.

We named the folder like test_001, test_002 and so on, but needed  a script that would create the folders, copy the files in, edit the config file and add the 001, 002 and so on to each config file as they needed to identify them self with a certain domain name for the in house built connector that was listening on port 80 and 443. We also needed to install the program as a service and start the service.

 

Im hoping this little script can help others out in the future.

Leave a Reply

Your email address will not be published. Required fields are marked *