Find the Bios version of all machines

Posted on 2007-08-11
Last Modified: 2010-05-19

Is there a way to find the Bios version of all machines in a file.

Question by:bsharath
    1 Comment
    LVL 14

    Accepted Solution

    :: ================
    :: ================
    :: * To run this script you must have domain administrators rights.
    :: * This script require "Computers.txt" file on C: drive root from where it will pick computer names.
    :: * Successful run will generate "biosinfo.htm" on C: drive root.
    :: * Copy and Paste following script into notepad and save it with any name having .bat extension.
    :: Batch Script Start

    @Echo Off
    SETLOCAL EnableDelayedExpansion

    IF NOT EXIST C:\Computers.txt Goto ShowErr
    FOR %%R IN (C:\Computers.txt) Do IF %%~zR EQU 0 Goto ShowErr
    IF EXIST C:\biosinfo.htm DEL /F /Q C:\biosinfo.htm

    FOR /F %%c IN ('Type Computers.txt') Do (
        Echo Processing: %%c
          PING -n 1 -w 1000 %%c|Find /I "TTL" >NUL
          IF NOT ErrorLevel 1 (
                SET Qry=wmic /NODE:"%%c" bios get Description,Manufacturer,Name,SMBIOSBIOSVersion,SMBIOSMajorVersion,SMBIOSMinorVersion,ReleaseDate  /format:hform
                !Qry! >>C:\biosinfo.htm
          )ELSE (Echo %%c: Not able to connect )

    Goto EndScript
    Echo "C:\Computers.txt" file does not exist or file is empty!
    :: Batch Script End

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
    This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
    This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now