PowerTip: Use PowerShell to Get a List of Computers and IP Addresses from Active Directory

Doctor Scripto

Summary: Use Windows PowerShell and the Active Directory module to get a listing of computers and IP addresses from Active Directory.

Hey, Scripting Guy! Question How can I get a list of all computers, the operating system version, the service pack, and the IP address from Active Directory?

Hey, Scripting Guy! Answer Use the Get-ADComputer cmdlet and specify the ipv4AddressOperatingSystem, and OperatingSystemServicePack properties, as shown here.

Get-ADComputer -Filter * -Properties ipv4Address, OperatingSystem, OperatingSystemServicePack | Format-List name, ipv4*, oper*

1 comment

Discussion is closed. Login to edit/delete existing comments.

  • tushargondole behappy 0

    The above command is not working in W Server 2008. May I request you to please give me further update. Thanks in advance

Feedback usabilla icon