N
N
noname_shaman2016-07-13 11:39:49
PowerShell
noname_shaman, 2016-07-13 11:39:49

How to find Word documents on the LAN by content?

Good afternoon, the task is to find on the workstations of the domain to find documents in the doc, docx format, containing certain phrases, let's say "For official use". How can this be implemented with Powershell?
I only had enough knowledge for this:
import-module activedirectory
$searchbase = "OU=test,OU=Computers,OU=test,DC=test,DC=test,DC=ru"
$path = "c:\test\ie.csv " file to save results
$complist = get-adcomputer -filter * -searchbase $searchbase | where {$_.enabled -eq $true} |select -expand name
$complist | foreach {(test-connection -computername $_ -count 1)
if (test-connection -computername $_ -quiet)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question