You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
PackageManagementResource can install Winget and drive that, but it is nearly impossible to use meaningfully for two reasons:
1- winget install accepts a "--scope" parameter to let you specify whether the package is per-user or machine-wide, but PackageManager does not surface this,
2- attempting to instead pass the PSCredential of the user it should be installed as via PsDscRunAsCredential consistently produces an 0x80070520 error (no logon session) unless it is the credential of the current user anyway (which is thus pointless).
Summary of the new feature / enhancement
PackageManagementResource can install Winget and drive that, but it is nearly impossible to use meaningfully for two reasons:
1- winget install accepts a "--scope" parameter to let you specify whether the package is per-user or machine-wide, but PackageManager does not surface this,
2- attempting to instead pass the PSCredential of the user it should be installed as via PsDscRunAsCredential consistently produces an 0x80070520 error (no logon session) unless it is the credential of the current user anyway (which is thus pointless).
Proposed technical implementation details (optional)
The text was updated successfully, but these errors were encountered: