{"id":1455,"date":"2020-08-04T08:50:56","date_gmt":"2020-08-04T13:50:56","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1455"},"modified":"2020-08-04T08:50:56","modified_gmt":"2020-08-04T13:50:56","slug":"install-kace-agent-remotely","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2020\/08\/install-kace-agent-remotely\/","title":{"rendered":"Install KACE Agent Remotely"},"content":{"rendered":"\n<p>KACE generally works best when installed as part of the initial setup process. If it&#8217;s included in the base image and that base image is rolled out to x number of devices,  you know that the KACE agent will eventually check-in with your appliance. Then you&#8217;ll have a complete inventory of workstations.<\/p>\n\n\n\n<p>Installed after-the-fact is when it gets a bit trickier. The preferred method is to have a GPO install it for you. This works fairly well if your users are 1) always connected to the network and 2) reboot from time to time and 3) the computers are in the correct OU (or the GPO is applied to the correct OU&#8230;). But this isn&#8217;t always the case &#8211; and even still there are instances in which the stars just don&#8217;t all align.<\/p>\n\n\n\n<p>Then there is Covid\/Remote work. Computer GPO and startup-based-User-GPOs just don&#8217;t work well with the current on-prem Domain Controllers and remote workforce. Ok, enough about this, let&#8217;s get onto how!<\/p>\n\n\n\n<p>Enter PSExec, the tried and true remote management tool. This assumes you have administrative permissions to access the remote system AND that the remote system is somehow connected to your network (via VPN).<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">Remotely Connect to workstation\n<code>psexec \\\\computername powershell.exe<\/code>\n<code>mkdir c:\\kace<\/code>\nCopy KACE Agent to the remote workstation\n<code>cp \\\\yourkaceservername\\client\\agent_provisioning\\windows_platform\\ampagent-9.1.204-x86.msi c:\\kace\\<\/code>\nRun the MSI quietly\n<code>cd c:\\kace<\/code>\n<code>msiexec.exe \/i ampagent-9.1.204-x86.msi host=fqdn.of.kace.server.tld nohooks=1 \/qn<\/code>\n<code>exit<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<p>If the computer is NOT running  a recent version of powershell &#8211; looking at <em>you<\/em> Windows 7 &#8211; you&#8217;ll have to replace powershell.exe with cmd.exe. And since cmd.exe doesn&#8217;t support UNC paths  you&#8217;ll have to use net use to mount the drives as a letter and then copy that way. Or just start > run > \\\\computername\\c$, and manually copy to the c:\\kace directory.<\/p>\n\n\n\n<p>Another way is via the Windows Admin Center (<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/manage\/windows-admin-center\/deploy\/install\" target=\"_blank\">https:\/\/docs.microsoft.com\/en-us\/windows-server\/manage\/windows-admin-center\/deploy\/install<\/a>), Add the computer with required credentials, then launch PowerShell on the left-side panel.<\/p>\n\n\n\n<p>I also found a few workstations that had a fully configured KACE agent installed but just refused to collect and send inventory information. In that case I ran a manual check:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>c:\\program files (x86)\\quest\\kace\\runkbot 1 0<\/code>\n<code>c:\\program files (x86)\\quest\\kace\\runkbot 4 0<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>KACE generally works best when installed as part of the initial setup process. If it&#8217;s included in the base image and that base image is rolled out to x number of devices, you know that the KACE agent will eventually check-in with your appliance. Then you&#8217;ll have a complete inventory of workstations. Installed after-the-fact is &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2020\/08\/install-kace-agent-remotely\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install KACE Agent Remotely<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/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],"tags":[],"class_list":["post-1455","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1455"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1455\/revisions"}],"predecessor-version":[{"id":1456,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1455\/revisions\/1456"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}