Forum Discussion

Phil_L325's avatar
Phil_L325
Copper Contributor
Sep 21, 2020

Trying to read "PnPUserProfileProperty -PropertyName "SPS-MUILanguages" "

Our corporate Sharepoint site has some formatting issues when viewed with browsers that don't have the SPS-MUILanguages set as "en-US".  We have international users and when their browser uses the geo. local settings, this is where the problem starts if they are not within the US local.  Through a ticket to MS, I have learned I can change this using powershell with:
Set-PnPUserProfileProperty -Account $UserAccount -PropertyName "SPS-MUILanguages" -Values "en-US".

However, the MS tech said there is no way to "Get" this property's current setting.

My problem is, I need to set the current users to the en-US setting and have something that will continue to set new users to en-US.  I was going to write a PS script to iterate the users once a week and see if any were not set for en-US and change them.  Also, if I can see the current setting, I can see if my script is working or not.

 

Is there any way to see the current setting for this?

 

Thanks,

Phil

  • Phil_L325's avatar
    Phil_L325
    Copper Contributor
    I missed mentioning, doing this:
    Get-PnPUserProfileProperty -Account $UserAccount -PropertyName "SPS-MUILanguages" | FL
    Doesn't show the SPS-MUILanguages property.
    • TarikB495's avatar
      TarikB495
      Copper Contributor

      Hi Phil_L325 ,

      I'm looking for the same and facing the exact same issue, did you find any workaround?

       

      rgds,

      Tarik

      • Phil_L325's avatar
        Phil_L325
        Copper Contributor

        TarikB495 I didn’t ever find the answer.  I’m not sure if our share point team change something on the pages.  This problem seemed to go away.

Resources