VMware Cloud Community
shatztal
Contributor
Contributor

Is It possible to run a Customscript after a Machine is Created?

We Deploy From Templates lots of vm's . and i wrote a VI Powershell Script that is adding some Details to the VM that in the VI client we can see like "Description" "Owner" "Domain"

it is for Order Purpose only .

i want that after i Deploy a Machine it will run the script on my Guest PC so that i can input the details as it says.

is it possible ? have you any idea maybe on an other way?

Reply
0 Kudos
1 Reply
shatztal
Contributor
Contributor

i have created in vShpere CLI a script that is ps1 extended.

i want it to run after the Sysprep finishes when the user logons to the computer but just one.

in the Customization Wizard we can put in thing for "Run Once"

hwo can i put in a script like that? don't forget that is not a Powersheel script it is the VM powershell so it is more diffecult to run the script automatic.

the only ways is from direct vShpere cli Shell but i want to make it automatic withour user interupts.

Reply
0 Kudos