Windows · 2022年12月30日 0

批处理查询Windows电脑和显示器序列号

@echo off
pushd %~dp0
echo computer info
@REM 批处理查询计算机SN
wmic bios get serialnumber
echo monitor info
@REM 调用powershell查询显示器SN
powershell.exe -command ^
  "& {set-executionpolicy Remotesigned -Scope Process; .'./monitorview.ps1' }"
popd
pause