Search word documents having datasource

Welcome Forums General PowerShell Q&A Search word documents having datasource

Viewing 1 reply thread
  • Author
    • #196778
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member


      I’m new here.

      Is there a way to list all word documents, within a nested folder structure, having a (mailmerge) datasource ?

      Thank you.

    • #196799
      Topics: 15
      Replies: 1761
      Points: 3,167
      Helping Hand
      Rank: Community Hero

      Welcome to Yes. It’s going to be two basic parts:

      • Find all Word files – look at Get-ChildItem with the Include and Recurse parameters. =
      • Find Word files with a MailMerge source – This is a bit more painful as you will need to open each document and check for the mailmerge source. Here is an example

      There are some Powershell Modules and even ways to open Word as XML, but this should give you a starting point to put a script together.

Viewing 1 reply thread
  • The topic ‘Search word documents having datasource’ is closed to new replies.