{"id":273,"date":"2008-04-26T11:00:59","date_gmt":"2008-04-26T09:00:59","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=273"},"modified":"2010-09-01T12:30:40","modified_gmt":"2010-09-01T10:30:40","slug":"check-registry-value","status":"publish","type":"post","link":"https:\/\/contoso.se\/blog\/?p=273","title":{"rendered":"Check Registry Value"},"content":{"rendered":"<p>I have seen a lot of questions and discussions about monitoring registry values. You can do this with a\u00c2\u00a0script. I have written a script that reads a binary value out of the registry and check if the value is the same as the script says it should be, if not it will generate a local event, that Ops Mgr or MOM can pickup and generate an alert on. You can download the script <a href=\"http:\/\/www.contoso.se\/files\/check_reg.rar\">here<\/a>. You can download the script here. If you instead want to store the value in a textfile, you can see a lot of examples of that <a href=\"http:\/\/www.activexperts.com\/activmonitor\/windowsmanagement\/adminscripts\/other\/textfiles\/#ReadTextFileArray.htm\">here<\/a>.<\/p>\n<p>For the registry reading part there are more examples <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/aa394600(VS.85).aspx\">here<\/a>, for example how to read other\u00c2\u00a0registry object types.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have seen a lot of questions and discussions about monitoring registry values. You can do this with a\u00c2\u00a0script. I have written a script that reads a binary value out of the registry and check if the value is the same as the script says it should be, if not it will generate a local &hellip; <a href=\"https:\/\/contoso.se\/blog\/?p=273\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[13,19],"tags":[],"_links":{"self":[{"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/273"}],"collection":[{"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273"}],"version-history":[{"count":1,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":1779,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions\/1779"}],"wp:attachment":[{"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}