Skip to content

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

@xpowert

Description

@xpowert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions