Skip to content

Instantly share code, notes, and snippets.

@maciakl
Created March 11, 2015 03:04
Show Gist options
  • Save maciakl/64747ed4984085c4c0ac to your computer and use it in GitHub Desktop.
Save maciakl/64747ed4984085c4c0ac to your computer and use it in GitHub Desktop.
Windows batch script to find vendor tag / serial number (eg. Dell Service Tag), vendor name, model name and installed OS on the current machine. All the info is dumped into info.txt file on the Desktop.
@echo off
rem This script will attempt to find this systems Dell Service Tag
rem The tag will be recorded in info.txt on the desktop
mode 15,1
title [~]
set FILE="%USERPROFILE%\Desktop\info.txt"
wmic bios get serialnumber >%FILE%
wmic csproduct get vendor >>%FILE%
wmic csproduct get name >>%FILE%
wmic os get caption >>%FILE%
start notepad %FILE%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment