Announcement

Collapse
No announcement yet.

Search for a text in files in remote computers

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Search for a text in files in remote computers

    Hi Guys,

    I have a script somebody wrote in Powershell which works fine for searching for specific files, example all files in c:\log and named bas*.* in drive c:.

    Now, the second thing i want to do is search for specific text inside a set of files,
    example find me all computers which has files contains BAS text inside every file in c:\log.

    I know how to use find in linux to search for text on a specific computer but i don't know how to combine my script for my needs.

    Can anybody help? i don't mind changing to VBS or anything.

    Attached my current script, rename findfiles.txt to findfiles.ps1 to run.

    computernames.txt

    findfiles.txt

    Thanks
    Last edited by Retaliator; 1st June 2011, 07:39. Reason: Added explanation
    Thanks & Regards

    Retaliator

    MCSA/MCSE/CCNA
    Computer Science Graduate
Working...
X