Howdy,
I just experienced and could reproduce the following:
- I used a PowerShell Notebook inside VSCode to set content to the
$PROFILE.CurrentUserCurrentHostfile as for the dotnet interactive hostMicrosoft.dotnet-interactive_profile.ps1 - I was able to confirm that the file content is set
- Some seconds later the file content was GONE, the file had 0 byte file size
- Repeat the steps
- Same results
What would be reverting the content of the profile file?
The device is onboarded into Defender XDR.
PS: I think I have experienced this in the past on another machine but I thought I just forgot to set the file content, but now I am not sure.