Hi guys,
I'm creating a little C# program to do the following:
- 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:
- List all CIFS shares
- Keep track of the volumes they reside on
- Parse out all unique volumes
Any better ways to do this e.g. seems very inefficient!