Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

powershell determine if a CSV is "Online (Redirected access)" or "Online (Backup in progress, Redirected access)"

$
0
0

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>
NameOwnerStateRedirected
CSV2Hyper-V_Host1OnlineFalse
CSV3Hyper-V_Host1OnlineFalse
CSV4Hyper-V_Host5OnlineTrue

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!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>