Check a particular .dll files in system32 folder

(imported topic written by wingguy91)

i would like to install a program to our PCs. but only to install to PCs that do not have the particular .dll in system32 folder.

is it ok if i Relevance as below.

not exist file “C:\Windows\System32\btpanui.dll”

it should return me those PCs that do not have this DLL am i correct?

(imported comment written by jessewk)

yes, but I would use the system folder inspector instead:

not exists file “btpanui.dll” of system folder