{"id":814,"date":"2020-03-02T20:32:33","date_gmt":"2020-03-03T04:32:33","guid":{"rendered":"https:\/\/angrysysadmins.tech\/?p=814"},"modified":"2020-03-02T20:32:33","modified_gmt":"2020-03-03T04:32:33","slug":"ossec-how-to-install-the-windows-agent","status":"publish","type":"post","link":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/","title":{"rendered":"OSSEC: How to Install the Windows Agent"},"content":{"rendered":"<p>Get the windows binary from atomicorp.<\/p>\n<pre>https:\/\/updates.atomicorp.com\/channels\/ossec\/windows\/<\/pre>\n<p>At the time of writing, the latest is 3.6.0. Download and install the exe. During the installation, you will get an error. Ignore it.<\/p>\n<p>&nbsp;<\/p>\n<p>Next, we need to download the libpcre2-8-0.dll from the git-sdk-64 Github page in mingw32\/bin\/libpcre2-8-0.dll and stick it in the osscec-agent folder at C:\\Program Files (x86)\\ossec-agent\\.<\/p>\n<pre>https:\/\/github.com\/git-for-windows\/git-sdk-64\/blob\/master\/mingw32\/bin\/libpcre2-8-0.dll<\/pre>\n<p>&nbsp;<\/p>\n<p>In the ossec-agent folder, we need to open an admin command prompt and run:<\/p>\n<pre>ossec-agent.exe install-service<\/pre>\n<p>&nbsp;<\/p>\n<p>Next, we need to get your unique client ID. On your OSSEC server, add a new client and then extract the key. To do this, run:<\/p>\n<pre>sudo \/var\/ossec\/bin\/manage_agents<\/pre>\n<p>&nbsp;<\/p>\n<p>Lastly, in the ossec-agent folder on windows open win32-ui and fill out the information. After that, hit save and start the service. On your server, run the following command to see if your agent is connected.<\/p>\n<pre>sudo \/var\/ossec\/bin\/agent_control -lc<\/pre>\n<p>If you see your agent, you did it! if you didn&#8217;t, restart the control service and check the firewall.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Get the windows binary from atomicorp. https:\/\/updates.atomicorp.com\/channels\/ossec\/windows\/ At the time of writing, the latest is 3.6.0. Download and install the exe. During the installation, you will get an error. Ignore it. &nbsp; Next, we need to download the libpcre2-8-0.dll from the git-sdk-64 Github page in mingw32\/bin\/libpcre2-8-0.dll and stick it in the osscec-agent folder at C:\\Program <br \/><a class=\"read-more-button\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,191,190,3],"tags":[6,192,5],"coauthors":[39],"class_list":["post-814","post","type-post","status-publish","format-standard","hentry","category-linux","category-ossec","category-security","category-windows","tag-linux","tag-ossec","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OSSEC: How to Install the Windows Agent - Angry Sysadmins<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OSSEC: How to Install the Windows Agent - Angry Sysadmins\" \/>\n<meta property=\"og:description\" content=\"Get the windows binary from atomicorp. https:\/\/updates.atomicorp.com\/channels\/ossec\/windows\/ At the time of writing, the latest is 3.6.0. Download and install the exe. During the installation, you will get an error. Ignore it. &nbsp; Next, we need to download the libpcre2-8-0.dll from the git-sdk-64 Github page in mingw32\/bin\/libpcre2-8-0.dll and stick it in the osscec-agent folder at C:Program Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/\" \/>\n<meta property=\"og:site_name\" content=\"Angry Sysadmins\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-03T04:32:33+00:00\" \/>\n<meta name=\"author\" content=\"Ryan Parker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ryan Parker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/\"},\"author\":{\"name\":\"Ryan Parker\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\"},\"headline\":\"OSSEC: How to Install the Windows Agent\",\"datePublished\":\"2020-03-03T04:32:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/\"},\"wordCount\":174,\"commentCount\":0,\"keywords\":[\"Linux\",\"ossec\",\"Windows\"],\"articleSection\":[\"Linux\",\"OSSEC\",\"Security\",\"Windows\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/\",\"name\":\"OSSEC: How to Install the Windows Agent - Angry Sysadmins\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\"},\"datePublished\":\"2020-03-03T04:32:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2020\\\/03\\\/grassyloki\\\/ossec-how-to-install-the-windows-agent\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/angrysysadmins.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OSSEC: How to Install the Windows Agent\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/\",\"name\":\"Angry Sysadmins\",\"description\":\"A site full of angry sysadmins here to vent and help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/angrysysadmins.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/651321cd35645fb6a4d8a75b7bc7c199\",\"name\":\"Ryan Parker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g664d0e05248e51cb1d71b3f66c6f929d\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g\",\"caption\":\"Ryan Parker\"},\"description\":\"Professionally im a Infrastructure Security Specialist. I current maintain a homelab with about 3TB of RAM, 240+ TB of storage, tons of CPU cores, and 100gbit networking backbone in the garage running up my electricity bill.\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/author\\\/grassyloki\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OSSEC: How to Install the Windows Agent - Angry Sysadmins","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/","og_locale":"en_US","og_type":"article","og_title":"OSSEC: How to Install the Windows Agent - Angry Sysadmins","og_description":"Get the windows binary from atomicorp. https:\/\/updates.atomicorp.com\/channels\/ossec\/windows\/ At the time of writing, the latest is 3.6.0. Download and install the exe. During the installation, you will get an error. Ignore it. &nbsp; Next, we need to download the libpcre2-8-0.dll from the git-sdk-64 Github page in mingw32\/bin\/libpcre2-8-0.dll and stick it in the osscec-agent folder at C:Program Read More &raquo;","og_url":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/","og_site_name":"Angry Sysadmins","article_published_time":"2020-03-03T04:32:33+00:00","author":"Ryan Parker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ryan Parker","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/#article","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/"},"author":{"name":"Ryan Parker","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199"},"headline":"OSSEC: How to Install the Windows Agent","datePublished":"2020-03-03T04:32:33+00:00","mainEntityOfPage":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/"},"wordCount":174,"commentCount":0,"keywords":["Linux","ossec","Windows"],"articleSection":["Linux","OSSEC","Security","Windows"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/","url":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/","name":"OSSEC: How to Install the Windows Agent - Angry Sysadmins","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/#website"},"datePublished":"2020-03-03T04:32:33+00:00","author":{"@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199"},"breadcrumb":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/angrysysadmins.tech\/index.php\/2020\/03\/grassyloki\/ossec-how-to-install-the-windows-agent\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/angrysysadmins.tech\/"},{"@type":"ListItem","position":2,"name":"OSSEC: How to Install the Windows Agent"}]},{"@type":"WebSite","@id":"https:\/\/angrysysadmins.tech\/#website","url":"https:\/\/angrysysadmins.tech\/","name":"Angry Sysadmins","description":"A site full of angry sysadmins here to vent and help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/angrysysadmins.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/651321cd35645fb6a4d8a75b7bc7c199","name":"Ryan Parker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g664d0e05248e51cb1d71b3f66c6f929d","url":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc12b1a02765c8017062ee6f41eb34a7b14575bcd8acd7da40e176fe8f12b10f?s=96&d=mm&r=g","caption":"Ryan Parker"},"description":"Professionally im a Infrastructure Security Specialist. I current maintain a homelab with about 3TB of RAM, 240+ TB of storage, tons of CPU cores, and 100gbit networking backbone in the garage running up my electricity bill.","url":"https:\/\/angrysysadmins.tech\/index.php\/author\/grassyloki\/"}]}},"_links":{"self":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/comments?post=814"}],"version-history":[{"count":7,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/814\/revisions"}],"predecessor-version":[{"id":830,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/814\/revisions\/830"}],"wp:attachment":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/media?parent=814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/categories?post=814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/tags?post=814"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/coauthors?post=814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}