VMware Cloud Community
mtrohde
Enthusiast
Enthusiast
Jump to solution

Looking for example Customization Specification that uses 'Run Once'

I want to run batch files and powershell scripts as part of the process of provision new windows servers.  Now totally failed to find examples or documentation on how to use 'run once', clearly my 'google-fu' is weak.  

If I have X batch file and Y powershell script located in Z directory on the template what do I put into 'run once' field to kick them off when the template is cloned and the customization is applied?

Regards,

Michael

Reply
0 Kudos
1 Solution

Accepted Solutions
daphnissov
Immortal
Immortal
Jump to solution

Let's say you have Z already mounted when this system is provisioned and you want to run a BAT script at Z:\script.bat. Your run once could just be the following.

pastedImage_0.png

View solution in original post

Reply
0 Kudos
2 Replies
daphnissov
Immortal
Immortal
Jump to solution

Let's say you have Z already mounted when this system is provisioned and you want to run a BAT script at Z:\script.bat. Your run once could just be the following.

pastedImage_0.png

Reply
0 Kudos
mtrohde
Enthusiast
Enthusiast
Jump to solution

Perfect!

Thank you!

Michael

Reply
0 Kudos