检测电脑是否有UUID的批处理程序
@echo off set uuid= wmic csproduct get uuid 2> nul | findstr /r '[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}' > nul if %errorlevel% equ 0 ( for /f %%a in ('wmic csproduct get uuid ^| findstr /r '[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}'') do set uuid=%%a echo UUID: %uuid% ) else ( echo This computer does not have a UUID. )
pause
原文地址: https://www.cveoy.top/t/topic/nJgr 著作权归作者所有。请勿转载和采集!