---
title: "Windows 10 技术预览版：让IE11以Metro样式全屏运行"
url: https://www.landian.news/archives/8853.html
date: 2014-10-02T14:41:26+08:00
modified: 2016-06-03T06:26:37+00:00
author: "山外的鸭子哥"
description: "在Windows 8和Windows 8.1中，假如IE浏览器为系统默认浏览器，则在Metro中打开时会以全屏 [&hellip;]"
categories: ""
tags: "IE, metro, windows 10, 微软"
---

# Windows 10 技术预览版：让IE11以Metro样式全屏运行

在Windows 8和Windows 8.1中，假如IE浏览器为系统默认浏览器，则在Metro中打开时会以全屏、触摸板的样式出现。

而在Windows 10 技术预览版中，这项功能被“去除”，但是如果你非常喜欢以前的样式，那么你可以尝试以下教程来恢复之前的样式哦~

（以下代码来自国外网友@adamUCF）

首先在桌面上新建一个文本文档，复制以下内容并粘贴进去，保存。

> $code = @"
> using System;
> using System.Runtime.CompilerServices;
> using System.Runtime.InteropServices;
> namespace Win8 {
>
>
>
> [ComImport, Guid("2e941141-7f97-4756-ba1d-9decde894a3d"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
> interface IApplicationActivationManager
> {
> IntPtr ActivateApplication([In] String appUserModelId, [In] String arguments, [In] UInt32 options, [Out] out UInt32 processId);
> }
>
>
>
> [ComImport, Guid("45BA127D-10A8-46EA-8AB7-56EA9078943C")]//Application Activation Manager
> public class ApplicationActivationManager : IApplicationActivationManager
> {
> [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)/*, PreserveSig*/]
> public extern IntPtr ActivateApplication([In] String appUserModelId, [In] String arguments, [In] UInt32 options, [Out] out UInt32 processId);
>
>
>
> }
>
>
>
> }
> "@
>
>
>
> add-type -TypeDefinition $code
> $appman = new-object Win8.ApplicationActivationManager
>
>
>
> $appman.ActivateApplication("DefaultBrowser_NOPUBLISHERID!Microsoft.InternetExplorer.Default",$null,0,[ref]0)

保存好后将后缀.txt改成.ps1，然后右键使用PowerShell运行即可。或者[直接点此下载](https://img.lancdn.com/landian/imgcdn/files/Metro-IE.zip)

OK，就这样，如果IE还无法恢复以前的样式，请检查IE是否为默认浏览器。

![](http://img1.gtimg.com/tech/pics/hv1/93/172/1682/109416003.jpg)

---

Source: [Windows 10 技术预览版：让IE11以Metro样式全屏运行](https://www.landian.news/archives/8853.html)
