Sorry I haven’t posted in a while. A case of pneumonia and Kylie had bronchitis so I’m a bit behind.
Here is an interesting bit:
I grabbed some code from bsonposh.com and added it to some code scraped out of SCVMM to get something to automate adding a host to SCVMM.
I used www.bsonposh.com Set-myCredential.ps1 to save a credential file:
I use the reverse to get the credential and add the host to SCVMM. The idea here is to have an easy way to import a machine running the SCVMM console and add the local host. A renewable or transportable demo or test system or part of an automation script for a cloud based host. You might set up the internal networks to be identical on each physical host and then use the ip address to access the local host.
A cool side effect is that if you do this and the host does not have Hyper-V role it will add it automatically and reboot. Cool or not cool depending on if you expect it.
Thanks for your time, and thanks for hanging out with me here.