I have a script that creates a csv file which I then go open to get the information I am looking for. Is there a way to add to the script so that the file opens immediately as well as saves in the specified location?
Get-ADComputer -Filter { Enabled -eq $true } -Properties Name -SearchBase
"DC=REMOVED,DC=com" |
Select Name |
? {$_. Name -like "X*" } |
Export-Csv "C:\scripts\Computers.csv"