Display IP and system serial number CLI

From Michael's Information Zone
Jump to navigation Jump to search

I needed to create a bootable flash drive that could be shipped to remote offices for re-imaging laptops. The problem was that at that time I did not have a remote method for auto-enrolling computers into AD. The plan was to ship a CloneZilla flash drive with instructions to users. Then when the computer booted it would auto loginto a local user and show the IP/SN of the computer. At that point the user could call helpdesk and we could remote in to make the final modifications.
Below is the batch script that runs at log in.

ipconfig | find "IPv4"
wmic bios get serialnumber
pause

This is installed as a log-in script using task-scheduler.