Configure a SCVMM VM Template with the desired regional settings
May 24, 2012 |
Gunter Danzeisen This is an extract from the following KB. However, since I assume this is quite useful information, I will put it here for my own reference:
Consider the following scenario:
- A virtual machine is configured to use regional settings other than en-US (example: ja-JP or fr-FR)
- A VM template is created from this virtual machine using System Center Virtual Machine Manager 2012.
- Virtual machines that are created using this template are configured to use the en-US regional settings.
Cause
Deploying virtual machines using a template in System Center Virtual Machine Manager 2012 will override the guest OS language setting with en-US by default.
Resolution
To work around this issue, perform the following steps:
1. Launch the VMM Console.
2. Click on Settings option.
3. Click on PowerShell and execute the below commands on respective Template.
4. $template = Get-SCVMtemplate | where {$_.Name -eq "Template_Name"}
5. $settings = $template.UnattendSettings;
6. $settings.add("oobeSystem/Microsoft-Windows-International-Core/UserLocale","cy-GB");
7. $settings.add("oobeSystem/Microsoft-Windows-International-Core/SystemLocale","cy-GB");
8. $settings.add("oobeSystem/Microsoft-Windows-International-Core/UILanguage","cy-GB");
9. $settings.add("oobeSystem/Microsoft-Windows-International-Core/InputLocale","0452:00000452");
10. Set-SCVMTemplate -VMTemplate $template -UnattendSettings $settings
NOTE For Steps 6-9, the regional settings will vary based on the language. Please refer to the following sites for the regional settings that should be used for each language:
Language Pack Default Values
http://technet.microsoft.com/en-us/library/cc766191(v=ws.10).aspx
Default Input Locales
http://technet.microsoft.com/en-us/library/cc766503(v=ws.10).aspx
In my case, the Swiss German settings are:
6. $settings.add("oobeSystem/Microsoft-Windows-International-Core/UserLocale","de-DE");
7. $settings.add("oobeSystem/Microsoft-Windows-International-Core/SystemLocale","de-DE");
8. $settings.add("oobeSystem/Microsoft-Windows-International-Core/UILanguage","de-DE");
9. $settings.add("oobeSystem/Microsoft-Windows-International-Core/InputLocale","0807:00000807");
More Information
Scripts used during MMS 2012 PowerShell session:
http://blogs.technet.com/b/hectorl/archive/2012/04/16/fi-b322-scripts-used-during-mms-2012-powershell-session.aspx
