我一直在关注Mark Minasi的新闻稿文章中给sysprep一个Windows 7映像的指示。 但是,在testing部署期间,我发现在新部署的系统上创build新用户时,我的时间和date格式更改未保留。
如何确保在此过程中保留时间/date格式? 谢谢!
PS这里是我正在使用的sysprep应答文件:
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <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="generalize"> <component name="Microsoft-Windows-Security-SPP" 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"> <SkipRearm>1</SkipRearm> </component> </settings> <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"> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <CommandLine>cmd /c del c:\windows\panther\unattend.xml</CommandLine> </SynchronousCommand> </FirstLogonCommands> </component> </settings> <cpi:offlineImage cpi:source="catalog:e:/install_windows 7 ultimate.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
陆侃!
按照这里的build议,我在registry中的这个地方修改了date和时间格式设置:
HKEY_USERS \ .Default \ Control Panel \ International
我将sShortDate和sShortTime等条目更改为我所需的值。 在sysprep之后,在系统上创build的新用户似乎都遵循这些定制。
我仍然更喜欢,如果这可以在sysprep答案文件中实现,不知何故,感觉更干净。 但是这里描述的registry变化现在是令人满意的。
您可以在sysprep.xml文件中设置时区。 有关哪些通行证有效的信息以及支持哪些值可以在这里find: http : //technet.microsoft.com/en-us/library/cc749073(v=ws.10).aspx
如果您正在使用WSIM,则它位于Microsoft-Windows-Shell-Setup节点中,您所设置的值有您所期望的Timezone 。