Skip to content

Conversation

@DavidObando
Copy link
Member

This change adds a second try to install packages or apply configurations when Invoke-CimMethod doesn't work. This can happen in certain scenarios (for example, when machine policies reduce the context of what Invoke-CimMethod can do for security reasons), leading to user frustration. This change is an attempt to help make the winget task more likely to succeed installing packages in user context (not system) by doing a second attempt to run the installation or application command but using Start-Process instead of Invoke-CimMethod.

This change adds a second try to install packages or apply configurations when Invoke-CimMethod doesn't work. This can happen in certain scenarios (for example, when machine policies reduce the context of what Invoke-CimMethod can do for security reasons), leading to user frustration. This change is an attempt to help make the winget task more likely to succeed installing packages in user context (not system) by doing a second attempt to run the installation or application command but using Start-Process instead of Invoke-CimMethod.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants