_NBCOMPNAME — Returns the computer’s NetBIOS name.
_NBCOMPNAME
Syntax: %_NBCOMPNAME
%_NBCOMPNAME
This variable will generally return the same value as the COMPUTERNAME environment variable.
COMPUTERNAME
echo %_nbcompname