System Info Batch File


  1. Posts : 1,416
    Windows 10 Pro x64
       #1

    Hi Everyone,

    I thought it may be interesting to get input from others regarding this batch file.
    I was hoping for suggestions about:
    • Information to add to the report.
    • Ways of making the current code more efficient.
    • Etc...

    A while back i decided to write a script at work that would create a log of computer information and email us with the results, this was to assist with users complaining of slow performance etc.

    The user would run a batch file from a central location and we would get an email with information about the OS, Model, Process Usage, CPU Usage, Local Disk Space, Mapped Network Drives, User Profile and installed software etc...

    The code is attached as it's too long to post here.

    I know there's a lot of software that can manage this kind of information and i'm sure powershell would be more powerful but it was a side project that seems to have become a very useful tool for our team.

    I'm sure there is some 'dirty' code in there and information that could be obtained more efficiently.

    Regards,
    Jamie
    System Info Batch File Attached Files
      My Computer


  2. Posts : 983
    Windows 7/64 Professional
       #2

    Using email to me is not a good idea. Many like me want to keep our email as private as possible.
    I should not have to give my email address out in order to help other members.
      My Computers


  3. Posts : 1,416
    Windows 10 Pro x64
    Thread Starter
       #3

    Layback Bear, post: 8219, member: 23 said:
    Using email to me is not a good idea. Many like me want to keep our email as private as possible.
    I should not have to give my email address out in order to help other members.
    Sorry, not sure what you mean... it doesn't ask for your email?

    The only email part in there is the part that would email us (tech support) with the generated log.

    EDIT:
    Just to add... we provide Tech Support to internal customers (I work in IT within the business we provide support too so email privacy would be irrelevant in this scenario as no email address is hidden from me )
      My Computer


  4. Posts : 983
    Windows 7/64 Professional
       #4

    Maybe I miss understand this from post #1

    email us with the results
    Please explain.
      My Computers


  5. Posts : 1,416
    Windows 10 Pro x64
    Thread Starter
       #5

    In the batch file there is a line that says
    Code:
    ::This is where our email command would go to send file:"\\2020helpdesk\SystemInfo_Logs\%callref%-%computername%.txt"
    This is a line of code that automatically sends us (tech support) an email via SMTP with the contents of the generated report about the computer.

    I always convert my batch files to .exe's so they can't see any of the code inside (not easily anyway) but like i said, we provide internal support so email address's wouldn't be a problem.

    If someone wanted to take this code they would need to decide how they want to receive the information back.

    Regards,
    Jamie
      My Computer


  6. Posts : 983
    Windows 7/64 Professional
       #6

    Who would manage such email. Receiving and distributing such emails could be a full time job.
    Would all the information in the email be posted in the forum for all to see and work with.
    As you can tell I know little about such things by the questions I ask.
      My Computers


  7. Posts : 1,416
    Windows 10 Pro x64
    Thread Starter
       #7

    I posted the script for advise on improving/adding to the code, it isn't intended for 'Forum' support but I'm sure it could be implemented in some kind of way if someone wanted to although DOS probably isn't the best language for it :)

    I work for a company with 500+ employees so they have a dedicated IT team (that's where i work).

    When a user has an issue they call IT for support and this script is one of the many tools we have at our disposals to collect information about computers/issues when people call to report an issue, a ticket about that issue is raised with information about the problem and we work to resolve the issue.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:12.
Find Us




Windows 10 Forums