Powershell 2.0
I am looking to extract the Exchanges-specific entries from the output of running the "vssadmin list writers" command, which gives you the results for all the VSS writers on the system and doesn't let you filter by writer name. What is the best way to extract these specific lines from the output? I really just want the writer name, the state, and the last error. The end goal will be to compile these entries for each mailbox server so that we can quickly check the VSS state in case of any issues with backups.
Writer name: 'Microsoft Exchange Writer'
Writer Id: {**GUID**}
Writer Instance Id: {**GUID**}
State: [1] Stable
Last error: No error
Writer name: 'Microsoft Exchange Replica Writer'
Writer Id: {**GUID**}
Writer Instance Id: {**GUID**}
State: [1] Stable
Last error: No error
I am looking to extract the Exchanges-specific entries from the output of running the "vssadmin list writers" command, which gives you the results for all the VSS writers on the system and doesn't let you filter by writer name. What is the best way to extract these specific lines from the output? I really just want the writer name, the state, and the last error. The end goal will be to compile these entries for each mailbox server so that we can quickly check the VSS state in case of any issues with backups.
Writer name: 'Microsoft Exchange Writer'
Writer Id: {**GUID**}
Writer Instance Id: {**GUID**}
State: [1] Stable
Last error: No error
Writer name: 'Microsoft Exchange Replica Writer'
Writer Id: {**GUID**}
Writer Instance Id: {**GUID**}
State: [1] Stable
Last error: No error