From monthly archives: November 2012

We are pleased to present below all posts archived in 'November 2012'. If you still can't find what you are looking for, try using the search box.

Timothy

PowerShell / WMI: Free Disk Space from a Cluster Shared Volume (CSV) in a Windows Failover Cluster

There are a great set of PowerShell cmdlets for Failover Clusters, but what if you just want some information about your Cluster Shared Volumes on a  remote computer without installing those cmdlets?  There’s an easy way with WMI.

Get-WmiObject -Impersonation Impersonate -Authentication PacketPrivacy -ComputerName "SERVERNAME" -Namespace "root\MSCluster" -class "MSCluster_DiskPartition" | where {$_.VolumeLabel -eq "VOLUMENAME"} | select -first 1 | select -Expand FreeSpace

In the above snippet, change SERVERNAME to one of the cluster nodes and VOLUMENAME to the volume label of the CSV you want to examine.  Of course, you don’t have to select a single volume if you want information from all the cluster volumes.  I did it this way because I only wanted to look a the CSV and not the quorum drive.  The above returns a single integer representing the free space for use later on in my script.

The impersonation and authentication settings are required for remote access but not local access.

Adapt the above to suit your needs. :-)

Recent Comments
  1. Re: RD Tabs: Increased Memory Consumption with 2012+ Servers and Error 3334
    Mano: Happy wednesday wishes images wednesday sms wednesday pictures Happy wednesday wishes happy wednesday...
  2. Re: RD Tabs: Increased Memory Consumption with 2012+ Servers and Error 3334
    Mano: Happy wednesday wishes images wednesday sms wednesday pictures Happy wednesday wishes happy wednesday...
  3. Re: RD Tabs: Increased Memory Consumption with 2012+ Servers and Error 3334
    Mano: Happy wednesday wishes images wednesday sms wednesday pictures Happy wednesday wishes happy wednesday...
  4. Re: RD Tabs: Increased Memory Consumption with 2012+ Servers and Error 3334
    Mano: Happy wednesday wishes images wednesday sms wednesday pictures Happy wednesday wishes happy wednesday...
  5. Re: RD Tabs: Increased Memory Consumption with 2012+ Servers and Error 3334
    Mano: Happy wednesday wishes images wednesday sms wednesday pictures Happy wednesday wishes happy wednesday...
  6. Re: In VB.Net, sending output to the console from a Windows "Forms" application
    clochardM33: Glorious
  7. Re: DPM 2016 + SQL 2016 and "An unexpected error occurred during the installation" ID: 4387
    Andreas Hagberg: Edward, you are the man. It solved the problem right at the first try. Many thanks for the post.
  8. Re: DPM 2016 + SQL 2016 and "An unexpected error occurred during the installation" ID: 4387
    Andreas Hagberg: Edward, you are the man. It solved the problem right at the first try. Many thanks for the post.
  9. Re: DPM 2016 + SQL 2016 and "An unexpected error occurred during the installation" ID: 4387
    Andreas Hagberg: Edward, you are the man. It solved the problem right at the first try. Many thanks for the post.
  10. Re: DPM 2016 + SQL 2016 and "An unexpected error occurred during the installation" ID: 4387
    Derek: Edward, great find. +1 on the fix... Thanks!!