Updating Windows Services File

(imported topic written by SystemAdmin)

I am having an issue writing a relevance to update the services file … c:\windows\system32\drivers\etc\Services

if the below relevance = true … file size != 21802 and modification time != Thu, 02 Jun 2011 16:51:45 -0400

What is wierd is that in the Relevance Debugger … no issues test device is relevant… but when it is updated to console my devices are not relevant including same test device.

Relevance:

((name of operating system starts with “Win7”) and platform id of operating system != 3) and ((size of file “\System32\drivers\etc\services” of windows folder as string != “21802”) and (modification time of file “\System32\drivers\etc\services” of windows folder != “Thu, 02 Jun 2011 16:51:45 -0400” as time))

(imported comment written by SystemAdmin)

In the Fixlet Debugger, have you configured it to evaluate using the local client evaluator? If not, you should to see how the Relevance evaluates using the local client.

Unfortunately, I do not have a Win7 VM with which I can test this for you.

(imported comment written by SystemAdmin)

try something like this, and put the SHA1 of your test file in there

name of operating system contains "Win7" and sha1 of file "\System32\drivers\etc\services"  of windows folder != "a6c322bf661502b33ab802de67022dd21ac87d9a"

(imported comment written by SystemAdmin)

Appreciate it … let me look into the above