Use the following Vbs script to get the file name, manufacturer and version of a .Dll (or any other file for that matter) file from a remote machine.
In the example below we are getting the Name, Version and Manufacturer for the C:\Windows\System32\Wbem\WbemCore.Dll.
Note: In the script below notice that the path noted above has not one but two forward slashes (\\) to return the absolute path for the file you are querying.
Vbs Script:
strComputer = InputBox ("Enter Machine Name")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colFiles = objWMIService.ExecQuery _
("Select * from CIM_Datafile Where name = 'C:\\Windows\\System32\\Wbem\\WbemCore.Dll'")
For Each objFile in colFiles
Wscript.Echo "Name: " & objFile.Name
Wscript.Echo "Version: " & objFile.Version
Wscript.Echo "Manufacturer: " & objFile.Manufacturer
Next
No Comments