Intune-Proactive-Remediation-scripts icon indicating copy to clipboard operation
Intune-Proactive-Remediation-scripts copied to clipboard

CategoryInfo : ObjectNotFound: (HKCU:\Software\...MyCompany!:String) [New-ItemProperty]

Open xpowert opened this issue 1 year ago • 0 comments

Hello! Script is working well for most of the users, but two users get this error:

CategoryInfo : ObjectNotFound: (HKCU:\Software\...MyCompany!:String) [New-ItemProperty], ItemNotFo undException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemPropertyCommand New-ItemProperty : Cannot find path 'HKCU:\Software\Classes\AppUserModelId\MyCompany!' because it does not exis t. At C:\WINDOWS\IMECache\HealthScripts\9feea014-0abc-42a0-b31f-55bc05b56abc_11\remediate.ps1:102 char:3 + New-ItemProperty -Path $RegPath -Name IconUri -Value $IconUri ... +

Both users have Windows 11

xpowert avatar Apr 12 '23 09:04 xpowert