Quick view of computer parameter configuration information
Save the code directly to bat and execute it directly.
Mainly includes the following computer details:
System information, Displaycard
Mother Board, Hard Disk, Network Card
Software information, USB information
Users, FileShare information
Here is the code:
@echo offcolor 57title hardsoft viewermode con cols=67 lines=42setlocal enabledelayedexpansionecho Prepare for View ... de l/f "%temp%\temp.txt" 2>nuldxdiag/t%temp%\temp.txtdel/f "%computername%.txt" 2>nulecho Start Hardware Viewer. . Echo System Information: >>%computername%.txt:systemrem This must 30s if EXIST "%temp%\temp.txt" (for/f "token s=1,2,* delims=: "%%a in (' FINDSTR/C:" Machine Name: "/C:" Operating system: "/C:" System Model: "/C:" Processor: "/C:" Memory: "/C:" Card name: "/C:" Display Memory: ""%temp%\temp.txt "') Do (set/a tee+=1 if!tee! = = 1 echo Computer Name =%%b>>%computername%.txt if!tee! = = 2 echo OS Type =%%b>>%computername%.txt if!tee! = = 3 echo System Model =%%b>>%computername%.txt if!tee! = = 4 echo CPU Model =%%b>>%computername%.txt if!tee! = = 5 echo RAM Size =%%b>>%computername%.txt if!tee! = = 6 Echo.>>%computerName%.txt if!tee! = = 6 Echo displaycard: >>%computername%.txt if!tee! = = 6 echo Display Card =%%b>>%computername%.txt if!tee! = = 7 Echo displaymemory =%%b>>%computername%.txt)) Else (ping/n 2 127.1>nul goto system) Set Tee =0echo.>>%computername%.txtecho mother board:>>%computername%.txtfor/f "tokens=1,* delims=="%%a in (' WMIC baseboard get Manufacturer^,product^,version^,serialnumber/value ') do (set/a tee+=1 if "!tee!" = = "3" Echo Manufacturer =%%b>>%computername%.txt if "!tee!" = = "4" Echo Motherboard model=%%b>>%co Mputername%.txt) set tee=0) Echo.>>%computername%.txtecho hard Disk: >>%computername%.txtfor/f "skip=2 Tokens=* "%%a in (' WMIC diskdrive get Model ^,size/value ') does (echo. %%a>>%computername%.txt) Set tee=0 echo.>>%computername%.txtecho Network card:>>%computername%. txtfor/f "tokens=2* delims==:"%%a in (' ipconfig/all^|find/i "Description" ^| Findstr/v "Microsoft" ^| findstr/v "tunneling" ') do (set name=%%a echo netcard Model =%%a>>%computername%.txt) for/f "tokens=2* delims==: "%%a in (' ipconfig/all^|find/i" Physical Address "^| findstr/v "00-00-00-00" ') do (set name=%%a echo MAC Address =%%a>>%computername%.txt) for/f "tokens=2 * delims==: "%%a in (' ipconfig/all^|find/i" description "^| Findstr/v "Microsoft" ^| findstr/v "tunneling" ') do (set name=%%a echo netcard Model =%%a>>%computername%.txt) for/f "tokens=2 * delims==: "%%a in (' ipconfig/all^|find/i" Physical Address "^| findstr/v "00-00-00-00" ') do (set name=%%a echo MAC Address =%%a>>%computername%.txt) ver|find/i "wi Ndows XP ">nul 2>nul&&goto xp| | Goto win7:xpfor/f "tokens=2* delims==:"%%a in (' ipconfig/all^|find/i ' IP address ') do (set name=%%a echo IP Address =%%a>>%computername%.txt) echo Start software Viewer for XP...ECHO.>>%computername%.txtecho software information:>>%computername%.txtfor/f "tokens=7 delims=\"%%i in (' Reg query ' HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall "^| Findstr/v "KB" 2^>nul ') does (for/f "skip=4 tokens=2*"%%a in (' Reg query ' Hklm\software\microsoft\windows\currentvers Ion\uninstall\%%i "/V DisplayName 2^>nul ') do (echo%%b>>%computername%.txt)) for/f" tokens=2 delims=\ " X in (' reg query HKU ') does (for/f "tokens=8 delims=\"%%a in (' Reg query ' Hku\%%x\software\microsoft\windows\currentvers Ion\uninstall "2^>nul") Do (for/f "skip=4 tokens=2*"%%i in (' Reg query ' Hku\%%x\software\microsoft\windows\curre Ntversion\uninstall\%%a "/V" DisplayName "2^>nul") do (Echo%%j>>%computername%.txt)) echo.>> %computername%.txtif exist%windir%\system32\ccm\ccmexec.exe echo "SMS Client has been installed,please uninstall" if exist%windir%\system32\ccm\ccmexec.exe echo "SMS Client has been installed,please uninstall">>%computername%.txt Echo ==================================================================echo USB Information:echo.>>%computername%.txtecho USB information:>>%computername%.txtfor/f "skip=4 tokens=2*" %%a in (' reg query ' Hklm\system\currentcontrolset\services\usbstor "/V" start "2^>nul ') do (if"%%b "= =" 0x4 "Echo USB is Close if "%%b" = = "0x3" Echo USB is Open,please Tag It. If "%%b" = = "0x4" Echo USB is Close>>%computername%.txt if "%%b" = = "0x3" Echo USB is open,please Tag it.> >%computername%.txt) goto last:win7for/f "tokens=2* delims==:"%%a in (' ipconfig/all^|find/i "IPV4" ') do (set n ame=%%a echo IP address =%%a>>%computername%.txt) echo Start software Viewer for WIN7/8 ... rem for + WIN7EC Ho.>>%computername%.txtecho software information:>>%computername%.txtfor/f "tokens=7 delims=\"%%i in (' Reg query "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" ^| Findstr/v "KB" 2^>nul' Does (for/f "skip=2 tokens=3* delims="%%a in (' Reg query ' HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall \%%i "/V DisplayName 2^>nul ') does (echo%%a%%b>>%computername%.txt)) for/f" Tokens=8 delims=\ "%%i in (' reg query ' Hklm\software\wow6432node\microsoft\windows\currentversion\uninstall "2^>nul ^| findstr/v" KB "2^> Nul ') Do (for/f "skip=2 tokens=3* delims="%%a in (' Reg query ' Hklm\software\wow6432node\microsoft\windows\currentv Ersion\uninstall\%%i "/V DisplayName 2^>nul ') do (echo%%a%%b>>%computername%.txt)) for/f" tokens=2 Delims=\ "%%x in (' reg query HKU ') does (for/f" tokens=8 delims=\ "%%a in (' Reg query ' Hku\%%x\software\microsoft\windows \currentversion\uninstall "2^>nul") Do (for/f "skip=2 tokens=2*"%%i in (' Reg query ' hku\%%x\software\microsoft\w Indows\currentversion\uninstall\%%a "/V" DisplayName "2^>nul") do (Echo%%j>>%computername%.txt))) for/f "tokens=2 delims=\"%%x in (' reg query HKU ') does (for/f "tokens=9 delims=\"%%a in (' Reg query ' Hku\%%x\software\wow6432node\microsoft\windo Ws\currentversion\uninstall "2^>nul") Do (for/f "skip=2 tokens=2*"%%i in (' Reg query ' hku\%%x\software\wow6432no De\microsoft\windows\currentversion\uninstall\%%a "/V" DisplayName "2^>nul") do (Echo%%j>>%computername%. TXT)) echo ==================================================================echo USB information:echo.>>%c Omputername%.txtecho USB information:>>%computername%.txtfor/f "skip=2 tokens=2*"%%a in (' Reg query ' HKLM\SYSTEM \currentcontrolset\services\usbstor "/V" start "2^>nul") Do (if "%%b" = = "0x4" echo USB is Close if "%%b" = = "0 X3 "Echo USB is Open,please Tag It. If "%%b" = = "0x4" Echo USB is Close>>%computername%.txt if "%%b" = = "0x3" Echo USB is open,please Tag it.> >%computername%.txt): Lastecho ==================================================================echo Admin users:echo.>>%computername%.txtecho admin users:>>%computername%.txtfor/f "skip=6 tokens=*"%%i in (' net localgroup Administrators ^| findstr/v "㏑" ^| findstr/v "Life" ^| findstr/v "command") do (Echo%%i EC Ho%%i>>%computername%.txt) echo Power Users:echo.>>%computername%.txtecho power Users:>>%computer name%.txtfor/f "Skip=6 tokens=*"%%i in (' net localgroup ' Power Users "^| findstr/v" ㏑ "^| findstr/v" Life "^| findstr/v "Command") do (echo%%i echo%%i>>%computername%.txt) echo ====================================== ============================echo fileshare Information:echo.>>%computername%.txtecho FileShare Information: >>%computername%.txtfor/f "Skip=4 tokens=*"%%i in (' net share 2^>nul ^| findstr/v "㏑" ^| findstr/v "life" ^| fin dstr/v "command") do (echo%%i echo%%i>>%computername%.txt) echo =========================viewer over==== ==========================net use \ \192.168.1.1 password/user:username 1>nul 2>nulcopy%computername%.txt \\192.168.1.1\HardFile$net use \ \ 192.168.1.1\ipc$/del 1>nul 2>nulpausestart%computername%.txt
The code originates from online collection, which only offers to share.
PC Configuration Parameters View Bat