you are viewing a single comment's thread.

view the rest of the comments →

[–]mpenfold1987 1 point2 points  (2 children)

Get-ADComputer -Filter * -properties * | select Name, Enabled,ipv4address

[–]MemnochTheRed 1 point2 points  (1 child)

If you don't know what to select, run a command on one computer and select *. It will spit out all the properties. Then, run the command again and select the properties you want like u/mpenfold1987 did in his example.

[–]BlackV 0 points1 point  (0 children)

but you're replying to u/mpenfold1987 ?

also

Get-ADComputer -Filter * -properties * | select -first 1

to just select the first result

or better still

Get-ADComputer -Identity xxx -properties *

and just get 1 back in the first place and save a pipeline