marc045
Contributor
Contributor

How to determine OS Customization complete after VM power on?

Jump to solution

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

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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. Smiley Sad

If you find one, let us know.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership

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. Smiley Sad

If you find one, let us know.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos