Skip to content

Instantly share code, notes, and snippets.

@john-clark
Last active December 15, 2015 09:39
Show Gist options
  • Save john-clark/5239965 to your computer and use it in GitHub Desktop.
Save john-clark/5239965 to your computer and use it in GitHub Desktop.
@for %i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do @%i: 2>nul && set/pz=%i <nul
@echo off
mode con: cols=120 lines=50
color a
echo WMIC SysInfo
echo ------------------------------------------------------------------
echo[
wmic cpu get systemname
wmic csproduct get name, vendor
wmic bios list brief
wmic cpu get caption, name
wmic baseboard list brief
echo Operating System
wmic os list brief
echo Local Accounts that are ENABLED
wmic USERACCOUNT WHERE "Disabled=0 AND LocalAccount=1" GET name
wmic NICCONFIG WHERE IPEnabled=true GET IPAddress
wmic share list brief
echo[
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment