I'm trying to read a file on a remote computer however, ports for file sharing are blocked. Actually most porst are closed and only have access to execute WMI and Registry queries.
Is it possible to read or pull data from a remote server using WMI or the registry?
The WMI doesn't allow read the content of any local or remote fil. Instead provides a set classes to list, copy, rename, compress and get info about files and directories. These classes are
CIM_DataFile
,CIM_Directory
andWin32_Directory
. If you want to see a sample of how use these classes check this articleManipulating local/remote files and folders using Delphi and WMI
which I wrote some time ago.