locked
Looking for a Script to Gather Server Info RRS feed

  • Question

  • Hi, I'm wondering if it's possible to create a script that would Gather the following info from multiple servers at once (from a txt file) and generates a table with these. ??

    Server name | Service Name | Status | Service Start Mode | Server Uptime | Last Reboot

    Thanks

    Tuesday, June 30, 2020 2:19 AM

All replies

    • Proposed as answer by Vector BCO Tuesday, June 30, 2020 4:44 PM
    Tuesday, June 30, 2020 2:47 AM
  • Hi,
    The information you have provided is so little that we can only give you some suggestions.
    If your computer has joined a domain, then we can obtain the data you want through commands like GET-ADCOMPUTER, and finally export through the EXPORT-CSV command. 
    For the command to work properly, we recommend that you use this command or script on the domain controller.
    Please let us know if you would like further assistance.
    Best wishes,
    Young Yang

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, June 30, 2020 6:29 AM
  • Hi,
    The information you have provided is so little that we can only give you some suggestions.
    If your computer has joined a domain, then we can obtain the data you want through commands like GET-ADCOMPUTER, and finally export through the EXPORT-CSV command. 
    For the command to work properly, we recommend that you use this command or script on the domain controller.
    Please let us know if you would like further assistance.
    Best wishes,
    Young Yang

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Please read the request carefully.  The user is asking for "service" information and he/she has the server names in a text file.

    The original answer is the best answer for the user as the user has no knowledge of PowerShell.  Pointing the user in the wrong direction is not helpful.

    You guys from CSG are notorious for failing to understand simple questions.  Please take more time to analyze the question before guessing at an answer.


    \_(ツ)_/

    Tuesday, June 30, 2020 6:58 AM
  • Be cautious about getting the "Server Uptime". If "Fast Startup" is enabled on the machine the "uptime" includes the time in hibernation (i.e., from the last time the machine was shutdown "cold").

    --- Rich Matheisen MCSE&I, Exchange Ex-MVP (16 years)

    Tuesday, June 30, 2020 2:56 PM