Query Details
Use Case: The hosts file located at C:\Windows\System32\drivers\etc\hosts is utilized for DNS resolution. Alterations made to this file have the capability to reroute network traffic or prevent software updates from occurring.
Query:
FileInfo('c:\windows\system32\drivers\etc\hosts')
| project Path, FileName, SizeBytes, LastModifiedDateTime, AttributesThe query retrieves information about the hosts file located at C:\Windows\System32\drivers\etc\hosts. It includes details such as the file path, name, size, last modified date, and attributes.

Ugur Koc
Released: February 4, 2024
Tables
Keywords
Operators