Hi All,This question has been asked a few times here, but I'm looking for an answer that will work in my situation (if one exists!)My company is about to deploy Windows Server 2012 R2, and I'm writing the build scripts to automate a load of tasks after sysprep has finished doing its job. As we're a global company, which has adopted a follow-the-sun support model, we need to maintainglobal standards on the Windows Server image and post-deployment configuration. Meaning a SINGLE image for ALL regions.Among these tasks is joining the domain, and detecting which region the server has been deployed to and configuring the default regional, language and input settings to that region.
Jan 18, 2017 I would like to know is there any way to set the monitor screen resolution through command line or registry in Windows 7 by default apart from using 3rd party tools? Appreciate your help! Thanks in advance! Wednesday, January 11, 2017 10:29 AM. How can I change resolution of screen using command line in Windows 7. Redirect Command Line Output. Note that you can also just browse to that directory in Explorer and open the file from there. Here is an example of the output if the ipconfig command in a text file. To close Notepad, select Exit from the File menu. To close the command window, type exit at the command prompt and press Enter.
The image itself is configured for en-US, which is fine if we're deployinga server in the US. However, I need to completely change the region, input and display language etc. To en-GB and en-AU respectively when deploying servers in those regions (I'm from the UK).Now I've figured out how to do this for the current user using powershell: Set-Culture en-GBSet-WinSystemLocale en-GBSet-WinHomeLocation -GeoId 242Set-WinUserLanguageList en-GBHowever, I need to copy these setting to both the welcome screen (most important for password entry), and the default user account. Typically you'd do this in the GUI here:However, as I'm trying to automate the entire process, I want to avoid any GUI work by the engineer who's deploying the server.
I want to automate this process.The only way that I've found MIGHT work is exporting the current user registry settings for the following: HKEYCURRENTUSERControl PanelInternationalHKEYCURRENTUSERControl PanelDesktopMuiCachedHKEYCURRENTUSERKeyboard LayoutPreloadI then make changes to the keys to either en-GB or en-AU regions (using correct ID's where applicable), change the HKEY to HKU.DEFAULT and import the reg file with the script.This is all very messy and actually doesn't work fully. I've ended up with everything looking like it's in the UK region EXCEPT the display language. So the input language actually states it's in UK but in reality its still US. Additionally new users aregetting US keyboard and display languages. Everything else is OK though.So my question is centered around the whole copy process to both welcome screens and default accounts. Is it possible to cleanly script this in either powershell, cmd, or regedit?Thanks for reading the long post!
Hi all, sorry for my lack of replies recently.I managed to get as far as getting ALL the language settings correct, except for the Welcome Screen display language - this is still set to US. However, this doesn't matter to us, since it doesn't affect typing.That said, this would potentially be an issue where English is not the primary language. Update:I have made it one step closer to getting this spot on!!All I need now is to find where the registry setting for the display language is. I'm now pretty much there, except for the display languages.To get here, I did the following:Set-Culture en-GBSet-WinSystemLocale en-GBSet-WinHomeLocation -GeoId 242Set-WinUserLanguageList en-GB$DefaultHKEY = 'HKUDEFAULTUSER' $DefaultRegPath = 'C:UsersDefaultNTUSER.DAT'reg load $DefaultHKEY $DefaultRegPathreg import 'G:SourceFilesScriptsRegFilesen-gb-default.reg'reg unload $DefaultHKEYreg import 'G:SourceFilesScriptsRegFilesen-gb-welcome.reg'The two.reg files are an export of a correctly configured Windows 2012r2 server, using all the correct language settings. I exported from the HKU.DEFAULT hive, and created a duplicate, changing the hive to HKUDEFAULTUSER for the default user accountand keeping the original for the Welcome Screen account.Here is what my reg file looks like: Windows Registry Editor Version 5.00HKEYUSERS.DEFAULTControl PanelInternational'Locale'='00000809'LocaleName'='en-GB's1159'='AM's2359'='PM'sCountry'='United Kingdom'sCurrency'='£'sDate'='/'sDecimal'='.' 'sGrouping'='3;0'sLanguage'='ENG'sList'=','sLongDate'='dd MMMM yyyy'sMonDecimalSep'='.'
Hi Supermop,If you want to change the input language of current user and welcome scrren on bulk computers, please try to deploy with GPO and changing the registry value.Registry related to Welcome screen:HKEYUSERS.DEFAULTKeyboard LayoutPreloadRegistry related to Current User:HKEYCURRENTUSERKeyboard LayoutPreloadAnd change the registry value of key name “1” under the path.The Input Locale ID can be found here:In addition, editing GPP to change the registry value, please refer to this article:If there is anything else regarding this issue, please feel free to post back.Best Regards,Anna Wang. Thanks for the reply.Group policy was always going to be a last resort. I wanted to have the region changed over BEFORE I joined the machine to the domain, so that it supports the UK region straight after running my post-deployment scripts.That said, I've had to resort to this as I can find no other way to do it.
However, it looks like the GPO method is not working either. I simply cannot get it to work using registry hacks. Here's what it looks like when I try to apply the registry changesvia GPP:I need to get the entire screen to show UK.As you can see, it's only done the welcome screen input, format and location. Still using a US display language. Also you can see it has not updated the default user regional settings at all, NOR the current user.
I've tried doing this on both user and computerpolicy settings and neither work fully.My options currently are to revert back to the powershell method to change the current user's region etc, and then manually click the 'copy settings' button. Why can't MS tell us what exactly that button does? Even procmon is unable to see whatit's changing! Update:I have made it one step closer to getting this spot on!!All I need now is to find where the registry setting for the display language is. I'm now pretty much there, except for the display languages.To get here, I did the following:Set-Culture en-GBSet-WinSystemLocale en-GBSet-WinHomeLocation -GeoId 242Set-WinUserLanguageList en-GB$DefaultHKEY = 'HKUDEFAULTUSER' $DefaultRegPath = 'C:UsersDefaultNTUSER.DAT'reg load $DefaultHKEY $DefaultRegPathreg import 'G:SourceFilesScriptsRegFilesen-gb-default.reg'reg unload $DefaultHKEYreg import 'G:SourceFilesScriptsRegFilesen-gb-welcome.reg'The two.reg files are an export of a correctly configured Windows 2012r2 server, using all the correct language settings. I exported from the HKU.DEFAULT hive, and created a duplicate, changing the hive to HKUDEFAULTUSER for the default user accountand keeping the original for the Welcome Screen account.Here is what my reg file looks like: Windows Registry Editor Version 5.00HKEYUSERS.DEFAULTControl PanelInternational'Locale'='00000809'LocaleName'='en-GB's1159'='AM's2359'='PM'sCountry'='United Kingdom'sCurrency'='£'sDate'='/'sDecimal'='.' 'sGrouping'='3;0'sLanguage'='ENG'sList'=','sLongDate'='dd MMMM yyyy'sMonDecimalSep'='.'
Hi all, sorry for my lack of replies recently.I managed to get as far as getting ALL the language settings correct, except for the Welcome Screen display language - this is still set to US. However, this doesn't matter to us, since it doesn't affect typing.That said, this would potentially be an issue where English is not the primary language.
When you type a command on the Windows command line, the output from the command is displayed in the command prompt window. For some commands, the output can be several rows long and sometimes longer than the height of the command window, causing you to scroll to view all of the output.If you want to avoid this, or if you want to save a copy of the output generated by a command, you can copy the text from the command window and paste it into a text file. However, there is an easier method of “copying” output to a text file.
You use the redirection command. Redirect Command Line OutputTo use the redirection command, use the “ ” symbol and a filename at the end of the command you want to execute.For example, if you want to save the output from the ipconfig command (displays networking settings), open the command window and type the following command. Ipconfig /all networkinfo.txtNOTE: This creates the file, networkinfo.txt, in the current directory. In this example, shown in the following image, the file will be saved to the C:networkinfo directory.
![Screen Screen](/uploads/1/2/5/4/125415113/180214810.png)
If you want to save the file to a different directory you can specify the full path of the directory in the command window as follows. Ipconfig /all c:mydirectorynetworkinfo.txtOnce you enter the command and press Enter, you are returned to the command prompt. The output is sent to the text file, but not to the screen, so you do not see the output.The networkinfo.txt file is created in the current directory. To view the output, type the following command to open the text file in Notepad: notepad.exe networkinfo.txtNOTE: If you saved the file to a different directory, be sure to put the full path to the file after “ notepad.exe” on the command line as follows: notepad.exe C:mydirectorynetworkinfo.txtNote that you can also just browse to that directory in Explorer and open the file from there. Here is an example of the output if the ipconfig command in a text file.To close Notepad, select Exit from the File menu.To close the command window, type exit at the command prompt and press Enter.NOTE: If you use the same filename a second time, that file will be overwritten and any output it previously contained will be lost. To preserve your previous output, use a different filename or you can append the output to the end of an existing file. To append data to an existing file, use two redirection symbols as shown below: dir c:mymusic networkinfo.txtNOTE: Redirection is also useful for saving directory listings.
The previous command saves a listing of the c:mymusic directory into the end of the networkinfo.txt file.