News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

WTF.bat

Started by Pete, May 25, 2011, 20:33:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pete

I wrote this a while ago because I got lazy.

Batch file to list:

1) MS License keys
2) mapped drives
3) Installed software
4) Printers

It puts all this info in a txt document, and has saved a few arguments & necks lately so I thought i'd share.

Download:
http://www.megaupload.com/?d=EXFM4VRG


It's designed for instances where you need to flatten a PC and start again. I'm still adding to it, next I want it to copy standard user profile stuff and any psts too, should be quick enough to add on when I've got 5mins.

It relies on pstools, ProduKey, and a few other bits, all in the zip file.
I know sh*ts bad right now with all that starving bullsh*t and the dust storms and we are running out of french fries and burrito coverings.

Leon

Bah I spent a while last month making something similar (including creatnig new folders and backing up data) - would of saved me a bit of time :)
.::. www.leonslost.co.uk .::. Media Server Guide .::.

PC: i5 760 .::.  GA-P55-UD3 .::. 8GB Corsair 'Dominator' DDR3 .::. 1GB EVGA GTX 460 SC .::. Win7 Ultimate  .::. Dell 24" Ultra Sharp
Netbook: HP Mini 311c-1101sa .::. 3GB Ram .::. ION Hack .::. Win7 Ultimate
Server: HP MicroServer .::. 3GB Ram .::. 4x 2TB Storage .::. 512MB nVidia 210 .::. Win7 Ultimate, XBMC 11 (Aeon NOX), Sick Beard & Couch Potato
Phone: SE Xperia Mini Pro .::. MiniCMSandwich Lite (Android ICS Custom) .::. OC @ 1.6Ghz
Tablet: Asus Transformer TF101 w/ Dock .::. EOS JB Nightlies (Android JB Custom) .::. OC @ 1.6Ghz

XEntity

Do you have an updated link for this? :-)

XEntity

In case anyone is interested, I ended up creating my own script, code below, if you want it to pull licence keys then you need to download produkey and put it in the same folder as the BAT file..

Take the below paste in to note pad, save as Info.bat..

If you would prefer I'll start another thread.. if anyone wants any other features and I find time, let me know and I'll add....


Echo off
mkdir Reports
cls
:: Get Date
set DATETIME=%DATE:/=-%
echo Running, please wait this may take several minutes

(
echo.
echo ################## GENERAL INFO                          ##################
echo.
echo TIME STAMP:        %DATE% %TIME%
echo SYSTEM NAME:       %computername%
echo OPERATING SYSTEM:  %OS%
echo USERNAME:          %username%
echo DOMAIN:            %USERDOMAIN%
echo USER PROFILE:      %USERPROFILE%
echo SYSTEM ROOT:       %SystemRoot%
echo.
echo ################## SYSTEM - PRINTERS                     ##################
echo.
wmic printer get name |more
echo.
echo ################## SYSTEM -INSTALLED SOFTWARE            ##################
echo.
wmic product get name,version |more
echo.
echo ################## NETWORK - SHARED FOLDERS              ##################
echo.
NET SHARE
echo.
echo ################## NETWORK - COMPUTERS VISIBLE           ##################
echo.
NET VIEW
echo.
echo ################## NETWORK - INFO                        ##################
echo.
IPCONFIG /ALL
echo.
echo ################## NETWORK - PING GOOGLE.COM             ##################
echo.
PING GOOGLE.COM
echo.
echo ################## NETWORK - TRACERT GOOGLE.COM          ##################
echo.
TRACERT GOOGLE.COM

echo.
) > reports\%computername%-%DATETIME%-SYSTEMINFO.txt

:: GET LICENCE KEYS
produkey.exe /stabular reports\%computername%-%DATETIME%-LICENCEKEYS.txt

echo.
echo All done!
echo.
Pause