|
1 | | -rsInternationalSettings |
| 1 | +rsInternationalSettings DSC Module |
2 | 2 | ======================= |
3 | 3 |
|
4 | | -DSC Resource to manage international system settings |
| 4 | +**rsInternationalSettings** is a PowerShell DSC resource module, which can be used to manage international system settings such as setting system locale, time zone user keyboard layout and culture (formatting) settings. |
| 5 | + |
| 6 | +##Changelog |
| 7 | + |
| 8 | +######v0.0.1 |
| 9 | +Added support for setting time zone, culture, system local and all local (including default) user profile settings. |
| 10 | + |
| 11 | +####To-do: |
| 12 | +Add support for provision of an optional time server parameter |
| 13 | + |
| 14 | +##Syntax## |
| 15 | + |
| 16 | +See usage examples below... |
| 17 | + |
| 18 | +###Usage Examples |
| 19 | + |
| 20 | +**Set Server to US locale and user input** |
| 21 | + |
| 22 | +This will force all system and user settings to US codepage, including input setting: |
| 23 | + |
| 24 | + rsSysLocale SysLoc |
| 25 | + { |
| 26 | + SysLocale = "en-US" |
| 27 | + } |
| 28 | + |
| 29 | + rsTime time |
| 30 | + { |
| 31 | + TimeZone = "Central Standard Time" |
| 32 | + } |
| 33 | + |
| 34 | + rsUserLocale UserLocale |
| 35 | + { |
| 36 | + Name = "UserLocale" |
| 37 | + Culture = "en-US" |
| 38 | + LocationID = "244" |
| 39 | + LCIDHex = "0409" |
| 40 | + InputLocaleID = "00000409" |
| 41 | + } |
| 42 | + |
| 43 | + |
| 44 | +**Set Server to UK locale and user input** |
| 45 | + |
| 46 | +This will force all system and user settings to UK codepage, including input setting: |
| 47 | + |
| 48 | + rsSysLocale SysLoc |
| 49 | + { |
| 50 | + SysLocale = "en-GB" |
| 51 | + } |
| 52 | + |
| 53 | + rsTime time |
| 54 | + { |
| 55 | + TimeZone = "GMT Standard Time" |
| 56 | + } |
| 57 | + |
| 58 | + rsUserLocale UserLocale |
| 59 | + { |
| 60 | + Name = "UserLocale" |
| 61 | + Culture = "en-GB" |
| 62 | + LocationID = "242" |
| 63 | + LCIDHex = "0809" |
| 64 | + InputLocaleID = "00000809" |
| 65 | + } |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +###Acceptable parameter values |
| 70 | + |
| 71 | +#####$Culture |
| 72 | +Default system codepage for non-Unicode applications. |
| 73 | +Use the following PowerShell command to list all available options: |
| 74 | + |
| 75 | + [cultureinfo]::GetCultures([System.Globalization.CultureTypes]::AllCultures) |
| 76 | + |
| 77 | +#####$TimeZone |
| 78 | +System time zone name description. Ex "GMT Standard Time" |
| 79 | +Use the `tzutil /l` command to list all possible options. |
| 80 | + |
| 81 | +#####$LocationID |
| 82 | +Geographical System location ID (GEOID). Refer to [Table of Geographical Locations](http://msdn.microsoft.com/en-us/library/windows/desktop/dd374073(v=vs.85).aspx) for full list of possible options. |
| 83 | + |
| 84 | +#####$LCIDHex |
| 85 | +Keyboard Language ID as defined by Microsoft. Used in combination with InputLocaleID, see [Keyboard Language & Locale IDs Assigned by Microsoft](http://msdn.microsoft.com/en-gb/goglobal/bb895996.aspx) |
| 86 | + |
| 87 | +#####$InputLocaleID |
| 88 | +Locale ID as defined by Microsoft. Used in combination with LCIDHex, see [Keyboard Language & Locale IDs Assigned by Microsoft](http://msdn.microsoft.com/en-gb/goglobal/bb895996.aspx) |
| 89 | + |
| 90 | +###Keyboard options tip: |
| 91 | +To easily identify correct settings for user keyboard options (*LCIDHex* & *InputLocaleID*), set the desired keyboard settings on a Windows 8/2012, or later, machine and run the following PS command `Get-WinUserLanguageList`. Property named "InputMethodTips" will provide the correct Language Code ID as `{<LCIDHex>:<InputLocaleID>}`. |
| 92 | + |
| 93 | +#####Example: |
| 94 | + |
| 95 | + PS C:\Users\Administrator> Get-WinUserLanguageList |
| 96 | + |
| 97 | + LanguageTag : en-US |
| 98 | + Autonym : English (United States) |
| 99 | + EnglishName : English |
| 100 | + LocalizedName : English (United States) |
| 101 | + ScriptName : Latin script |
| 102 | + InputMethodTips : {0409:00000409} |
| 103 | + Spellchecking : True |
| 104 | + Handwriting : False |
| 105 | + |
0 commit comments