Tag:Hardware information

  • Hardware_ Info. VBS VBS code for obtaining hardware information

    Time:2022-5-6

    Copy codeThe code is as follows: ‘Hardware_Info.vbs v1.1 BY: fastslz On Error Resume Next Dim WMI,WS,Fso Set WMI = GetObject(“Winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2”) Set cOSs = WMI.ExecQuery(“Select * from Win32_OperatingSystem”) For Each oOS in cOSs         OSx = oOS.Caption &” ” & oOS.CSDVersion  & vbCrLf NextBBX = “—————————-” — mainboard information “——-” — vbcrlf Set Board = WMI.InstancesOf(“Win32_BaseBoard”) […]

  • Using VBS to realize the script of acquiring computer hardware information_ Latest edition page 1 / 4

    Time:2020-11-16

    Code 1: ‘******************************************************************************************* ‘Version:3.1 ‘adjust the error handling method and output the error information to the logfile file to view the cause of the scan failure “If the” RPC server unavailable “error occurs, it is because the remote host is not powered on “If there is an error other than” RPC server unavailable “, it […]

  • An example of acquiring computer hardware information by VBS WMI

    Time:2020-7-21

    Set wmi=GetObject(“winmgmts:\\”) Set board=wmi.instancesof(“win32_baseboard”) For Each b In board msg=”main board:”&b.Manufacturer&vbTab&b.product&vbTab&Chr(13) Next msg=msg&Chr(13)&”—“+Chr(13) Set cpus=wmi.instancesof(“win32_processor”) MSG = MSG & “CPU characteristics:” Chr (13)For Each cpu In cpus msg=msg+cpu.deviceid&vbTab&cpu.name&Chr(13) _ &vbtab&cpu.SocketDesignation&vbtab&cpu.CurrentClockSpeed&”MHz”&vbtab&cpu.l2cachesize&”Kb_L2″&Chr(13) Next msg=msg&Chr(13)&”—“+Chr(13) Set mem=wmi.instancesof(“win32_physicalmemory”) MSG = MSG & “memory capacity:” Chr (13)For Each    m In mem msg=msg&m.tag&space(10)&m.capacity&+Chr(13) Next Set mem=wmi.instancesof(“win32_computersystem”) For Each m In mem MSG = MSG & “total memory:” round ((m.totalphysicalmemory / 1024 ^ 2), 2) & “m” + Chr (13)Next msg=msg&Chr(13)&”—“+Chr(13) Set display=wmi.instancesof(“Win32_videocontroller”) MSG = […]

  • Viewing Hard Disk and Memory/CPU Information by Wmic Command under DOS (Viewing Hardware Information with Windows Command)

    Time:2019-10-13

    How to view hardware information with commands in Windows system and how to view hard disk and memory/CPU information with DOS commands? The most direct way is: start run CMD opens the command prompt, and input systeminfo to execute under this window, you can see almost all the system information you want to know, even […]

  • VBS Code for Hardware_Info.vbs to Get Hardware Information

    Time:2019-9-4

    Copy codeThe code is as follows: ‘Hardware_Info.vbs v1.1 BY: fastslzOn Error Resume NextDim WMI,WS,FsoSet WMI = GetObject(“Winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2”)Set cOSs = WMI.ExecQuery(“Select * from Win32_OperatingSystem”)For Each oOS in cOSs        OSx = oOS.Caption &” ” & oOS.CSDVersion  & vbCrLfNextBBx=”——— motherboard information——-” & vbCrLfSet Board = WMI.InstancesOf(“Win32_BaseBoard”)Set Bios = WMI.InstancesOf(“Win32_Bios”)For Each oBoard In BoardBBx = BBx _& “Main Board […]

  • Bat code for displaying system and hardware information

    Time:2019-4-17

    DOS command for displaying system information, batch processing for displaying hardware information using batch processing It depends on how you need to view it. 1. CMD window view 2. Program window view 3. Text Viewing Method 1. CMD window view: @echo off systeminfo dxdiag /dontskip /whql:off /t systeminfo1.txt&&more systeminfo1.txt pause Method 2. Program window view: […]