Network Storage Protocols Discussions

Retrieve all volumes with CIFS on them

darraghos

Hi guys,

I'm creating a little C# program to do the following:

 

  1. Alert when the ~snapshot is enabled on a CIFS volume

 

Obviously, I need to get a list of all volumes that have CIFS shares against them. Whats the best way of doing this? Currently, the only way I can see to do this is:

 

  1. List all CIFS shares
  2. Keep track of the volumes they reside on
  3. Parse out all unique volumes

 

Any better ways to do this e.g. seems very inefficient!

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public