# Get-Computerinfo ... Help

**URL:** <https://forums.powershell.org/t/get-computerinfo-help/8092>\
**Category:** PowerShell Help\
**Created:** [February 20, 2017, 9:49am UTC](https://forums.powershell.org/t/get-computerinfo-help/8092 "2017-02-20T09:49:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![del-mo](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@del-mo](https://forums.powershell.org/u/del-mo)\
**Post date:** [February 20, 2017, 9:49am UTC](https://forums.powershell.org/t/get-computerinfo-help/8092/1 "2017-02-20T09:49:34Z")

</div>

Hi guys,

I’m trying this code but re turns only one computer

Get-ADComputer -Filter \* | Get-ComputerInfo | Select CsDomain, CsName, LogonServer, CsCaption, CsDomainRole, CsDNSHostName, OsName, OsInstallDate, OsVersion, WindowsCurrentVersion, OsProductType, OsArchitecture, OsLanguage, WindowsEditionId, WindowsInstallationType, WindowsProductId, OsCountryCode, OsLocale, OsLocalDateTime, OsLastBootUpTime, OsUptime,OsMuiLanguages,OsSerialNumber,OsStatus, OsSuites, OsServerLevel, KeyboardLayout, TimeZone, WindowsRegisteredOrganization

Returns multiple values with only one computer name which is the first computer from Get-adcomputer -Filter \*

Tried Foreach, same output …  
Tried invoke-command - But I have to enter each computer name in the domain ‘Which is painful!’ … Any opinions ?

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [February 20, 2017, 10:02am UTC](https://forums.powershell.org/t/get-computerinfo-help/8092/2 "2017-02-20T10:02:02Z")

</div>

Get-ComputerInfo doesn’t accept AD computer objects as input, and doesn’t run against remote computers. You would in fact need to use Invoke-Command and Remoting. Invoke-Command doesn’t accept computer names from the pipeline.

-ComputerName (Get-ADComputer -Filter \* | Select -Expand Name)

Should work, though.

---

<div class="post-metadata">

**Author:** ![del-mo](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@del-mo](https://forums.powershell.org/u/del-mo)\
**Post date:** [February 20, 2017, 1:42pm UTC](https://forums.powershell.org/t/get-computerinfo-help/8092/3 "2017-02-20T13:42:18Z")

</div>

Thanks Don

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:39pm UTC](https://forums.powershell.org/t/get-computerinfo-help/8092/4 "2024-05-16T20:39:30Z")

</div>

Closed on May 16, 2024, 8:39pm UTC


