Create a batch file that gathers network information from a remote host. Use your VMs for...

90.2K

Verified Solution

Question

Programming

Create a batch file that gathers network information from aremote host. Use your VMs for this

Answer & Explanation Solved by verified expert
3.8 Ratings (569 Votes)
echo off if osWindowsNT goto WINNT goto NOCON WINNT echo Using a Windows NT based system echo computername REM set variables set system set manufacturer set model set serialnumber set osname set sp set cstring set ustring set pstring REM Get Computer Name IP Address echo echo Type in a Computer Name or IP Address and press Enter set computercomputername set p computerPress Enter For computername echo REM Check If Remote Machine IF NOT computer computername goto remote goto start REMOTE REM Its A Remote Machine set cstringnodecomputer USERNAME REM Get Username echo echo Type in a Username    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students