
我一直遵循馬克·米納西的指示時事通訊文章sysprep Windows 7 映像。但是,在測試部署期間,我發現在新部署的系統上建立新使用者時,我的時間和日期格式變更沒有保留。
如何確保在此過程中保留時間/日期格式?謝謝!
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>
答案1
您可以在 sysprep.xml 檔案中設定時區。有關哪些傳遞有效以及支援哪些值的資訊可以在此處找到:http://technet.microsoft.com/en-us/library/cc749073(v=ws.10).aspx
如果您為此使用 WSIM,則它位於節點中Microsoft-Windows-Shell-Setup
,並且您在那裡設定的值Timezone
正如您所期望的那樣。
答案2
進步!
遵循建議這裡,我修改了註冊表中這個地方的日期和時間格式設定:
HKEY_USERS\.Default\Control Panel\International
我將 sShortDate 和 sShortTime 等條目更改為我想要的值。在 sysprep 之後,在系統上建立的新使用者似乎都遵循這些自訂。
我仍然希望這可以在 sysprep 應答文件中實現,不知何故感覺更乾淨。但這裡描述的註冊表更改目前令人滿意。