Get-WMIObject Win32_LogicalDisk -filter "DriveType = 3" -ComputerName $computer -ErrorAction SilentlyContinue | %{Get-ChildItem ('\\' + $computer + '\' + ($_.DeviceID).remove(1) + '$\*') -File *.doc,*.docx -Recurse -Force -ErrorAction SilentlyContinue | ?{($_.fullname -notmatch "Windows") -and ($_.fullname -notmatch "Program Files") -and ($_.fullname -notmatch "Program Files (x86)")} | Add-Content $env:TEMP\$computer.txt
Thank!