Reputation: 25
I am trying to get a list of computers and their IP addresses. I am trying the following code get-adcomputer -identity *computername* | select name,IPv4Address
but the IP address column is all blank
Upvotes: 1
Views: 2041
Reputation: 2596
As IPv4Address
is not a default property that the get-adcomputer
displays you need to tell the cmdlet to include the property by using the -Properties
flag
get-adcomputer -identity computer -properties IPv4Address | select name,IPv4Address
Upvotes: 4