Windows系统封装自动更改用户目录到其他位置

迅恒数据中心
用注册表,那么可以:
Windows Registry Editor Version 5.00
;用户目录转移至D盘
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Desktop"="D:\\%UserName%\\Desktop"
这样需要每个用户都运行脚本

我们也可以在封装的时候将用户目录转移到D盘
利用自应答文件Unattend.xml放于windows/Panther内:
    <settings pass="oobeSystem">
        <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>D:\Users</ProfilesDirectory>
            </FolderLocations>

分类:IDC资讯 百度收录 必应收录