ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Check status of a VSS Writer

    Scheduled Pinned Locked Moved IT Discussion
    powershellexchangevss
    3 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nadnerBN
      nadnerB
      last edited by

      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 error

      How do I get it to pull out the following?

      • writer name
      • State
      • Last Error
      1 Reply Last reply Reply Quote 0
      • nadnerBN
        nadnerB
        last edited by

        No takers, eh?

        1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch
          last edited by

          I did not even see the post somehow. I can try and look at it later.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post