Tekforums

Chat => Guides & Projects => Topic started by: Pete on May 25, 2011, 20:33:09 PM

Title: WTF.bat
Post by: Pete on May 25, 2011, 20:33:09 PM
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.
Title: Re: WTF.bat
Post by: Leon on May 26, 2011, 12:11:02 PM
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 :)
Title: Re: WTF.bat
Post by: XEntity on June 28, 2015, 14:24:18 PM
Do you have an updated link for this? :-)
Title: Re: WTF.bat
Post by: XEntity on July 31, 2015, 22:34:03 PM
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....

Code: [Select]
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