runkbot 4 0 works fine when run locally on the pc. Verified plenty of hdd space and no disk errors (those have caused agent issues in the past).

From k1, force inventory and the normal check-in does not work. And the last inventory will go up until I run runkbot again. I've looked all over the site trying different things.

My first go to, I try when things aren't working right:
amptools.exe host=k1100.host

Later I tried:
sc stop konea
sc start konea
MsiExec.exe /X{F66E9801-5F03-4ECD-A5BC-8678FAE8FBAA}
AMPTools.exe uninstall all

Anything else to try, let me know. If worst case, I have to set up a scheduled task on the local machine, does it really matter? This is the latest agent I believe, 8.0.152 and my K1 should be up to date as well.

(I since discovered this blog post and went through the various steps and thought I would update my post, with that info.)
  • I have 53 license seats open, not a licensing issue
  • inventory.xml is fine
  • agent services are good
  • amp.conf is configured correctly
  • Two pem cert files are present
  • I went ahead and explicitly opened ports 80,443,139,445 on TCP. Haven't really found how to confirm this. So any ideas on firming this one down, let me know. If I run a netstat -a I do not see them listed.
  • HDD space is good
  • No WMI issues. Inventory works fine when triggered via runkbot 4 0.

3 Comments   [ - ] Hide Comments


  • We are having the same issue with our K1000. Here is the original thread from another user that we had responded to: http://www.itninja.com/question/inventory-falling-off-k1000

    We currently have an open ticket with support and expect to have webex with them either today or Monday.
    • Cool. Mine is just one machine, so I hadn't bothered with a ticket yet.
  • We have 20K agents and this was a big problem for us because we have an education environment where staff and students take their computers home. The User Downloads and Run Now scripts always failed because the devices had the home IP addresses and didn't refresh when they came back to our network. We configured a Scheduled task to run a runkbot 4 0 with a trigger on the new network connection event viewer entry. While it does make a little more traffic, it greatly improved our end user support and use of the User Portal.

    We also have a scheduled task that checks the amp.conf file and if it lost our settings, it repairs it by copying a good amp.conf file that we saved in a different folder. That tasks runs 3 times a week. Our agent connections went from about 1K to over 4K

    I can share the tasks if anyone is interested
    • 20,000 agents!! That's impressive, wow.
  • Bethski: Loved to see the task for the AMP.CONF. We've had the same problem in the past. Random trash get's added to our AMP.CONFs and they won't check in. 7.20 agents.
Please log in to comment

Answer this question or Comment on this question for clarity


This looks like a Powershell issue

Assuming the agent was completely removed and reinstalled, the fact that runkbot 4 0 works, kind of rules out networking or AV issues.

I bet powershell is corrupted or not enabled on that device.
Try to open CMD and from there type "powershell" and hit enter, let me know if you see any errors....

Answered 12/08/2017 by: Channeler
Fifth Degree Black Belt

  • You're on the right track. It says powershell is not recognized. I verified that powershell is installed. $PSVersionTable.PSVersion = 5 (major) 1 (minor) 15063 (build) 726 (revision). So I thought it was a PATH issue, but when I check environment variables. The same thing listed on my other machines is listed on the problem machine. (%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\). What should I do next? Uninstall PS and reinstall? (IMAGE: https://i.imgur.com/mg5tQRS.png)
    • I have seen troublesome PS issues like the one your picture describes...
      When it's not the path is gotta be something hard to Troublshoot...

      Check if by any chance we are not restricting PS via GPO.
      Also check in Windows Features, see if Powershell is enabled there.

      Unfortunately, the agents are not going to auto-checkin on their own, because they're doing the same, calling PS via BAT scripts executed in CMD.
      • Check the path statement; Once I added the semi-colon back into the path after (%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\) - then I ran a 'Force Inventory'. After few minutes; I ran another Force Inventory at Device Detail and it worked as it should.
Please log in to comment