# Define the file name to search for$filename = "test.txt" # You can update the file name here.# Get all drivers on computer$drives = Get-PSDrive | Where-Object { $_.Provider -match 'FileSystem' }# Search for file in all drives$searchResults = Get-ChildItem -Path $drives.Root -Filter $filename -Recurse -ErrorAction SilentlyContinue# Check if the file existsif ($searchResults) {# Display the full path of the found fileWrite-Host "File '$filename' found in:"$searchResults | ForEach-Object { Write-Host $_.FullName }} else {# If file not foundWrite-Host "File '$filename' not found."}