I have a PS script that runs every morning to generate a report like the table below.
<style>BODY{background-color:white;}TABLE{border-width: 2px;border-style: solid;border-color: black;border-collapse: collapse;}TH{border-width: 2px;padding: 10px;border-style: solid;border-color: black;background-color:#808080}TD{border-width: 2px;padding: 10px;border-style: solid;border-color: black}TR{background-color:#ADD8E6}TR.redirected{background-color:#F00}</style>| Name | Owner | State | Redirected |
|---|---|---|---|
| CSV2 | Hyper-V_Host1 | Online | False |
| CSV3 | Hyper-V_Host1 | Online | False |
| CSV4 | Hyper-V_Host5 | Online | True |
I want to be able to tell if the CSV is redirected because a backup is in progress or if the CSV is just stuck in redirected mode. In the failover cluster manager console. The status will display as "Online (Backup in progress, Redirected access)" if a backup is still running. Is there s way to determine this in powershell? I have been unable to find if there is a property that will display this.
Thanks!