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?
Aram
November 4, 2015, 5:20pm
4
1 Like
Great information. Thanks!
jgstew
November 4, 2015, 7:10pm
6
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
jgstew
November 6, 2015, 4:30am
8
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.
jasonrw
November 12, 2015, 1:52pm
9
Thanks everyone! I appreciate all of the responses.