cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
_JasonB_
Engaged Sweeper
Had been trying to get a very simple custom action using nbtstat.exe to work. Surprisingly I kept receiving an error message that the file could not be found.

I modified the custom action specifying the exact path to the nbtstat executable and verified that it was there, however the custom action still said that the file could not be found.

After some searching I found this article and it not only explained the issue very clearly but provided a fix for the problem. I hope this helps someone else.

http://scottiestech.info/2009/06/20/calling-a-32-bit-system-command-from-a-script-in-x64-windows/

2 REPLIES 2
john_e_wagner
Engaged Sweeper II
Adding nbtstat.exe to the actions folder did not resolve the issue. I created a seperate nbtstat-64 action with the command:
cmd.exe /K "%windir%/sysnative/nbtstat.exe -a {computer}"
A little klunky, but it works.
JW
Hemoco
Lansweeper Alumni
another workaround: copy nbtstat.exe to the actions folder.