How do I get the available FreeSpace from a drive from a remote computer?
问题 I'm trying to get the FreeSpace from the D drive of a remote computer. Towards the end, I'm getting a ManagementException was unhandled by user code "Not Found" This is the line that gives me the error: fs = m["FreeSpace"].ToString(); Here's my code: ConnectionOptions oConn = new ConnectionOptions(); oConn.Username = "username"; oConn.Password = "password"; oConn.Authority = "ntlmdomain:XXX"; ManagementScope scope = new ManagementScope("\\\\Remote_Computer\\root\\CIMV2", oConn); scope.Connect