Batch Script to Collect Network Information
Posted: 27 May 2016 02:10
Hi
In order to troubleshoot a slow performing network, i need to create a batch script to obtain certain information from a users computer in order to analyze the cause further.. Unfortunately i have no experience with batch scripts, i have messed around with it but haven't been able to make it work as intended..
I need a script that does the following:
- Check if the path C:\NetworkScripts\ already exists
- If not it needs to create the folder "NetworkScripts" on the C:\ drive
- If the folder already exists it needs to collect the output of the following commands:
ipconfig /all
ping 8.8.8.8
Whether it saves them in one document or a seperate document for each command doesn't really matter, but the file name needs to be stamped with a date and time so that i can see the exact date and time the file was created, and so that the files doesn't overwrite itself everytime they run the script.
Does anyone know how to create this?
Thank you..
In order to troubleshoot a slow performing network, i need to create a batch script to obtain certain information from a users computer in order to analyze the cause further.. Unfortunately i have no experience with batch scripts, i have messed around with it but haven't been able to make it work as intended..
I need a script that does the following:
- Check if the path C:\NetworkScripts\ already exists
- If not it needs to create the folder "NetworkScripts" on the C:\ drive
- If the folder already exists it needs to collect the output of the following commands:
ipconfig /all
ping 8.8.8.8
Whether it saves them in one document or a seperate document for each command doesn't really matter, but the file name needs to be stamped with a date and time so that i can see the exact date and time the file was created, and so that the files doesn't overwrite itself everytime they run the script.
Does anyone know how to create this?
Thank you..