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

%3CLINGO-SUB%20id%3D%22lingo-sub-1691479%22%20slang%3D%22en-US%22%3ETrying%20to%20read%20%22PnPUserProfileProperty%20-PropertyName%20%22SPS-MUILanguages%22%20%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1691479%22%20slang%3D%22en-US%22%3E%3CP%3EOur%20corporate%20Sharepoint%20site%20has%20some%20formatting%20issues%20when%20viewed%20with%20browsers%20that%20don't%20have%20the%26nbsp%3BSPS-MUILanguages%20set%20as%20%22en-US%22.%26nbsp%3B%20We%20have%20international%20users%20and%20when%20their%20browser%20uses%20the%20geo.%20local%20settings%2C%20this%20is%20where%20the%20problem%20starts%20if%20they%20are%20not%20within%20the%20US%20local.%26nbsp%3B%20Through%20a%20ticket%20to%20MS%2C%20I%20have%20learned%20I%20can%20change%20this%20using%20powershell%20with%3A%3CBR%20%2F%3ESet-PnPUserProfileProperty%20-Account%20%24UserAccount%20-PropertyName%20%22SPS-MUILanguages%22%20-Values%20%22en-US%22.%3C%2FP%3E%3CP%3EHowever%2C%20the%20MS%20tech%20said%20there%20is%20no%20way%20to%20%22Get%22%20this%20property's%20current%20setting.%3C%2FP%3E%3CP%3EMy%20problem%20is%2C%20I%20need%20to%20set%20the%20current%20users%20to%20the%20en-US%20setting%20and%20have%20something%20that%20will%20continue%20to%20set%20new%20users%20to%20en-US.%26nbsp%3B%20I%20was%20going%20to%20write%20a%20PS%20script%20to%20iterate%20the%20users%20once%20a%20week%20and%20see%20if%20any%20were%20not%20set%20for%20en-US%20and%20change%20them.%26nbsp%3B%20Also%2C%20if%20I%20can%20see%20the%20current%20setting%2C%20I%20can%20see%20if%20my%20script%20is%20working%20or%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20see%20the%20current%20setting%20for%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EPhil%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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

1 Reply
Highlighted
I missed mentioning, doing this:
Get-PnPUserProfileProperty -Account $UserAccount -PropertyName "SPS-MUILanguages" | FL
Doesn't show the SPS-MUILanguages property.