nerdexam
MicrosoftMicrosoft

AZ-104 · Question #477

AZ-104 Question #477: Real Exam Question with Answer & Explanation

Sign in or unlock AZ-104 to reveal the answer and full explanation for question #477. The question stem and answer options stay visible for context.

Submitted by deeparc· Mar 4, 2026Implement virtual machines

Question

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 virtual machines (VMs) running on Windows Server 2012 R2 Hyper-V host servers. You have created some PowerShell scripts to automate the configuration of newly created VMs. You plan to create several new VMs. You need a solution that ensures the scripts are run on the new VMs. Which of the following is the best solution?

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).

Unlock AZ-104 to see the answer

You've previewed enough free AZ-104 questions. Unlock AZ-104 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full AZ-104 PracticeBrowse All AZ-104 Questions