Application Delivery Management
Application Modernization & Connectivity
IT Operations Management
CyberRes
set ucount=1
set reason=%1
if %reason%.==. set reason=None
for /f "tokens=*" %%G in ('wmic ComputerSystem Get UserName ^| Find /c "\"') do (set ucount==%%G)
if %ucount% == 0 shutdown /s /t 5 /c %reason%