question

AlessandroZola-4761 avatar image
0 Votes"
AlessandroZola-4761 asked Crystal-MSFT edited

International settings during autopilot

Hi all,
I need to modify the international settings like decimal, days ecc...during autopilot process...
I create a powershell script like this
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name Locale -Value 00000410
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name LocaleName -Value it-IT
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sCurrency -Value €
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sdecimal -Value "."
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sLanguage -Value ITA
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sLongDate -Value "dddd d MMMM yyyy"
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sShortDate -Value "dd/MM/yyyy"
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sTimeFormat -Value "HH:mm:ss"
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sShortTime -Value "HH:mm"
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iCountry -Value 39
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iCurrency -Value 3
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name idate -Value 1
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iFirstDayOfWeek -Value 0
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iFirstDayOfYear -Value 2
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iMeasure -Value 0
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iNegCurr -Value 8
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iPaperSize -Value 9
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iTime -Value 1
Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name iTLZero -Value 1

And created win32 application
Even if seems to deploy the script and the detection method works the registry keys are not changed..
Any idea ora other methor to achieve the goal?
Thanks

mem-intune-application-managementmem-autopilot
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AlessandroZola-4761, From your description, I know our issue is that the PowerShell script which is used to create some registry keys are not working when deploy them via Intune Win32 app during Autopilot. if there's any misunderstanding, please let us know.

To clarify our issue, we suggest to deploy this win32 app to other enrolled devices to see if the registry keys can be created. Meanwhile, please provide the detail configuration of the win32. Thanks!

0 Votes 0 ·
AlessandroZola-4761 avatar image
0 Votes"
AlessandroZola-4761 answered Crystal-MSFT converted comment to answer

Hi if I run the powershell manually it works. i cannot try the app with intune because I'm in co.management and I have the application workload still on sccm.

My win32 app installation script is
"C:\Windows\System32\WindowsPowerShell\V1.0\PowerShell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -File regional.ps1

the report says that is installed ant the check is on one of the registry key I change...
66247-image.png



image.png (6.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Crystal-MSFT avatar image
0 Votes"
Crystal-MSFT answered Crystal-MSFT edited

@AlessandroZola-4761, Thanks for the reply. From the phenomenon we get, I wonder this can be with the account which we run the script. based on my experience, for the registry key under HKCU, it can only change the value in current user. For other user, it will not change. Given the situation, please check which account we use to run the Win32 app, under User or System. Please change to User to see if the result will be different.
66817-image.png

Hope it can help.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (25.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlessandroZola-4761 avatar image
0 Votes"
AlessandroZola-4761 answered Crystal-MSFT commented

I cannot change is grayed out....

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AlessandroZola-4761, Try to re-create a Win 32 app with the Install behavior set as User to test. if there's any update, feel free to let us know.

0 Votes 0 ·

@AlessandroZola-4761, Hope things are going well. if there's any update on our issue, feel free to let us know.

0 Votes 0 ·