Problem scenario
You are running Windows Server 2019. You want to install Windows DSC. What do you do?
Solution
- Open PowerShell.
- Run this command: Install-Module 'PSDscResources' -Verbose
- When prompted with this question "NuGet provider is required to continue…", choose "Yes".
- If you believe your Windows Server is in a secure environment, or you have no goals putting sensitive data on your Windows server, when prompted about an "Untrusted repository", specifically "Are you sure you want to install the modules from 'PSGallery'?", choose "Yes".