Check status of a VSS Writer
- 
 G'day Lads and Lasses, I'm attempting, key word there, to write a Powershell script that checks the state of the Exchange Information Store VSS Writer and emails me if it's in a failed state. I've cobbled together (think Frankenstein) a bunch of code that checks the state of the specified writer and is supposed to send an email if . However, I'd like to try to extend it. I 'borrowed' this line from a site to day to display if the Microsoft Exchange Writer is in a state other than no error (it displays the name of the specified writer. Not overly useful as is): $Checkup = vssadmin list writers | Select-String -Context 0,4 'Writer_Name' | ? {$_.Context.PostContext[2].Trim() -ne "last error: no error"} | Select Line | % {$_.Line.tostring().Split("'")[1]}Example Result Writer name: 'WMI Writer' 
 Writer Id: {numb-ers-and-lett-ers}
 Writer Instance Id: {numb-ers-and-lett-ers}
 State: [1] Stable
 Last error: No errorHow do I get it to pull out the following? - writer name
- State
- Last Error
 
- 
 No takers, eh? 
- 
 I did not even see the post somehow. I can try and look at it later. 

