Zend certified PHP/Magento developer

Creating a Windows Virtual Machine on Demand with custom user preferences

Suppose, I’m building a service to allow user to build a Windows Custom Windows VM Machine. I have a base image of the VM already saved from which I will create the new VM according to user preferences.

For example, they can specify background screen saver, define a custom admin password, change to user license key among other things.

How can I achieve that?

  1. I’m thinking that I just create the New VM from the base and then run power shell in it remotely. The power shell will be responsible to apply user preferences? Is it the best way? Is it possible to copy power shell files into the new VM so I don’t have to run the power shell remotely?

  2. I see in AWS/AZURE Environment, that they have a concept of User Data where we can specify scripts. How are they handling user data? Do they some tool installed in all base images which is fed-in user data?