Kunta
Kunta

Reputation: 25

IPv4Address empty when doing a Get-ADComputer

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

Answers (1)

Itchydon
Itchydon

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

Related Questions