_NBCOMPNAME — Returns the computer’s NetBIOS name.

Syntax:
%_NBCOMPNAME

This variable will generally return the same value as the COMPUTERNAME environment variable.


echo %_nbcompname