if
(
not exists keys whose
(
exists value whose
(
name of it contains "WakeOnMagicPacket" AND it as string as integer != 1
)
of keys of it OR exists value whose
(
name of it contains "WakeOnPattern" AND it as string as integer != 1
)
of keys of it OR exists value "EnablePME" whose
(
it as string as integer != 1
)
of keys of it
)
of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class" of native registry
)
then "Enabled" else "Disabled"
if(not exists keys whose(exists value whose(name of it contains "WakeOnMagicPacket" AND it as string as integer != 1) of keys of it OR exists value whose(name of it contains "WakeOnPattern" AND it as string as integer != 1) of keys of it OR exists value "EnablePME" whose(it as string as integer != 1) of keys of it) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class" of native registry) then "Enabled" else "Disabled"