Hi all,
After you deploy a new VM via:
new-VM -OScustomizationSpec $mySpec
and then POWER on the VM, the guest OS will then perform the customization.
Is there an elegant way to determine if customization is complete? I.e. the OS has run sysprep/configured IPs/set hostname, rebooted itself however many times is required and is now 100% complete and ready to be used?
Regards
marc0
I'm afraid there is no real elegant method for this.
There are some tricks you can use, but none of these is without disadvantages.
Does your sysprep add the guest to an AD domain ?
If yes, you can query the AD to see if the guest was added.
You can also just wait x-number of minutes after the sysprep launches.
Like I said, I don't know of an absolutely fool-proof method for this.
If you find one, let us know.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I'm afraid there is no real elegant method for this.
There are some tricks you can use, but none of these is without disadvantages.
Does your sysprep add the guest to an AD domain ?
If yes, you can query the AD to see if the guest was added.
You can also just wait x-number of minutes after the sysprep launches.
Like I said, I don't know of an absolutely fool-proof method for this.
If you find one, let us know.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference