February 17th, 2015

PowerTip: Use PowerShell to List Word Autocorrect Entries

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to list autocorrect entries for Microsoft Word.

Hey, Scripting Guy! Question Microsoft Word keeps messing up what I type, and I suspect it could be an autocorrect issue. How can I use
           Windows PowerShell to list all the entries in Microsoft Word autocorrect?

Hey, Scripting Guy! Answer Use the New-Object cmdlet to create an instance of the Word.Application object. Look at autocorrect
           and Entries, then pipe the results to the Format-Table cmdlet, and look at Name and Value properties:

(New-Object -ComObject word.application).autocorrect.entries | ft name, value

  

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.