Get-Content “C:\temp\info.txt” | ForEach-Object{Get-ADComputer $_ -Properties Name,CanonicalName,Enabled,DNSHostname,OperatingSystem | Select-Object Name,CanonicalName,Enabled,DNSHostname,OperatingSystem} | Export-Csv c:\temp\report_computers.csv
| Martin on Event 36870/ 36880: A fatal er… | |
| Sally on 10 Top Websites to get cracked… | |
| Network Marketing Ne… on Windows server 2019 Active Dir… | |
| Michele on Event 36870/ 36880: A fatal er… | |
| Lokesh on Most Common VMware Interview… |
Get-Content “C:\temp\info.txt” | ForEach-Object{Get-ADComputer $_ -Properties Name,CanonicalName,Enabled,DNSHostname,OperatingSystem | Select-Object Name,CanonicalName,Enabled,DNSHostname,OperatingSystem} | Export-Csv c:\temp\report_computers.csv
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Leave a comment