This tweak should be only for Windows 10 I see but it makes no sense : defender is inbuilt in w8.1 too. Anyway the path to the key windows defender is different but I found it