I’m trying to get the Manufacturer,Model,Serial Number and hostname from a list of computers in my domain. I was thinking to do this:
Get-ADComputer -Filter * -Properties Name | Select-Object Name | Export-Csv c:\working\computers.csv
That gets my working list of computers.
Then I would use:
Get-WmiObject -ComputerName (My .csv list of computers) -Class Win32_ComputerSystem -Properties (etc…)
My problem is doing the get-WmiObject process on each of the computers in my list.
I’m still Powershell novice so no complex scripting if possible. I’ll get to that eventually but for now, I want it as simple as possible.