Hi all,
I’m attempting to deploy a PowerShell script using an Intunewin app, but I’m encountering issues.
When tested locally as a standard user, the script works as expected. However, when deployed via the Intunewin package, only part of the script executes: the folder specified in the script is created, but the settings changes do not take effect.
Here is the script:
# Disable AutoCorrect
Set-ItemProperty -Path "HKCU:\Software\Microsoft\TabletTip\1.7" -Name "EnableAutocorrection" -Value 0
# Disable Highlight Misspelled Words
Set-ItemProperty -Path "HKCU:\Software\Microsoft\TabletTip\1.7" -Name "EnableSpellchecking" -Value 0
# Disable Text Suggestions
Set-ItemProperty -Path "HKCU:\Software\Microsoft\TabletTip\1.7" -Name "EnableTextPrediction" -Value 0
# For Default User profile (applies to new users):
Set-ItemProperty -Path "HKU\.DEFAULT\Software\Microsoft\TabletTip\1.7" -Name "EnableAutocorrection" -Value 0
Set-ItemProperty -Path "HKU\.DEFAULT\Software\Microsoft\TabletTip\1.7" -Name "EnableSpellchecking" -Value 0
Set-ItemProperty -Path "HKU\.DEFAULT\Software\Microsoft\TabletTip\1.7" -Name "EnableTextPrediction" -Value 0
New-Item -Path "c:\" -Name "Autocorrect" -ItemType "directory" -force
It seems the script is only partially working. Could anyone advise on what might be going wrong or suggest how to resolve this?
Install command: powershell -ExecutionPolicy Bypass -File "Correction for typing - disable.ps1"