- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-24-2025 07:39 AM
Hello,
Is it possible to retrieve a file which is only accessible in user's context? I have an incident which user opened a file from a network mapped drive. That drive might not be accessible by anyone except for the user.
Which user context is used when we initiate File retrieval via:
1. Cortex console or an agent script
2. Live terminal
Thank you very much
02-24-2025 10:28 AM
Yes, retrieving a file that is only accessible in the user’s context (such as a network-mapped drive) using Cortex XDR can be challenging because the XDR agent runs as SYSTEM, which may not have access to the user’s mapped drives. However, there are workarounds to retrieve the file:
1. Use Live Terminal (Best for Interactive Access)
If the user is online, the best method is to use Live Terminal to access the user's session and retrieve the file.
Steps:
Go to Cortex XDR → Response → Live Terminal
Select the affected endpoint.
Run the following PowerShell command to check the user’s network drives:
powershell
Get-PSDrive -PSProvider FileSystem
This will list the user’s mapped network drives (e.g., Z:\).
Copy the file from the network drive to a local path that XDR can access:
powershell
Copy-Item "Z:\path\to\file.txt" -Destination "C:\Temp\file.txt"
Use File Fetch (see Method 2) to retrieve the file from C:\Temp
02-24-2025 10:37 AM
Thanks for your response. Two questions regarding live terminal:
1. I checked live terminal before, it's also running under SYSTEM. But I'll check this again to make sure.
2. Assuming this statement is true, how can we automate this retrieval? The endpoint might not be online at the moment.
BR,
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!