SOLVED

unable to set keyboard via intune but script works locally

%3CLINGO-SUB%20id%3D%22lingo-sub-2363731%22%20slang%3D%22en-US%22%3Eunable%20to%20set%20keyboard%20via%20intune%20but%20script%20works%20locally%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363731%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20used%20the%20following%20in%20a%20PowerShell%20script%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s2%22%3E%24Lang%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22s4%22%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ENew-WinUserLanguageList%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22s5%22%3Een-GB%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%3CSPAN%20class%3D%22s2%22%3E%24Lang%3C%2FSPAN%3E%3CSPAN%20class%3D%22s4%22%3E%5B%3C%2FSPAN%3E%3CSPAN%20class%3D%22s6%22%3E0%3C%2FSPAN%3E%3CSPAN%20class%3D%22s4%22%3E%5D.%3C%2FSPAN%3EInputMethodTips%3CSPAN%20class%3D%22s4%22%3E.%3C%2FSPAN%3EClear()%3C%2FP%3E%3CP%20class%3D%22p2%22%3E%3CSPAN%20class%3D%22s2%22%3E%24Lang%3C%2FSPAN%3E%3CSPAN%20class%3D%22s4%22%3E%5B%3C%2FSPAN%3E%3CSPAN%20class%3D%22s6%22%3E0%3C%2FSPAN%3E%3CSPAN%20class%3D%22s4%22%3E%5D.%3C%2FSPAN%3EInputMethodTips%3CSPAN%20class%3D%22s4%22%3E.%3C%2FSPAN%3EAdd(%3CSPAN%20class%3D%22s7%22%3E'0809%3A00000809'%3C%2FSPAN%3E)%3C%2FP%3E%3CP%20class%3D%22p1%22%3ESet-WinUserLanguageList%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22s8%22%3E-LanguageList%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22s2%22%3E%24Lang%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22s8%22%3E-force%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3EGet-WinUserLanguageList%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3Ewhich%20works%20perfectly%20if%20I%20run%20on%20the%20device%20but%20from%20intune%20no%20luck.%20Any%20ideas%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2363731%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Friday%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EConditional%20access%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Application%20Management%20(MAM)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESoftware%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2364540%22%20slang%3D%22en-US%22%3ERe%3A%20unable%20to%20set%20keyboard%20via%20intune%20but%20script%20works%20locally%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2364540%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EJust%20noticed%20the%20pm.%20Is%20the%20powershell%20script%20deployed%20in%20the%20system%20or%20user%20context%3F%20What%20happens%20when%20you%20deploy%20it%20in%20the%2064%20bits%20context%3C%2FLINGO-BODY%3E
Regular Contributor

Hi all, 

 

I have used the following in a PowerShell script:

 

$Lang = New-WinUserLanguageList en-GB

$Lang[0].InputMethodTips.Clear()

$Lang[0].InputMethodTips.Add('0809:00000809')

Set-WinUserLanguageList -LanguageList $Lang -force

Get-WinUserLanguageList

 

which works perfectly if I run on the device but from intune no luck. Any ideas? 

2 Replies
best response confirmed by AB21805 (Regular Contributor)
Solution

Hi,

Just noticed the pm. Is the powershell script deployed in the system or user context? What happens when you deploy it in the 64 bits context. 

 

Rudy_Ooms_0-1621348333927.png

Of course when you have blocked powershell... you are up for another challenge

Hi I will try this and let you know. We dont block powershell for users as this messes with other things we have set up!

I was doing it with system.