none
does file exist RRS feed

  • Question

  • I need to write a script to run against multiple servers to see if files below exist.

    30-114type.txt

    88225prop.docx

    One script I came up with is below but it only find only file then once the script is done searching the server I have to run another search for the second file. What is the easiest way to write a script to run manually on each server or to run from one system to connect to each server remotely to search all the drives that are found on the system? These files could be in any folder on the server which is why it is not an easy script to write. Your help would be appreciated.

    Get-ChildItem F:\data\* -recurse -filter  "30-114type.txt"} | select name 

    • Moved by Bill_Stewart Wednesday, December 12, 2018 9:31 PM Unanswerable drive-by question
    Thursday, September 6, 2018 12:00 AM

All replies