Quantcast
Channel: High Availability (Clustering) forum
Viewing all articles
Browse latest Browse all 5654

export-csv won't work with get-cluster filtering

$
0
0

$clustername = get-clustergroup ; foreach ($cn in $clustername) { Get-ClusterResource | where-object {$_.OwnerGroup.name -eq $cn} | export-csv -path s:\duct\traces\cat.txt}

the above powershell command creates a file with 0 data.

if I remove the "-path s:\duct\traces\cat.txt" and allow the powershell to prompt me for the file name (s:\duck\traces\cat.txt) I will get the file with data.

as i'm starting to play with powershell and it's capability i'm at a loss what would cause the *query*. any insight?


Viewing all articles
Browse latest Browse all 5654

Trending Articles



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