I have a PowerCLI script which can be executed via NSH to change the VM Port Groups. I'm currently at home and not sure if I have the script lying around anywhere here. I'll dig and see if I can get it, otherwise I'll post it tomorrow.
Your requirement is to just change the Network Label on a VM post provisioning right?
Yes thats correct.
Umar to the rescue again
I uploaded a document within the BMC BladeLogic Virtualization Manager space, but it is yet pending approval.
I don't think it would be visible to you until it is approved, but here is the link anyway:
I have run this directly via the NSH prompt. I think it should be easy to run this in a batch job. Of course you would need to have PowerCLI installed at the place where you are going to run this script from.
Note: In 8.0, we do not support adding Virtual Guest Jobs to Batch Jobs. Just a heads up.
You might want to have a integrated NSH script for end to end automation.
Let me know if you are facing any difficulty in running it. I would suggest you to try and run it standalone first before you integrate it in any job as such.
Environment BL 8.0 SP5 & VMware vCentre 4.1
When running a Virtual Guest Job to create a VM via VMware Template only one network card is configured after the sysprep is run. I have no experience in PowerCL programming in order to interact with vcenter. Does anyone have a script (*.ps1) that can be launched via a nsh script that configures the second network card on a windows and linux vm?