Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Import CSV, Edit Data, Export CSV

$
0
0

Hello,

I am a powershell novice and have been given a task to complete. I need to scan through AD, find all of the servers that are supposed to be active, "ping" them and, if active, get their IP address and verify that a number of services are running. Once all of the data is collected, I need to write all of this out to a .CSV file. So far, what I have is this:

  1. Using Import-Module ActiveDirectory, I am able to get the full list of servers with appropriate information and export that to a CSV
  2. I import the CSV file above back in and create new headers (columns) for more information
  3. The full list of servers are pinged individually. If pingable, I get the IP address and service information needed

Where I am stuck is writing all of this back out to a .CSV file. Right now, I am just writing the information back out to the screen for verification. I'm sure it's something small, but being a novice I'm not sure where to go. Any help?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>