Open AdamBraden opened 6 months ago
Yes we'll need to add a check to confirm if we're running the DSC resource as Admin and also mention in the wiki that it is needed as well.
FYI for those who don't know the config file above is a WinGet DSC config file see: https://learn.microsoft.com/en-us/windows/package-manager/configuration/create#example-winget-configuration-file
We should add this to the README.md in here as well.
Problem description
Lost a little time running the DSC on a new vm, only to realize I forgot to run it under an admin command prompt. The error message is misleading and that's why took a bit to figure it out.
Verbose logs
DSC configuration
Suggested solution
An error message that notifies the user to run the command as an administrator. I'm not sure if there are other patterns to follow, but something along the lines of:
Error: Administrator privileges required
Operating system the target node is running
PowerShell version and build the target node is running
StorageDsc version