Executing Scripts via Microsoft Defender XDR Live Response
Short answer
Select Advanced features, upload Script1.ps1 to the library, then run the putfile command during the live response session.
Question
You have a Microsoft 365 E5 subscription that contains a Windows 11 device named Device1. Device1 is onboarded to Microsoft Defender XDR.
You perform the following actions:
• Create a PowerShell script named Script1.ps1.
• From the Microsoft Defender XDR portal, establish a live response session to Device1.
You need to ensure that you can run Script1.ps1 on Device1.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Key Takeaways
The question tests knowledge of the specific workflow for deploying scripts via Live Response, emphasizing that scripts must be uploaded to the library before being transferred to endpoints using the putfile command.
Learn the correct sequence to run PowerShell scripts on Windows 11 devices using Microsoft Defender XDR Live Response: enable Advanced features, upload to the library, and use the putfile command.
Common mistake: Learners often confuse the `putfile` command with other file transfer methods or attempt to execute scripts directly without first uploading them to the library. Forgetting to enable 'Advanced features' prevents access to the library entirely.
Expert Analysis
The correct sequence for executing a script via Live Response in Microsoft Defender XDR is: From the Microsoft Defender XDR portal, select Advanced features → From the Microsoft Defender XDR portal, upload Script1.ps1 to the library → During the live response session, run the putfile command.
First, administrators must enable the capability to manage scripts by navigating to Advanced features within the Microsoft Defender XDR portal. This step activates the Script Library functionality, which is required to store and retrieve custom PowerShell scripts remotely. Without enabling this feature, the library cannot be accessed or modified.
Second, the script file (Script1.ps1) must be uploaded to the Script Library. This centralizes the script management and makes it available for deployment across onboarded devices. The upload occurs through the portal interface before initiating any remote session.
Third, during an active Live Response session, the administrator uses the putfile command to transfer the script from the library to the target device (Device1). The putfile command specifically handles the retrieval of files from the library to the endpoint’s temporary directory, allowing immediate execution. Alternative commands like library or direct execution without transfer are incorrect because they do not facilitate the file transfer mechanism required for remote script deployment.
Comments correctly identify this three-step workflow: enabling Advanced features, uploading to the library, and using putfile during the session. Some confusion arises with other commands, but putfile is the definitive action for transferring library scripts to endpoints.
Official Reference
This link opens the official vendor documentation in a new tab.
Exam Strategy
When dealing with Live Response questions, always verify if the script needs to be pre-uploaded to the library. Remember that 'Advanced features' must be enabled to access script management tools. Use the putfile command specifically for retrieving scripts from the library to the endpoint during an active session.
Frequently Asked Questions
Why must I enable Advanced features before uploading scripts?
What is the difference between putfile and other commands in Live Response?
putfile retrieves files from the Script Library to the endpoint. Other commands may create new files or edit existing ones, but putfile is specifically designed for transferring pre-uploaded scripts.Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
8f991ac 👍 9Correct answer as below: - From the Microsoft Defender XDR portal, select Advanced features. - From the Microsoft Defender XDR portal, upload Script1.ps1 to the library. - During the live response session, run the putfile command.
-
Mush62 👍 2Ignore that it should be - From the Microsoft Defender XDR portal, select Advanced features. - From the Microsoft Defender XDR portal, upload Script1.ps1 to the library. - During the live response session, run the putfile command. You need to enable library uploads from the advance features before uploading the file
-
neogeek87 👍 1Correct Answer: Three Actions in Sequence From the Microsoft Defender XDR portal, select Advanced features. From the Microsoft Defender XDR portal, upload Script1.ps1 to the library. During the live response session, run the putfile command.
-
Mush62 👍 1From the Microsoft Defender XDR portal, upload Script1.ps1 to the library. During the live response session, run the library command. During the live response session, run the putfile command.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SC-200 Questions
Access 80 questions with complete answers and detailed explanations.
View Full SC-200 Practice Test →