Batch script to get system information and software installed

There could be a chance you may want to get the information such as the windows patch level, the software installed and the device model, instead of trying to get screenshot from one page to another page, you can get all these using the batch script below, to run wmic you will need to be a local admin user.


@echo off
echo "Attempt to get the system info and software installed info of %computername%...."
echo "Hostname: %computername%" >> %computername%.txt
echo %date% %time% >> %computername%.txt
echo #####Software installed##### >> %computername%.txt
wmic /APPEND:%CD%\%computername%.txt product get name,version,description
echo #####System infomation include patch levels##### >> %computername%.txt
systeminfo >> %computername%.txt
echo "Done....save in %CD%\%computername%.txt"

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s