2015年12月18日 星期五

Windows 7 customize user folder

使用sysprep重新設定user folder:


進入audit mode
安裝過程中:    出現設定使用者畫面時 CTRL + SHIFT + F3
舊有系統: C:\Windows\System32\Sysprep\Sysprep.exe /audit /reboot

確認D磁碟可正常讀寫
編寫XML 將使用者目錄 設定為 d:\users
folders.xml:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <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>d:\Users</ProfilesDirectory>
                <ProgramData>d:\ProgramData</ProgramData>
            </FolderLocations>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:f:/sources/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>



%windir%\system32\sysprep\sysprep.exe /generalize /oobe /reboot /unattend:F:\folders.xml


參考資料:
http://www.eightforums.com/tutorials/4275-user-profiles-relocate-another-partition-disk.html


Windows 7: User Profile - Customize During Installation

http://www.sevenforums.com/tutorials/285983-user-profile-customize-during-installation.html



http://ocean2002n.pixnet.net/blog/post/83137103-%5Bwindows%5D-sysprep%E6%95%99%E5%AD%B8

沒有留言:

張貼留言