Author Topic: Enable Modern IE In Windows 10 Technical Preview Using This Script  (Read 1338 times)

Offline javajolt

  • Administrator
  • Hero Member
  • *****
  • Posts: 35171
  • Gender: Male
  • I Do Windows
    • windows10newsinfo.com
Those who tried Windows 10 Technical Preview yesterday should have noticed that Microsoft has not yet enabled modern Internet Explorer in it. If you can’t live without modern IE, now you can enable it via a script. You can find the script here. Download the code and change the extension of the file to .ps1 and open it using Powershell to open the modern version of IE.

I guess Microsoft will enable modern Internet Explorer in the coming months via an update.


Quote
1.

2.$code = @"

3.using System;

4.using System.Runtime.CompilerServices;

5.using System.Runtime.InteropServices;

6.namespace Win8 {

7.   

8.    [ComImport, Guid("2e941141-7f97-4756-ba1d-9decde894a3d"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]

9.    interface IApplicationActivationManager

10.    {

11.        IntPtr ActivateApplication([In] String appUserModelId, [In] String arguments, [In] UInt32 options, [Out] out UInt32 processId);

12.    }

13.

14.[ComImport, Guid("45BA127D-10A8-46EA-8AB7-56EA9078943C")]//Application Activation Manager

15.    public class ApplicationActivationManager : IApplicationActivationManager

16.    {

17.        [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)/*, PreserveSig*/]

18.        public extern IntPtr ActivateApplication([In] String appUserModelId, [In] String arguments, [In] UInt32 options, [Out] out UInt32 processId);

19.       

20.    }

21.   

22.}

23."@

24.

25.add-type -TypeDefinition $code

26.$appman = new-object Win8.ApplicationActivationManager

27.

28.$appman.ActivateApplication("DefaultBrowser_NOPUBLISHERID!Microsoft.InternetExplorer.Default",$null,0,[ref]0)

source:microsoft-news│via:pastebin