Network and Storage Protocols

Retrieve all volumes with CIFS on them

darraghos
2,154 Views

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!

0 REPLIES 0
Public