AZ-104 · Question #477
Your company has an Azure Active Directory (Azure AD) tenant that is configured for hybrid coexistence with the on-premises Active Directory domain. The on-premise virtual environment consists of…
The correct answer is A. Configure a SetupComplete.cmd batch file in the %windir%\setup\scripts directory. After you deploy a Virtual Machine you typically need to make some changes before it's ready to use. This is something you can do manually or you could use Remote PowerShell to automate the configuration of your VM after deployment for example. But now there's a third…
Question
Options
- AConfigure a SetupComplete.cmd batch file in the %windir%\setup\scripts directory.
- BConfigure a Group Policy Object (GPO) to run the scripts as logon scripts.
- CConfigure a Group Policy Object (GPO) to run the scripts as startup scripts.
- DPlace the scripts in a new virtual hard disk (VHD).
How the community answered
(54 responses)- A72% (39)
- B15% (8)
- C9% (5)
- D4% (2)
Explanation
After you deploy a Virtual Machine you typically need to make some changes before it's ready to use. This is something you can do manually or you could use Remote PowerShell to automate the configuration of your VM after deployment for example. But now there's a third alternative available allowing you customize your VM: the CustomScriptextension. This CustomScript extension is executed by the VM Agent and it's very straightforward: you specify which files it needs to download from your storage account and which file it needs to execute. You can even specify arguments that need to be passed to the script. The only requirement is that you execute a .ps1 file. https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-a-custom-script- to-windows-setup https://azure.microsoft.com/en-us/blog/automating-vm-customization-tasks-using-custom-script-
Community Discussion
No community discussion yet for this question.