This script is a simple .bat script to list current licenses. This is a very low-tech alternative to the Where have all the licenses gone? application; it pops up a listing in a notepad window for review.
This script assumes that a current version of lmutil.exe is copied to the same folder as the .bat script. Alternatively you could edit the script to point to the lmutil.exe in the License Manager install.
:: lmstatus.bat
:: Report complete license manager status
:: Usage: lmstatus {license server}
::
:: Curtis Price, cprice@usgs.gov, 09/08/2009 Original coding
:: cprice 03/07/2011 hide activations from output (find /v)
:: cprice 07/28/2016 set up HERE variable to run from anywhere
::
:: Edit the script to set LMHOST to your license server
@echo off
set LMHOST=%1
if "%1" == "" set LMHOST=arcgis.lic.xxx.edu
echo Checking licenses on %LMHOST% ...
set fn=%TEMP%\ESRILicenseUse.txt
echo %fn% > "%fn%"
echo. >> "%fn%"
set HERE=%~d0%~p0
"%HERE%\lmutil.exe" lmstat -a -c @%LMHOST% | find /v "ACTIVATION" >> %fn%
start /b notepad "%fn%"