With your approach, I am able to get the UNC drive information for a local drive. But, I still cannot get the UNC drive information for one that is not local.
On the server, I have a local drive that can be accessed with the UNC approach such as:
\\1.1.1.1\f$
I replaced the IP address with a fake one.
But, on that server, there is a remote UNC drive known as:
\\1.1.1.1\share
That one, I cannot get anything.
That drive is from a Tera station. There is no OS on that one. I believe this is why it doesn't work. However, when going into the 1.1.1.1 server, I can get the disk free space of the Tera station which shows 988 GB. Could it be that on devices not being into a OS, that such an amount of free space cannot be handled?