Hua Minh Toan-Blog Chia Se

* Các bạn có thể Chat cộng đồng tại đây => Click
Chia sẽ cảm xúc, thủ thuật...

Giữ lại các ứng dụng đã ghim vào Start Menu sau khi chạy sysprep trên Windows 10

Một thủ thuật nhỏ nhưng không kém phần quan trọng đối với người dùng build Windows 10 đó là giữ lại các ứng dụng đã ghim vào Start menu. Ứng dụng ở đây có thể là ứng dụng metro ui, ứng dụng hê thống, phần mềm desktop..., Sau khi chạy sysprep khởi động lại máy tính thì start menu được bố trí mặc định và mất đi những ứng dụng đã ghim trước khi chạy sysprep.


Để giữ lại các ứng dụng đã ghim vào Start Menu sau khi chạy sysprep chúng ta phải tạo ra một tập tin có tên layoutmodification.xml bên cạnh tập tin DefaultLayouts.xml và tập tin này được đặt trong thư mục Shell theo đường dẫn sau:

C:\Users\Default\AppData\Local\Microsoft\Windows\Shell

Để tạo tập tin này chúng ta sử dụng lệnh trong powershell, khởi chạy powershell rồi copy lệnh bên dưới vào powershell nhấn enter là xong.

export-startlayout -path C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\layoutmodification.xml


Kiểm tra tập tin layoutmodification.xml trong thư mục Shell vừa tạo


Lưu ý trong tập tin unattend.xml phải có các dòng này để việc sao chép từ tài khoản default sang tài khoản mới có hiệu lực

<?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CopyProfile>true</CopyProfile>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CopyProfile>true</CopyProfile>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">        
                <FolderLocations>
                    <ProfilesDirectory>C:\Users</ProfilesDirectory>
                </FolderLocations>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">        
                <FolderLocations>
                    <ProfilesDirectory>C:\Users</ProfilesDirectory>
                </FolderLocations>
            </component>
        </settings>
    </unattend>
Cách này chỉ áp dụng với bộ cài Windows 10 version 1511 trở lên. Tham khảo bài viết Tài liệu hướng dẫn xây dựng lại bộ cài đặt Windows 10 hoàn chỉnh từ bộ cài đặt gốc
Nguyễn Anh Tuấn
Share on Google Plus

Thông Tin: Unknown

Xin chào tất cả các bạn, cảm ơn tất cả mọi người đã ghé thăm Blogs của Toàn, Mình là dân công nghệ nên rất đam mê tìm tòi nghiên cứu nhiều thứ về công nghệ để chia sẽ và Support cho nhiều người, "nếu cần tôi giúp đỡ điều gì hãy để lại Comment " hoặc qua Zalo: 01885533411! Thân chào.
    Blogger Comment
    Facebook Comment

0 Nhận xét :

Đăng nhận xét