Useful collection of CMDs and Handy BATs

wmic bios get serialnumber
wmic product get name
driverquery
systeminfo
tree
wmic path SoftwareLicensingService get OA3XOriginalProductKey
ver
wmic memorychip get speed 
wmic path win32_VideoController get name
del /q /f /s %temp%\*
cleanmgr
systemreset --factoryreset
nslookup
ipconfig/all
ARP -A
TRACERT
NETSTAT -AN

Retrieve WIFI passwords

netsh wlan show profiles

then you search the specific NETWORK_NAME

netsh wlan show profile name="NETWORK_NAME" key=clear

Clone Website:

Download http://gnuwin32.sourceforge.net/packa…
After downloading the exe file we have to move this exe file into C Drive -: Windows -: System32
open the terminal and type this command

wget --mirror --convert-links --wait=2 https://thesitedomain

Saved WI-FI Networks batch script

View a list of all Wi-Fi network profiles along with detailed information such as SSID name, network type, authentication, cipher, security key, and key content is a useful task.

@echo off
SETLOCAL ENABLEDELAYEDEXPANSION

for /f "tokens=2 delims=:" %%a in ('netsh wlan show profiles ^| find "All User Profile"') do (
    set "name=%%a"
    set "name=!name:~1!"
    echo ==========================================
    echo SSID Name: !name!
    for /f "tokens=2 delims=:" %%b in ('netsh wlan show profile name="!name!" ^| findstr "Network type Authentication Cipher Security key"') do (
        set "info=%%b"
        set "info=!info:~1!"
        echo !info!
    )
    netsh wlan show profile name="!name!" key=clear | findstr "Key Content"
)

echo ==========================================
echo Done.
pause

How to create this batch file:

Open Notepad: Click on the Start menu, type “Notepad”, and open it.

Write the Batch Script: Copy and paste the script above into Notepad

Save the Batch File:

  • In Notepad, go to File -> Save As.
  • Choose a location to save, such as your desktop.
  • In the “File name” field, type WiFiDetails.bat.
  • Change the “Save as type” field to “All Files (.)”.
  • Click Save.

Run the Batch File:

  • Locate WiFiDetails.bat where you saved it.
  • Right-click on it and select “Run as administrator”. This might be necessary to ensure it can access all the information.

When you run this script, it will display details for each Wi-Fi network stored on your computer. Remember, the “Key Content” will only be displayed if the computer is currently authorized to connect to that network and the password is stored.

System information’s batch script.

When you run this script, it will write a file called systemInfo.txt in the Documents folder. The file shows your System Information and details for each Wi-Fi network stored on your computer. Remember, the “Key Content” will only be displayed if the computer is currently authorized to connect to that network and the password is stored.

@echo off
setlocal enabledelayedexpansion
set "docPath=%USERPROFILE%\Documents\systemInfo.txt"

echo Gathering system information...
echo System Information: > %docPath%
systeminfo >> %docPath%

echo CPU Information: >> %docPath%
wmic cpu get name,NumberOfCores,NumberOfLogicalProcessors /format:list >> %docPath%

echo Memory (RAM) Information: >> %docPath%
wmic MEMORYCHIP get BankLabel, Capacity, Speed >> %docPath%

echo Disk Drives Information: >> %docPath%
wmic diskdrive get model,size >> %docPath%

echo Graphics Card Information: >> %docPath%
wmic path win32_videocontroller get name >> %docPath%

echo Motherboard Information: >> %docPath%
wmic baseboard get product,Manufacturer,version,serialnumber >> %docPath%

echo Installed Programs: >> %docPath%
wmic product get name,version >> %docPath%

echo Windows Serial Key: >> %docPath%
for /f "tokens=2 delims='='" %%a in ('wmic path SoftwareLicensingService get OA3xOriginalProductKey') do (
    echo %%a >> %docPath%
)

echo Network Information >> %docPath%
echo Network Adapters: >> %docPath%
ipconfig /all >> %docPath%

echo Active Network Connections: >> %docPath%
netstat -an >> %docPath%

for /f "tokens=2 delims=:" %%a in ('netsh wlan show profiles ^| find "All User Profile"') do (
    set "name=%%a"
    set "name=!name:~1!"
    echo ========================================== >> %docPath%
    echo SSID Name: !name! >> %docPath%
    for /f "tokens=2 delims=:" %%b in ('netsh wlan show profile name="!name!" ^| findstr "Network type Authentication Cipher Security key"') do (
        set "info=%%b"
        set "info=!info:~1!"
        echo !info! >> %docPath%
    )
    netsh wlan show profile name="!name!" key=clear | findstr "Key Content" >> %docPath%
)
echo Information gathering complete. Check %docPath% for details.

How to create this batch file:

Open Notepad: Click on the Start menu, type “Notepad”, and open it.

Write the Batch Script: Copy and paste the script above into Notepad

Save the Batch File:

  • In Notepad, go to File -> Save As.
  • Choose a location to save, such as your desktop.
  • In the “File name” field, type SystemInfo.bat.
  • Change the “Save as type” field to “All Files (.)”.
  • Click Save.

Run the Batch File:

  • Locate SystemInfo.bat where you saved it.
  • Right-click on it and select “Run as administrator”. This might be necessary to ensure it can access all the information.