This VBScript shows how to make the Desktop Internet Explorer default in Windows 8.
By default, when you click on a web link in the Windows 8, Internet Explorer will open that web page in the Windows 8 version of IE (non-desktop Internet Explorer). But some users want to make the Desktop Internet Explorer default when they open a web link anywhere.
Step 1: Double-click SetDesktopIE.vbs to run this VBScript sample. The step is shown in the following figure.

When script finishes running, you will see something as shown in the following figure.

Here are some code snippets for your references. To get the complete script sample, please click the download button at the beginning of this page.
If Err.Number = 0 Then
'Setting the registry key
If AssociationActivationMode = 2 Then
WScript.Echo "You have already been set the desktop Internet Explorer mode."
Else
objShell.RegWrite regKeyPath,2,"REG_DWORD"
WScript.Echo "Set the desktop Internet Explorer mode default successfully."
End If
Else
objShell.RegWrite regKeyPath,2,"REG_DWORD"
WScript.Echo "Set the desktop Internet Explorer mode default successfully."
End If
If Err.Number = 0Then'Setting the registry keyIf AssociationActivationMode = 2Then WScript.Echo "You have already been set the desktop Internet Explorer mode."Else objShell.RegWrite regKeyPath,2,"REG_DWORD" WScript.Echo "Set the desktop Internet Explorer mode default successfully."EndIfElse objShell.RegWrite regKeyPath,2,"REG_DWORD" WScript.Echo "Set the desktop Internet Explorer mode default successfully."EndIf
Windows 8