Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Find Title of Foreground Word Document

$
0
0

Summary: Use Windows PowerShell to find the title of the foreground Word document.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find the title of the Word document that is currently in the foreground when 
           I have several documents open?

Hey, Scripting Guy! Answer The Get-Process cmdlet with the MainWindowTitle property will list the title of the Word document.
           This example presents the main window title and the start time of the application:

Get-Process winword | select starttime, MainWindowTitle


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>