DCSIMG
PowerShell,COM Automation - This blog has moved

This blog has moved

Browse by Tags

All Tags » PowerShell » COM Automation (RSS)
Sorry, but there are no more tags available to filter with.
Find all documents with "Track changes" using PowerShell
One of our customers was wandering if it is at all possible to find, using PowerShell, all documents in a specific folder that have "Track Changes" activated. This is what I came up with, and it works well: function FindTrackRevisions ([ string ] $path ) { $files = Get-ChildItem $path -Filter " *.doc " $results = @{}; $wa = New-Object -ComObject Word.Application $wa .Visible = $false $files | % { $filePath = $_ .FullName $wd = $wa .Documents.Add( $filePath ) Write-Host "...