Home
Create ADMX with ADMX Migrator
FullArmor ADMX Migrator / FullArmor Corporation - Version: 1.3
Microsoft Word - Show all formatting marks - AdamFowlerIT.com
Registry: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options (renenyffenegger.ch)
Example:
- Details
Powershell to Test If Registry key and Value exists
<#
.DESCRIPTION
This script will test existence of registry key, registry entry and
its value to match with required value and provide the result.
Author: Jatin Makhija
Website: cloudinfra.net
Version: 1.0.0
Version: 1.0.1 2024-02-25 USa - $valueName added in line 19
#>
#Provide registry key path
$regPath = "HKLM:\SOFTWARE\Kofax\PDF\V1"
#Provide registry entry display name
$valueName = "VersionLong"
#Provide registry entry expected value
$requiredValue = "5.0.0.4.0.22567"
$regkeyexists = Test-Path -Path $regPath
if ($regkeyexists) {
#Check if registry entry named Status exists
$regentryexists = Get-ItemProperty -Path $regpath -Name $valueName -ErrorAction SilentlyContinue
if ($regentryexists) {
#If registry entry named Status exists, then fetch its value
$currentValue = Get-ItemProperty -Path $regpath | Select-Object -ExpandProperty $valueName -ErrorAction SilentlyContinue
#Match Status registry entry value with requied value
if ($currentValue -eq $requiredvalue) {
Write-Host "Reg value exists and matching the required value."
} else {
Write-Host "Reg value exists, but does not match the required value."
Write-Host "Current value: $currentValue"
Write-Host "Required value: $requiredValue"
}
}
else {
Write-Host "Registry value does not exist."
}
}
else {
Write-Host "Registry key does not exist."
}
- Details
Input Profiles - Language & KeyBoard Identifiers
The following removes all LanguageTag's, adds de-CH and en-US with multiple keyboard layouts (aka InputMethodTips):
$1 = Get-WinUserLanguageList
$1.RemoveAll( { $args[0].LanguageTag -clike '*' } )
$1.Add("de-CH")
$1[0].InputMethodTips.Clear()
$1[0].InputMethodTips.Add('0807:00000807') # German_Swiss KeyBoard to 0807 i.e. de-CH
$1.Add("en-US")
$1[1].InputMethodTips.Clear()
$1[1].InputMethodTips.Add('0409:00000807') # German_Swiss keyboard to 0409 i.e. en-US
$1[1].InputMethodTips.Add('0409:00000409') # English_United_State keyboard to 0409 i.e. en-US
$1[1].InputMethodTips.Add('0409:0000080c') # French_Belgian keyboard to 0409 i.e. en-US
Set-WinUserLanguageList -LanguageList $1 -Force
The following removes all LanguageTag's, adds en-US with multiple keyboard layouts (aka InputMethodTips):
$1 = Get-WinUserLanguageList
$1.RemoveAll( { $args[0].LanguageTag -clike '*' } )
$1.Add("en-US")
$1[0].InputMethodTips.Clear()
$1[0].InputMethodTips.Add('0409:00000807') # German_Swiss keyboard to 0409 i.e. en-US
$1[0].InputMethodTips.Add('0409:00000409') # English_United_State keyboard to 0409 i.e. en-US
$1[0].InputMethodTips.Add('0409:0000080c') # French_Belgian keyboard to 0409 i.e. en-US
Set-WinUserLanguageList -LanguageList $1 -Force
Reference:
International Settings
automation - Changing keyboard layout in PowerShell for multiple languages - Stack Overflow
- Details
Return the Value of a Registry Key Name
$RegKey = "HKLM:\SOFTWARE\Kofax\PDF\V1"
$Name = "VersionLong"
cls
if ((Get-ItemProperty $RegKey -ErrorAction SilentlyContinue).PSObject.Properties.Name -contains $Name) {
Get-ItemPropertyValue $RegKey $Name
}
else
{
Write-Host "The following Regisitry Key & Name does not exist: " -NoNewline
Write-Host -ForegroundColor red "$RegKey\$Name"
}
- Details
Page 2 of 5