備份恢復Win10開始選單?

Win10 的開始選單,不是很穩定!系統裝完4天,開始亂了3次,要知道我的開始選單全屏並且進過盡心佈局的,很是心酸!

工具/原料

PowerShell

方法/步驟

Win10 的開始選單,不是很穩定!系統裝完4天,開始亂了3次,要知道我的開始選單全屏並且進過盡心佈局的,很是心酸!

連著找了幾天備份開始選單的方法,無果!後來發現了下邊兩個PowerShell命令,試了一下 Very Good!

PowerShell-》Export-StartLayout & Import-StartLayout

名稱

Export-StartLayout

摘要

Exports the layout of the Start screen.

語法

Export-StartLayout [-Path] [-InformationAction {SilentlyContinue Stop Continue Inquire Ignore Su

spend}] [-InformationVariable [ ]] [-Confirm] [-WhatIf] [ ]

Export-StartLayout [-LiteralPath] [-InformationAction {SilentlyContinue Stop Continue Inquire Igno

re Suspend}] [-InformationVariable [ ]] [-Confirm] [-WhatIf] [ ]

說明

The Export-StartLayout cmdlet exports the layout of the tiles on Start of the current user. You can export layout a

nd use Import-StartLayout as well as other management policies for the Start layout. Specify the .xml file extensio

n in the name of the file.

相關連結

Online Version: http://go.microsoft.com/fwlink/?LinkID=294168

名稱

Import-StartLayout

摘要

Imports the layout of the Start into a mounted Windows image.

語法

Import-StartLayout [-LayoutPath] [-MountPath] [-InformationAction {SilentlyContinue Stop Continue Inquire Ignore Suspend}] [-InformationVariable [ ]] [-Confirm] [-WhatIf] [ ]

Import-StartLayout [-LayoutLiteralPath] [-MountLiteralPath] [-InformationAction {SilentlyContinue Stop Continue Inquire Ignore Suspend}] [-InformationVariable [ ]] [-Confirm] [-WhatIf] [

monParameters>]

說明

The Import-StartLayout cmdlet imports the specified layout of Start into a mounted Windows image. When you import a layout, it replaces the existing layout of Start. Before you use this cmdlet, mount the Windows image file to import

the layout into.

You must have administrator rights to import a layout.

The Export-StartLayout cmdlet exports layouts as .xml files, and the Import-StartLayout cmdlet imports only .xml files.

相關連結

Online Version:

Export-StartLayout

Start Layout Cmdlets

說明:匯入時需要指定-MountPath引數,個人理解這個應該就是系統盤的碟符

同時,需要指定開始選單使用配置檔案:

gpedit.msc-》計算機配置-》管理模板-》“開始”選單和工作列-》“開始”屏幕布局;

將值設定為已配置,並指定“開始”屏幕布局檔案為需要恢復檔案,應用;

這樣才有效果,之後可以直接編輯訪該佈局檔案,只不過這樣設定之後不能手動在開始螢幕上用滑鼠編輯了,只要將上邊配置的值恢復即可;

相關問題答案