Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7008317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:43:09+00:00 2026-05-27T21:43:09+00:00

Using the following code: # List all servers $servers = Get-QADComputer -OSName *server*,*hyper-v* #

  • 0

Using the following code:

   # List all servers
    $servers = Get-QADComputer -OSName *server*,*hyper-v*

    # Looping through the servers
    foreach ($server in $servers) {
    $i++
    $intSize = $intSize + $server.Length

    # Writing statusbar
    Write-Progress -activity "Scanning servers . . ." -status "Scanned: $i of $($servers.length) - Working on $($server.name)" -percentComplete (($i / $servers.length)  * 100)

    # Pinging the server in Powershell-way!
    if (Test-Connection -ComputerName $server.name -count 1 -Quiet ) {
        echo $server.name
    }
}
$respondingservers = $i - $notresponding

I am looping through my list of my 270 AD servers and counting who is online, running snmp, wmi etc. But what I would like to do is NOT specify what services to check for and get a complete list on every server. I’d like to output this to CSV so I can import it to Excel and sort on the name of the service etc. This of course means that it needs to be output in a sensible manner.

For example, if server X is running DNS SERVER and it ends up in column 4, all of the following DNS SERVER results should end up in the same column in my spreadsheet.

Am I asking for too much or can it be done? Right now I am not even able to output to CSV so any help would be gratefully appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:43:10+00:00Added an answer on May 27, 2026 at 9:43 pm

    You could export services information for your servers like this:

        # Pinging the server in Powershell-way!
        if (Test-Connection -ComputerName $server.name -count 1 -Quiet ) {
            echo $server.name
            $services = $services, (get-wmiobject -ComputerName $server.name win32_service | select systemname, name, started)
        }
    }
    # export information about services to csv file
    $services | Export-Csv services.csv -NoTypeInformation
    

    This would produce a csv file with the following structure:

    "systemname","name","started"
    "SERVER01","AeLookupSvc","False"
    "SERVER02","AeLookupSvc","False"
    ...
    

    This csv can then be used to create a pivot table in Excel (rows = systemname, columns = name) to display the information you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the error list iterator not dereferencable when using the following code: bool
I'm using the following PHP code to list all files and folders under the
Using the following code, I'm retrieving a list of Integers from a DB and
I am using the following code to remove a attribute from session List<User> l=(List<User>)
Using the following code I get a nice formatted string: Request.QueryString.ToString Gives me something
I am using following code to create and send email through CGI perl. The
I have a jquery datatable using the following code: // Test list table $('#dashboard_testlist_table').dataTable({
I'm currently using the following code to pass all items in some columns to
Using the following code, I'm able to display all entries listed under the Application
I am using following code in rowdatabound function. Protected Sub gvwMileStone_RowDataBound(ByVal sender As System.Object,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.