Environment: ESX 3.5/VC 2.5
I want 2 things with template deployment. The right regional settings and the VM guest computername = VM name
When I use the Customization Specification Manager to create customizations for templates I can use a sysprep file or use the VC customization wizard.
When I use the customization wizard my deployed VM will have resetted regional settings insted of the settings I used for the template but the VM guest computername = VM name
When I use a sysprep file with the Customization Specification Manager to create a customization the syprep.inf file contains the necessary regional settings (those I want) and a deployed VM will have the right regional settings but the sysprep.inf file will only have 3 options for the computername, generated, preset or fill during mini-setup.
Is there a way to use best of both?
Regards,
Dennis
...
Good Question Dennis, wondering about that as well
Wanted to bump this as it's been annoying me for ages!
I haven't found a way either Dennis and one of our post deployment tasks is to change the regional settings - very disappointing when every other aspect is automated.
merse
I have this now running in the runonce batch file in our template:
echo.[RegionalSettings]>c:\scripts\regopts.txt
echo.LanguageGroup=809 >>c:\scripts\regopts.txt
echo.SystemLocale=00000809>>c:\scripts\regopts.txt
echo.UserLocale=00000809>>c:\scripts\regopts.txt
echo.InputLocale=0809:00000809>>c:\scripts\regopts.txt
echo.UserLocale_DefaultUser =809>>c:\scripts\regopts.txt
echo.InputLocale_DefaultUser =809>>c:\scripts\regopts.txt
rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:\scripts\regopts.txt"
Seems to have done the trick!
Hi Merse,
Thank you for your help and the workaround.
At the moment I do not have the opportunity to test it but as soon as I have I'll let you know
Regards,
Dennis
For anyone whos intrested the problem I found with the above is that the language bar reenables its self.
To get round this for all users the only way i found is to disable the advanced text services
Our RunOnce maps a drive and calls a batch file
Regional.bat
@echo off
echo Removing current keyboard layouts
REG DELETE "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload" /va /f
echo Adding UK Keyboard
REG ADD "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload" /f
REG ADD "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload" /f /v 1 /t REG_SZ /d 00000809
echo setting non-unicode language
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Nls\Language" /f /v Default /t REG_SZ /d 0809
echo changing most the regional settings like sysprep should
rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"z:\regopt.txt"
echo Disabling advanced text services and closing the Language Bar
REG DELETE "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run" /f /v "CTFMON.EXE"
REG ADD "HKEY_USERS\.DEFAULT\Software\Microsoft\CTF\LangBar" /f /v ShowStatus /t REG_DWORD /d 3+
regopt.txt
RegionalSettings - This needs square brackets forum messes them up
LanguageGroup=1
SystemLocale=00000809
UserLocale=00000809
InputLocale=0809:00000809
UserLocale_DefaultUser=809
InputLocale_DefaultUser=809
This removes all US keyboards and sets UK as the default language on everything
Oh and i almost forgot it doesnt work for the user its run as. in most cases its the local admin which doesnt cause issues anyway