Network Storage Protocols Discussions

Highlighted

Retrieve all volumes with CIFS on them

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!

Check out the KB!
Knowledge Base
All Community Forums