I want to clone a VM in a isolated network.
The isolated network is the same as Production (same IP / same name). There is no communication between production network and isolated network.
After the VM is cloned, i start it and i need to execute a script for ajustements.
Is it a way by API (prism) or anything else to execute locally a script?
Thanks for your help,
Do you need this script everytime VM boots up ?
I want to automaticaly clone a Domain Controler to an isolated network.
And i need to execute a script just one time at first boot for seize FSMO role.
Here an example of a powershell script that i need to execute just one time at first boot :
It is not a recommended to clone a Domain Controller. However, I would recommend you to reach out to Microsoft for details guidance on above scenario.
Let me know, if I can assist more on Nutanix aspect.
I know that.
It is not for production but test environement !
We already do it manually and we want to do it automaticaly by Ansible.
Thanks for the response. Based on the details shared, this is an application layer or OS Level action. I would recommend you to reach out to Microsoft for details guidance on above scenario.
Based on my past experience, the simplest way of running a program at startup on Windows is to place an executable file in the Startup folder. All the programs that are in this folder will be executed automatically when the computer opens. The location of this folder on Windows is following:
You can open this folder more easily by pressing WINDOWS KEY + R and then copying this text
shell:startup.We can do this by creating a BAT (.bat) / VBS (.vbs) or Powershell (.ps1).
Your idea is too place a batch into %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup and if i do this i need to copied the script on the source VM before cloning it.
I don’t want to add or modify something on the source VM because it is a DC of our Production environnement.
I am giving up because :
i need to execute a powershell script at startup without modify source VM
I need to execute the script to adapat the A.D. Domain with “Admins Domain” permission…