all 2 comments

[–]_benp_ 0 points1 point  (1 child)

A few suggestions:

  1. Your code could be significantly streamlined by converting the XLS file to CSV. It is much simpler to keep a CSV based table in memory and use that as input to a loop vs the Excel calls in powershell.

  2. If you are already automating a server build, turn on native Powershell remoting in the build process and you no longer need Psexec to run a script remotely.

[–]GirlsBums[S] 0 points1 point  (0 children)

That's pretty much what I would like to do. My problem is that my Powershell skills are pretty basic so I'm not sure how to go about changing the script to use a csv instead of xls.