Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function Get-WindowsUILanguage
- {
- <#
- .Synopsis
- This function gets the Windows UI language for the current user.
- .Description
- This function gets the Windows UI language for the current user.
- .Example
- Get-WindowsUILanguage
- Returns the UI language in nl-NL, en-US or anyother language
- .Notes
- NAME: Get-WindowsUILanguage
- AUTHOR: Erik van Oost
- LASTEDIT: 18/12/2015
- KEYWORDS: Printer Drivers
- .Link
- Http://blog.eastern.nl
- #Requires -Version 3.0
- #>
- Param([string[]]$name)
- $language = (Get-ItemProperty "HKCU:\Control Panel\Desktop").PreferredUILanguages
- return $language
- }
- Get-WindowsUILanguage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement