This MSSQLTips tip will help you to audit your SQL Server licensing with PowerShell script.
Please read the latest MSSQL Tip: “Script to get CPU and Cores for SQL Server 2012 Licensing“.
Check out all of my tips here: http://www.mssqltips.com/sqlserverauthor/94/svetlana-golovko/.