PWSH 7 (7.5.4) error on 1 of 2 installations

I ran the next code in pwsh 7 on 1 machine without errors:

Get-AppxPackage -AllUsers MicrosoftWindows.Client.WebExperience | 
Reset-AppxPackage Get-AppxPackage -AllUsers MicrosoftWindows.Client.CBS | 
Reset-AppxPackage Restart-Service WSearch -force
```

But on another one I get this error:

Reset-AppxPackage: A parameter cannot be found that matches parameter name ‘AllUsers’.

Any ideas?

Are you sure you ran the code like this? I’d expect it to have at least two more line breaks … like this:

Get-AppxPackage -AllUsers MicrosoftWindows.Client.WebExperience | 
    Reset-AppxPackage 
Get-AppxPackage -AllUsers MicrosoftWindows.Client.CBS | 
    Reset-AppxPackage 
Restart-Service WSearch -force
1 Like

Hi Olaf.

My bad, something went wrong when copying to the new machine. Now, done right, it just works!

Thx for your willingness to help!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.