Solved

SQL Server Licence

Posted on 2013-01-10
1
438 Views
Last Modified: 2013-01-30
Hi Team ,

Can any one tell me how to retrieve License key of SQL server.

The tools i have are showing all other software's but not SQL server License.

Thanks in Advance
Pradeep
0
Comment
Question by:Babcy
1 Comment
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
ID: 38766714
Hi There,

Here is a simple powershell V2 script that you can use from the server to get your product Key for an installed version of SQL 2005/2008/2008R2/2012. If there server is 2003, you will need to install powershell v2.

Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)
http://support.microsoft.com/kb/968929


http://mspowershell.blogspot.com/search?q=sql+server+key

Usage:
1. Open notepad
2. Save script to GetSQLkey.ps1
3. Open Powershell V2
4. Set-executionPolicy remotesigned (If not already set) or you'll get an error.
5. import-module -Name <drive>:\GetSQLkey.ps1
6. Get-SQLServerKey

*you may need to modify the registry locationkey value for 2005 as it may be incorrect. My 2005 version DigitalProductID Key was DigitalProductID77654 and not DigitalProductId77591.

I just used this on 3 of my instances (2005, 2008, 2008 R2) without issue and confirmed the keys are correct since i have them.

Cheers,
Hades666
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now