Exists relevance not working

Hi,

I have a fixlet that modifies the registry. To be relevant, the host PC has to have this file on the file system.

C:\Windows\System32\winexit.scr

My relevance is: "exists file “C:\Windows\System32\winexit.scr”

This evaluates to False, though the file is actually there. Is there anything else I can try?

Thanks

If this is a 64 bit machine then you’ll want:

exists x64 file "C:\Windows\System32\winexit.scr"
4 Likes

Awesome! That worked. Thanks! Why would similar relevance, without the x64, like this work on other fixlets?

For reference, please see https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Tivoli%20Endpoint%20Manager/page/Using%20WOW64%20Redirection

1 Like

Great information. Thanks!

You need to do the following to check both the x64 system location as well as the x86 system location:

exists (x64 files "C:\Windows\System32\winexit.scr";files "C:\Windows\System32\winexit.scr")
2 Likes

Or

exists file "winexit.scr" of native system folder

I’d prefer this check because it will also give a false in the case that winexit.scr was mistakenly placed in c:\windows\syswow64 instead of \windows\system32 (perhaps because a prior BigFix action to put the file in system32 did not account for the 32-bit redirection)

4 Likes

I forget about native system folder.

This would be redundant, but you can do something like this:

files of (native system folders; system folders; system x64 folders)

If you just care if something exists at all, and your not overly concerned about where:

files "winexit.scr" of (native system folders; system folders; system x64 folders)

So many ways to do the same thing. It is a blessing and a curse.

Thanks everyone! I appreciate all of the responses.