I use this query to get some information on a drive:
SELECT FreeSpace,QuotasDisabled,VolumeName,VolumeSerialNumber
FROM Win32_LogicalDisk WHERE ProviderName="\\10.20.1.10\Data"
I obtain: "Invalid query".
This IP is valid. Basically, it is the IP of the server I am running the program on. Data is the share drive name. I always used this formula. What am I missing?