In preparation for private cloud deployment, our HP c7000 BladeSystem Virtual Connect domain needed configuration. Of course, the VCEM modules allow CLI interaction, so I figured I could automate the process using a script. Problem is, the SSH buffer maxes out after about 50-60 lines from the script, resulting in catastrophic configurations. As always, PowerShell has come to the rescue. After downloading and installing the SSH Sessions module for PowerShell, I was able to convert my script into PowerShell to deliver the script to the VC module in a controlled (and programmatic!) fashion. In my experiences, the script I provide below took about 40 minutes to complete, with most of the time consumed by importing the enclosure and creating all the server profiles.