Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Microsoft Certified: Azure Administrator Associate · Microsoft
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
You need the scripts to run automatically on newly created VMs without requiring a user to log in
Since the VMs are on‑premise, the right automation method is a GPO. A **startup script** runs as soon as the VM boots and contacts the domain controller, so it applies the initial configuration automatically. Option A only works during Sysprep imaging, which the question never mentions.
A (SetupComplete.cmd) only runs during Windows Setup on sysprepped images. It won’t trigger automatically when you simply create new VMs from a template unless you are using full image deployment with sysprep. Most MSP VM deployments don’t use this path unless you’re doing golden images. B (Logon scripts) only run when a user logs in, not at system boot. Not ideal for initial VM configuration and fails if no one logs in. C (Startup scripts via GPO) run as the computer account during system startup, before anyone logs in. This is the correct way to ensure newly joined VMs automatically run configuration scripts as soon as they come online. D (Put scripts in a VHD) just stores them; doesn’t run them.