I've created a script that calls NMAP to ping a range of hostnames (supplied by a list), from those results, it checks for the devices with network connectivity.
From the devices that are active, the script call a MSDOS bacth file, which runs a few checks (checking for a specific process). After that, the script checks those results, and runs nbtstat -a [ip address] against those machines that were not running this process (from the original list).
For some of the machines that nbtstat is targetted at, I receive the HSCRYPT error.

The actual message is 8369 pixels wide. In the output file I get "##ERR## - Code : 32".
Below is the part of the script causing (reporting) the error.
Code: Select all
label>EditFileUnknownService
IfFileExists>UNKNOWNSTATE,,exitme
run>%CMD%
WriteLn>%UNKNOWNSTATE%,WriteResult,EndOfList
let>linenumber=1
wait>1
wwo>%CMD%
label>UnknownServiceloop
readln>%UNKNOWNSTATE%,%linenumber%,ReadResult
if>ReadResult=EndOfList
SetFocus>%CMD%
wait>0.2
send>exit
wait>0.2
press enter
goto>exitme
endif
BlockInput>1
setfocus>%CMD%
WriteLn>%UNKNOWNSTATE%,WriteResult,%ReadResult%
wait>0.1
send>nbtstat -a %ReadResult% >> %UNKNOWNSTATE%
wait>0.2
press enter
BlockInput>0
wait>2
add>linenumber,1
goto>UnknownServiceloop
label>exitme