Total Pageviews
Friday, December 14, 2012
Windows 8 Enterprise Activation Error 0x8007007B
I installed Windows 8 Enterprise from my MSDN account a while back. I tested different software and production scenarios with it, trying to get a good feel for the OS. Finally, after wanting to make it more of a permanent operating system for my computer, I wanted to activate it. I received the following error when I tried:
Error Code: 0x8007007B, The filename, directory name, or volume label syntax is incorrect.
The fix for this is relatively simple. Just add or replace the product key. This can be done 2 different ways.
The first is by command line using vbs scripts. The second is with the GUI. Why do I talk about the GUI method secondly? Because Microsoft does not offer an easy way to find it.
Method 1 (Command Line)
*This must be run from an elevated command prompt. It is a two part process. The first part replaces the product key and the second part activates.
1. Start an elevated command prompt
A. Click Start (or pixel 0x0 if you will)
B. Type CMD or command.
C. Right click the command prompt and click "Run as Administrator" at the bottom.
2. From the command prompt, type "slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" without quotes and hit enter. Replace the X with the product key you want to use.
3. From the command prompt, type "slmgr.vbs /ato" and hit enter. Once this completes, windows should be activated.
Method 2 (GUI)
*This one is by far the easiest
1. Click Start (or pixel 0x0)
2. Type "slui 3" without the quotes.
3. Click on the "slui 3" that appears under Apps.
4. Enter your product key (Can enter dashes if you want, but not required. Windows will add them for you)
5. Click Activate.
Thursday, November 8, 2012
SQL Backup/Restore Percentage and Time Remaining
When you perform a restore from the GUI with SQL Server, there is a status indicator at the bottom right that tells the percentage complete. However, when you restore from T-SQL, there is not one by default. That information is actually stored in the sys.dm_exec_requests as well as estimated time remaining, stored in milliseconds. Here is an example query that shows the percentage complete, as well as an estimated time remaining.
USE MASTER
GO
SELECT percent_complete,start_time,command,b.name AS DatabaseName,
DATEADD(ms,estimated_completion_time,GETDATE()) AS RemainTime,
(estimated_completion_time/1000/60) AS MinutesToFinish
FROM sys.dm_exec_requests a
INNER JOIN sys.databases b
ON a.database_id = b.database_id
WHERE command like '%restore%' or command like '%Backup%' AND estimated_completion_time > 0
Example:
USE MASTER
GO
SELECT percent_complete,start_time,command,b.name AS DatabaseName,
DATEADD(ms,estimated_completion_time,GETDATE()) AS RemainTime,
(estimated_completion_time/1000/60) AS MinutesToFinish
FROM sys.dm_exec_requests a
INNER JOIN sys.databases b
ON a.database_id = b.database_id
WHERE command like '%restore%' or command like '%Backup%' AND estimated_completion_time > 0
Example:
Tuesday, October 30, 2012
SQL Server Management Studio takes too long to start
When you first install SQL Server 2012 and try to open Management Studio, it can take up to a minute to open. Why? The answer is, Management Studio has to contact crl.microsoft.com to check for certificate revocations. It can take longer if it can't make that connection, because of no internet access. To get around this, do the following:
1. Close SSMS
2. Open Internet Explorer
3. Go to Tools->Internet Options (or Internet Options from the control panel)
4. Go to the Security node and uncheck "Check publisher's certificate revocation"
5. Click OK and close Internet Explorer
SSMS should now open much faster. However, be cautious using this as any application that uses managed code may be at some risk. In the past, there were some fake MS certificates floating around.
1. Close SSMS
2. Open Internet Explorer
3. Go to Tools->Internet Options (or Internet Options from the control panel)
4. Go to the Security node and uncheck "Check publisher's certificate revocation"
5. Click OK and close Internet Explorer
SSMS should now open much faster. However, be cautious using this as any application that uses managed code may be at some risk. In the past, there were some fake MS certificates floating around.
Subscribe to:
Posts (Atom)
