VMM: VM-Template - Regional settings (Keyboard-Layouts)

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche


Option 1 - Use PowerShell to set the regional Settings

$templatename = "<VM-Template-Name>"
 
$template = Get-SCVMtemplate | where {$_.Name  -eq "$templatename"} 
$settings = $template.UnattendSettings;
$settings.add("oobeSystem/Microsoft-Windows-International-Core/UserLocale","de-CH");
$settings.add("oobeSystem/Microsoft-Windows-International-Core/SystemLocale","de-CH");
$settings.add("oobeSystem/Microsoft-Windows-International-Core/UILanguage","en-US");
$settings.add("oobeSystem/Microsoft-Windows-International-Core/InputLocale","0807:00000807;0407:00000407;0409:00000409;0410:00000410");
Set-SCVMTemplate -VMTemplate $template -UnattendSettings $settings


Option 2 - Use an XML-File to set the regional Settings

Create an unattend.xml with the specific locale settings required. Below is a sample unattand.xml set to en-us but you can replace the en-us entries with the language code of your choice.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" 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">
            <InputLocale>en-US</InputLocale> #or with the "Default Input Locales Codes" for example: <InputLocale>0409:00000409</InputLocale>
            <SystemLocale>de-CH</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>de-CH</UserLocale>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:c:/install.wim#Windows Server 2012 SERVERDATACENTER" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>



More Information: