AD Computers Complete Hardware Inventory

You can directly run on Active Directory server running Windows server 2012(powershell v3 ) or above.
This will provide you with information of Computername,enabled,description,ipAddress,Ou,Type,Serialnumber,Manufacturer,Model,Ram,ProcessorName,NumberOfCores,NumberOfLogicalProcessors,Addresswidth,Operatingsystem,loggedinuser,Lastlogondate

Source Code

This script has not been checked by Spiceworks. Please understand the risks before using it.