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:
- Using Import-Module ActiveDirectory, I am able to get the full list of servers with appropriate information and export that to a CSV
- I import the CSV file above back in and create new headers (columns) for more information
- 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?