Jump to content

Pulling PC Info


digip
 Share

Recommended Posts

I was wondering what kind of info you could gather easily from a machine without the use of third party programs or anything that might trip up anti-virus software in the process. WMI lets you pull down a lot of info that coudl come in handy for different uses, such as identifying all users, their SID's, drivers, services, start up programs, etc. Might not seem usefull on the surface, but I'm hoping someone can expand on this and add some other built in scripting such as vbs or wscript/cscript stuff to grab more valuble info, like reg keys for all know startup locations and whats sitting in them, and things such as that.

This formats all the output into html files. While its kind of ugly to look at, its better than flat text files, and this is mainly the default html format from wmic. You can output in xml for formatting in xls styles, but I don't have the patience to sit and write something to format the info into readable html output or even doc and pdf file creation, although it would be nice to have a pdf of all info in consecutive pages for printing.

link in case formatting is removed by forums: http://www.twistedpairrecords.com/digip/WMIC-PC-INFO.bat

cd \
mkdir WMIC-PC-INFO
cd WMIC-PC-INFO
wmic BIOS list full /format:htable > BIOS.html
wmic CSPRODUCT list full /format:htable > SM-BIOS.html
wmic CPU list full /format:htable > CPU-INFO.html
wmic COMPUTERSYSTEM list full /format:htable > COMPUTERSYSTEM.html
wmic BOOTCONFIG list full /format:htable > BOOTCONFIG.html
wmic BASEBOARD list full /format:htable > MOBO.html
wmic DISKDRIVE list /format:htable > DISK-DRIVES.html
wmic ENVIRONMENT list /format:htable > SYSTEM-ENV.html
wmic GROUP list /format:htable > GROUPS-SID.html
wmic USERACCOUNT list /format:htable > USERS-SID-STATUS.html
wmic SYSACCOUNT list full /format:htable > SYSACCOUNT-SECURITY-LIST.html
wmic SYSDRIVER list full /format:htable > SYSDRIVER-LIST.html
wmic STARTUP list full /format:htable > BASIC-STARTUP-LIST.html
wmic SHARE list full /format:htable > SHARES.html
wmic SERVICE list full /format:htable > SERVICES.html
wmic SERVER list full /format:htable > SERVER.html
wmic NIC list full /format:htable > NETWORK-ADAPTERS.html
wmic NICCONFIG list full /format:htable > NETWORK-ADAPTERS-DETAILED-INFO.html
wmic NETLOGIN list full /format:htable > NETLOGINS-INFO.html
wmic LOGICALDISK list full /format:htable > LOGICALDISK-INFO.html

echo "<html><body link='black' vlink='#666' bgcolor='white' style='color:white;font-family:arial; text-align:justify;overflow:scroll;'><div id='container' style='width:1400px; margin:0px;'><div id='menu' style='font-size:12px;float:left; width:220px;'><a href='BIOS.html' target='framed'>Bios-Info</a><br /><br /><a href='SM-BIOS.html' target='framed'>SMBios-Info</a><br /><br /><a href='BOOTCONFIG.html' target='framed'>Boot Config</a><br /><br /><a href='CPU-INFO.html' target='framed'>CPU-INFO</a><br /><br /><a href='COMPUTERSYSTEM.html' target='framed'>PC Info</a><br /><br /><a href='DISK-DRIVES.html' target='framed'>Disk Drives</a><br /><br /><a href='LOGICALDISK-INFO.html' target='framed'>Logical Disk Info</a><br /><br /><a href='SYSTEM-ENV.html' target='framed'>SYS Environment Info</a><br /><br /><a href='GROUPS-SID.html' target='framed'>GROUPS and SIDs Info</a><br /><br /><a href='USERS-SID-STATUS.html' target='framed'>Users, SIDs and Status Info</a><br /><br /><a href='SYSACCOUNT-SECURITY-LIST.html' target='framed'>SYS Security Accounts Info (Think file and folder permissions)</a><br /><br /><a href='SYSDRIVER-LIST.html' target='framed'>Driver List and Info</a><br /><br /><a href='BASIC-STARTUP-LIST.html' target='framed'>Basic Startup Programs Info</a><br /><br /><a href='SHARES.html' target='framed'>Shares Info (Requires Server, Computer Browser, Workstation and ICS  Services enabled)</a><br /><br /><a href='SERVICES.html' target='framed'>Services</a><br /><br /><a href='SERVER.html' target='framed'>Server Info (Requires Server, Computer Browser, Workstation and ICS  Services enabled)</a><br /><br /><a href='NETWORK-ADAPTERS.html' target='framed'>Network Adapters</a><br /><br /><a href='NETWORK-ADAPTERS-DETAILED-INFO.html' target='framed'>Network Adapters Details</a><br /><br /><a href='NETLOGINS-INFO.html' target='framed'>Network Logins</a><br /><br /></div><iframe name='framed' src='bios.html' style='width:1160px; height:600px; position:relative; padding-left:10px; float:left; overflow:scroll; border:0; left:5px;'>-iframe-</iframe></div></body></html>" > index.html

start index.html

usefull link: http://waynes-world-it.blogspot.com/2008/0...and-format.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...