1
Reply

C# - Is System.Management the only option to check remote/network disk space?

travis burgess

travis burgess

Aug 7 2007 8:49 AM
2.7k
Hi everyone, my name is Traz

I'm trying to write some C# code that will check for remote disk space on network shares. I have seen across the internet and MSDN that you can utilize the System.Management class and it's methods to perform this operation. I have been able to check a variety of computers disk space successfully but not local network shares due to "Access Denied." Unfortunately, I do not have the ability to check the WMI settings on these shares and if I did have that ability I'm not sure if I could be granted those permissions I need. So I'm wondering if there's an alternative to System.Management methods to check network share space. I have scoured around and have yet to turn up anything. Thank you, it is much appreciated.

Answers (1)